* {box-sizing: border-box;}
body {
    margin: 0;
    background: #f2f2f2;
    overflow-x: hidden;
}
a,a:hover,a:visited,a:active{
    text-decoration:none;
}
h1,h2,h3,h4,h5,h6{
    font-weight: bold;
}

h1{
    color: #555862;
}
/*header*/
header {
    background: white;
    text-align: center;
    height: 160px;
    box-shadow: 0px 0px 14.88px 1.12px rgba(70, 69, 69, 0.1);
}
.head_menu{
    position: absolute;
    top: 110px;
}
.head_menu.scrolled{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: white;
    z-index: 2;
    animation: fade-in 1s ease;
    box-shadow: 0px 0px 14.88px 1.12px rgba(70, 69, 69, 0.1);
    margin-left: 0;
}
header a {
    display: block;
    text-decoration: none;
    outline: none;
    transition: .3s ease-in-out;
}
.logo {
    color: #D5B45B;
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    padding: 20px 0;
}

.contact_phone{
    text-align: left;
    padding-top: 50px;
}

.contact_phone i{
    color: #494a49;
    font-size: 30px;
    float: left;
    margin-right: 15px;
}

.contact_phone a{
    font-size: 20px;
    font-weight: bold
}

.contact_phone a:hover {
    color: #dd4a2d;
}

nav {
    display: table;
    margin: 0 auto;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.topmenu:after {
    content: "";
    display: table;
    clear: both;
}
.topmenu > li {
    width: auto;
    float: left;
    position: relative;
    font-family: 'Open Sans', sans-serif;
}
.topmenu > li > a {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    color: #404040;
    padding: 15px 22px;
}
.topmenu li a:hover {
    color:  #2B6CB8;
    text-decoration: none;
}
.submenu-link:after {
    content: "\f107";
    font-family: "FontAwesome";
    color: inherit;
    margin-left: 10px;
}
.submenu {
    background: #273037;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 5;
    width: 180px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin :0 0;
    transition: .5s ease-in-out;
}
.submenu a {
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.submenu li:last-child a {border-bottom: none;}
.topmenu > li:hover .submenu {
    opacity: 1;
    transform: scaleY(1);
}
/*мобильное меню*/
.menu-triger {
    display: block;
    width: 32px;
    height: 32px;
    background: url('../img/menu.png') 0 0 repeat;
    position: absolute;
    left: 15px;
    top: 28px;
}
.menu-close {
    display: block;
    width: 32px;
    height: 32px;
    background: url('../img/close.png') 0 0 repeat;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
}
.menu-popup {
    display: none;
    background: #2c2e3e;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0;
    padding: 30px;
    z-index: 9999;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.menu-popup ul {
    margin: 0;
    padding: 0;
}
.menu-popup li {
    list-style: none;
    margin: 10px 0;
    padding: 0;
    text-align: left;
}
.menu-popup li a {
    font-size: 18px;
    font-family: "Arial";
    color: rgb(255, 255, 255);
    line-height: 1.4;
    text-decoration: none;
}
.body_pointer * {
    cursor: pointer;
}


/*главная страница*/
.main_image{
    position: relative;
    display: inline-block;
}

.main_image img{
   width: 100%;
}

.main_image h1,
.main_image h2
{
    position:absolute;
    text-align: left;
    border-color:rgb(137, 139, 146);
    color:rgb(255, 255, 255);
    margin: 0px;
    border-radius: 0px;
    padding: 0px;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
    height: auto;
    min-height: 0px;
    min-width: 0px;
    max-height: none;
    max-width: none;
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
    transform-origin: 50% 50% 0px;
}

.main_image h1{
    font-family: Arial;
    line-height: 83px;
    font-weight: 700;
    font-size: 66px;
    top: 30%;
    left:5%;
}

.main_image h2{
    line-height: 35px;
    font-weight: 300;
    font-size: 38px;
    top: 43%;
    left: 6%;
}

.main_image a
{
    color:rgb(255, 255, 255);
}

.main_image a:hover{
    text-decoration:none;
    color: #1e2b34;
    cursor:pointer;
}

#main_block {
    background-color: white;
}

#main_block .text p{
    font-size: 20px;
    color: #898b92;
}

/*
#main_block .text p::before{
    content: "\f00c";
    color: #3664a1;
    font-family: FontAwesome;
    margin-right: 5px;
}
 */

#main_block .text a{
    display: inline-block;
    color: white;
    background-color: #529fe3;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 30px;
}

#main_block .text a:hover{
    background-color: #dd4a2d;
}

#news_block{
    background-color: #f3f3f3;
    margin-bottom: 50px;
}

#news_block .news{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

#news_block h1{
    text-align: center;
    color: #555862;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 30px;
}

#news_block .item{
    background-color: white;
    width:303px;
    display: block;
    min-height: 300px;
    padding: 12px;
}

#news_block .item a{
    display: none;
}

#news_block .item:hover{
    box-shadow: 0px 0px 14.88px 1.12px rgba(70, 69, 69, 0.1);
    padding-top: 5px;
}

#news_block .item:hover a{
    display: inline-block;
    color: white;
    background-color: #529fe3;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 30px;
}

#news_block .item:hover a:hover{
    background-color: #dd4a2d;
}

#news_block .item .date{
    color: #c8c8c8;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    display: block;
}

#news_block .item h5{
    color: #555862;
    text-align: center;
    font-weight: bold;
    line-height: 25px;
    margin-bottom: 15px;
}

/*Услуги*/
#services h1{
    text-align: center;
    font-weight: bold;
}
#services ul{
    padding: 0;
    display: block;
    text-align: center;
}
#services ul li{
    display: inline-block;
    vertical-align: top;
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 30px;
    padding-top: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 100px;
    width: 300px;
    margin: 20px;
    background-color: white;
}

#services ul li h4{
    text-align: left;
    display: block;
}

#services ul li::before {
    position: absolute;
    color: #eaeaea;
    font-size: 5.429em;
    font-weight: 700;
    top: -0.5rem;
    left: 3.3em;
    opacity: 1;
    z-index: 1;
    -webkit-transition: all ease .3s;
    -moz-transition: all ease .3s;
    -ms-transition: all ease .3s;
    -o-transition: all ease .3s;
    transition: all ease .3s;
}

#services ul li:hover::before{
    color: #2a6496;
}
#services ul li:hover{
    box-shadow: 0px 0px 14.88px 1.12px rgba(70, 69, 69, 0.1);
}
#services ul li#one::before {
    content: '1';
}
#services ul li#two::before {
    content: '2';
}
#services ul li#three::before {
    content: '3';
}
#services ul li#four::before {
    content: '4';
}
#services ul li#five::before {
    content: '5';
}
/*Поготовка кадров и продажа запчастей*/
#stafftraining h3, #transport h3{
    color: #555862;
}

#stafftraining ul,
#stafftraining p,
#transport ul,
#transport p{
    font-size: 16px;
    color: gray;
}

#transport ul li a{
    cursor: pointer;
}
/*table*/

.table_separator{
    text-decoration: underline;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.table_heading_mob {
    display: none;
}

table.delivery {width: 100%; border: 0px; border-collapse: collapse;margin-bottom: 20px;}
table.delivery thead {font-weight: bold;}
table.delivery td {padding: 0.6rem 1rem; border-bottom: 1px solid #b8babf;background-color: white;}

@media screen and (max-width: 970px) {
    table.delivery thead {
        display: none;
    }
    table.delivery tr {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 2px solid #e8e9eb;
    }
    table.delivery td {
        display: block;
        text-align: right;
    }

    table.delivery td.tr_mob {
        display: block;
        text-align: center;
    }

    table.delivery td:before {
        content: attr(aria-label);
        float: left;
        font-weight: bold;
    }

    .table_heading_mob {
        display: block;
        text-align: center;
    }

}

.dir_info{
    font-size: 16.0pt;
    text-align: center;
    margin-top: 20px;
}

.mob_return_href{
    display:none;
}

@media screen and (max-width: 768px) {

    .mob_return_href{
        display:block;
    }

    .mob_return_href a{
        cursor: pointer;
    }

    .mob_return_href p{
        text-align: center;
        font-size: 15px;
    }
}

/*новости*/
.top_panel_image{
    height: 15.75em;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: dodgerblue;
    background-image: url('../img/other_back.jpg')
}

.top_panel_image .top_image_header{
    position: absolute;
    color: white;
    left: 50%;
    top: 50%;
    display: block;
    max-width: 50%;
    text-align: center;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.top_panel_image .top_image_header h1{
    color: #ffffff;
    font-size: 3.429em;
    font-weight: 700;
}

/*новости*/
.news .post{
    display: block;
    margin-bottom: 60px;
    border-bottom: 1px solid #a8cfdcb5;
    padding-bottom: 60px;
}

.news .post h4{
    color: #555862;
}

.news .post .date,
.news .post .new{
    color: #898b92;
}

.news .post .date{
    margin-bottom: 20px;
}

.news .post .new{
    font-size: 15px;
    line-height: 25px;
}

/*о компании*/
#about_block p {
    font-size: 15px;
    line-height: 25px;
    color: #555862;
}

/*предприятия*/
.block_enterprises{
    display: block;
    text-align: center;
    margin-bottom: 40px;
}

.block_enterprises h4{
    color: #555862;
}

.block_enterprises p {
    font-size: 15px;
    line-height: 25px;
    color: #898b92;
    padding: 0;
}

/*раскрытие информации*/
table#info {
    font-size: 15px;
    line-height: 25px;
    color: #898b92;
    list-style-type: none;
}

table#info a::before{
    content: '\f01a';
    font-family: FontAwesome;
    color: #428bca;
    margin-right: 5px;
}


/*footer*/
footer .footer_wrap{
    background-color: #232a34;
    color: rgba(141, 149, 157, 0.8);
    padding: 40px;
}

footer .footer_wrap h5{
    color: #ffffff;
    font-size: 1.286em;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 1.3rem;
    margin-bottom: 1.1rem;
    position: relative;
}
footer .footer_wrap h5::after {
    content: ' ';
    display: block;
    position: absolute;
    border-top: 2px solid;
    border-color: rgba(255, 255, 255, 0.2);
    height: 0;
    bottom: 0.1em;
    width: 3.4rem;
    left: 0;
}

footer .footer_wrap .text{
    line-height: 1.7em;
    font-size: 0.929em;
}

footer .copyright_wrap{
    background-color: #1d2125;
    color: rgba(141, 149, 157, 0.8);
    text-align: left;
    padding: 20px;
}

footer .copyright_wrap a,
footer .copyright_wrap a:hover{
    color: rgba(141, 149, 157, 0.8);
}

#logo{
    width: 150px;
    height: 154px;
}


/*responsive*/

/* xs< x <1300 */
@media screen and (min-width: 1388px){
    .head_menu{
        margin-left: 12%;
    }
}
@media screen and  (min-width: 768px) and (max-width: 1300px){
    .logo_block{
        margin-left: 5%;
    }
}

/* md */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    #main_block h1{
        left: 5%;
    }
    #main_block .text{
        left: 5%;
    }
    #news_block .item{
       width: 280px;
    }
    .topmenu > li > a{
        padding: 15px 13px;
    }
}

/* sm */
@media screen and (min-width: 768px) and (max-width: 991px) {
    header{
        height: 198px;
    }
    .topmenu > li > a{
        font-size: 13px;
        padding: 15px 10px;
    }
    .contact_phone {
        padding-top: 70px;
    }
    .head_menu {
        top: 150px;
    }
    #news_block .item{
        width: 600px;
        min-height: auto;
        height: 190px;
        margin-bottom: 40px;
    }
    #news_block .item .date{
        margin-bottom: 0;
    }
}
/* > xs */
@media screen and (min-width: 768px){
    #content{
        position: relative;
        margin-top: 40px;
        margin-left: 30px;
        margin-bottom: 30px;
    }
    #content.none_indent{
        margin-top: 0;
        margin-left: 0;
    }

    #content.top_indent{
        margin-left: 0;
    }

    #main_block h1{
        position: relative;
        display: inline-block;
        margin-top: 30px;
        color: #555862;
        font-weight: bold;
        left: 10%;
        border-bottom: 2px solid #e7e7e7;
        padding-bottom: 10px;
    }

    #main_block h1::after {
        border-bottom: 2px solid #46699f;
        position: absolute;
        content: "";
        bottom: -2px;
        left: 0;
        width: 15%;
    }

    #main_block .text{
        position: relative;
        margin-bottom: 30px;
        left: 10%;
        width: 540px;
    }
    #stafftraining{
        margin-left: 30px;
    }
}
/* xs */
@media screen and (max-width: 767px){
    .contact_phone{
        margin-left: 5%;
    }
    .contact_phone i {
        font-size: 25px;
        margin-right: 5px;
    }
    .contact_phone a {
        font-size: 16px;
    }
    .main_page{
        background-color: white;
    }

    h3{
        text-align: center;
        font-size: 20px;
    }
    header{
        height: auto;
        position: fixed;
        z-index: 4;
        width: 100%;
    }
    #content{
        position: relative;
        top: 120px;
        margin-bottom: 120px
    }
    #logo {
        width: 120px;
        height: 120px;
    }
    #news_block {
        padding-top: 1px;
        margin-bottom: 0;
    }
    #news_block .item{
        width: auto;
        min-height: auto;
        height: auto;
        margin-bottom: 40px;
    }
    #news_block .item .date{
        margin-bottom: 0;
    }

    h1{
        font-size: 28px;
        text-align: center;
        font-weight: bold;
        color: #555862;
        margin-bottom: 30px;
    }

    #main_block .text p {
        font-size: 16px;
    }

    .top_panel_image{
        top: 120px;
        margin-bottom: 30px;
        height: 10.75em;
    }

    .top_panel_image .top_image_header h1{
        font-size: 1.9em;
    }
}