/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {  
 
}
 
/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {  
 
}
 
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
 
}
 
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {  
    
}
 
 
 
/* Custom media queries */
 
@media (max-width: 1003px) { 
    header .header_contacts .header_address span {
        font-size: 14px;
    }
    header .header_contacts .header_telephone span {
        font-size: 14px;
    }
}
@media (max-width: 1035px) { 
    header .header_contacts button {
    font-size: 14px;
    padding: 10px 15px;
    }
}
@media (max-width: 1006px) { 
header .dropdown_menu .topmenu > li > a {
    /*padding: 15px 30px 15px 30px;*/
    font-weight: 300;
    font-size: 14px;
    color: #FFFFFF;
}
}
@media (max-width: 974px) { 
header .navbar1 .menu ul li {
    display: inline-block;
    padding: 0 5px;
    transition: all 0.6s;
    position: relative;
}
}
@media (max-width: 813px) {
    header .navbar1 .search_block input {
        padding-left: 10px;
    }
    header .navbar1 .search_block input {
        width: 70%;
    }
}
@media (max-width: 914px) {
    header .header_contacts button {
        font-size: 12px;
        padding: 10px 8px;
    }
}
@media (max-width: 889px) {
header .header_contacts .header_telephone span {
    font-size: 12px;
}
header .header_contacts .header_address span {
    font-size: 12px;
}
}
@media (max-width: 775px) {
    header .header_contacts .header_telephone span {
        font-size: 10px;
    }
    header .header_contacts .header_address span {
        font-size: 10px;
    }
}
@media (max-width: 787px) {
    header .header_contacts .logo span {
        font-size: 14px;
    }
}
@media (max-width: 847px) {
    header .dropdown_menu .topmenu > li > a {
        /*font-size: 12px;*/
    }
}
@media (max-width: 768px) {  
    header .dropdown_menu .topmenu > li > a {
        /*padding: 15px 5px 15px 15px;*/
    }
}
@media (max-width: 768px) {
    header .dropdown_menu .topmenu > li > a {
        /*font-size: 16px;*/
    }
    header .header_contacts button, header .header_contacts a.button{
        padding: 10px 5px;
        font-size: 12px;
    }
}
@media (max-width: 754px) {  
    header .navbar1 .menu ul li a {
        font-size: 9px;
    }
}
@media (max-width: 754px) {  
header .navbar1 .social ul li a svg {
    width: 10px;
    height: 10px;
    top: -17%;
    left: 28%;
}
header .navbar1 .social ul li a {
    height: 20px;
    width: 20px;
}
header .navbar1 .social {
    padding-top: 10px;
}
}
@media (max-width: 591px) { 
header .navbar1 .menu ul li {
    display: inline-block;
    padding: 0 5px;
    transition: all 0.6s;
    position: relative;
    margin-left: -5px;
}
}
@media (max-width: 752px) { 
    header .header_contacts button {
        margin-top: 10px;
        font-size: 10px;
        padding: 3px 3px;
    }
}
@media (max-width: 680px) { 
    header .header_contacts .header_telephone a {
        font-size: 10px;
    }
    header .header_contacts .header_address a {
        font-size: 10px;
    }
    header .header_contacts .header_telephone span {
        font-size: 8px;
    }
    header .header_contacts .header_address span {
        font-size: 8px;
    }
}
@media (max-width: 667px) {
header .header_contacts .logo span {
    font-size: 10px;
}
}
@media (max-width: 612px) {
    header .header_contacts button {
        font-size: 9px;
    }
    header .navbar1 .search_block {
        margin-left: -10px;
    }
}
@media (max-width: 754px) {
    header .dropdown_menu .submenu li a {
        padding: 15px 30px;
        font-size: 12px;
    }
}
@media (max-width: 767px) {
#intro .intro_img:after{
    display: none;
}
    header .dropdown_menu .topmenu > li{
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }
.not_overlay .first_row button{
    border-radius: 5px;
}
header{
    height: auto;
}
#intro .left_block{
    height: auto;
}
#intro h1{
    padding: 0 0 30px 0;
}
#intro .left_block a{
    bottom: 0;
}
#intro{
    height: auto;
    padding-bottom: 40px;
}
#news .news_block .news_item p{
    text-align: justify;
}
#news .news_block .news_item{
    margin-bottom: 10px;
}
#news{
    padding: 50px 0 0 0;
}
#team .team_item{
    text-align: center;
}
#team .team_item img{
    display: inline;
}
#team .team_item .contacts{
    position: relative;
    bottom: 15px;
}
#team .team_item img{
    margin-bottom: 5px;
}
#team .team_item span{
    margin-bottom: 5px;
}
#team .team_item{
    height: auto;
    padding: 10px 0;
}
#team{
    padding: 30px 0;
}
#team h2{
    margin-bottom: 30px;
}
#map .head_map{
    padding: 30px 0;
}
#map .head_map span{
    font-size: 20px;
}
#map .head_map a{
    margin-top: 0;
    padding: 5px 10px;
}
footer{
    padding: 20px 0;
    text-align: center;
}
footer .flogo_left{
    float: none;
    margin-bottom: 10px;
}
footer .flogo_right{
    float: none;
}
footer p{
    float: none;
    font-size: 13px;
}
}
@media (max-width: 320px) {
.logo img{
    width: 40px;
    height: 40px;
}
.first_row span{
        font-size: 10px!important;
}
.not_overlay .first_row button{
    font-size: 10px;
}
#news .arrows .prevnews, #news .arrows .nextnews{
    padding: 10px;
}
#team h2{
    font-size: 35px;
}
#team .team_item .contacts a:first-child{
    padding: 2px 5px 1px 0;
}
#team .team_item .contacts a:last-child{
    padding: 2px 0 1px 5px;
}
#team .team_item .contacts a{
    font-size: 12px;
}
#map .head_map span {
    font-size: 18px;
}
}
@media (max-width: 1439px) {
    #intro .intro_img:after{
        background-size: contain;
        width: 100%;
    }
}
@media (max-width: 1199px) {
#team .team_item .contacts a:first-child{
    padding: 2px 5px 1px 0;
}
#team .team_item .contacts a:last-child{
    padding: 2px 0 1px 5px;
}
}
@media (max-width: 991px) {
    #team .team_item{
        height: auto;
    }
    #team .team_item p{
        margin-bottom: 0;
    }
    #team .team_item .contacts{
        position: relative;
        top: 5px;
    }
    #team .team_item .contacts a{
        border: none!important;
        display: inherit;
        padding: 3px 0;
    }
}
@media (max-width: 1043px) {
    #contacts .post_block{
        display: inline-block;
        padding: 5px 0;
        width: 100%;
    }
    #contacts .phone_block{
        float: none;
    }
    #contacts .post_block span{
        display: inline;
        width: 100%;
    }
    #contacts .post_block .post a{
        display: table;
        width: 100%;
    }
    #contacts .address_block{
        margin-left: 0;
    }
}
@media (max-width: 575px) {
    #contacts .contacts_callback{
        text-align: center;
    }
    #contacts h1{
        padding-top: 30px;
        padding-bottom: 20px;
    }
    #contacts .phone_block{
        float: left;
        border: none!important;
        padding: 0;
        margin-top: 10px;
    }
    #contacts .address_block{
        margin-left: 0;
        border: none!important;
        padding: 0;
        margin-top: 10px;
    }
    #news_page .pagination_news{
        text-align: center;
        padding: 50px 0;
    }
    #news_page .pagination_news .last_page{
        display: none;
    }
    #news_page .pagination_news .pag_item{
        padding: 5px 10px;
    }
    #news_page .pagination_news .more_dots{
        padding: 5px 7px;
    }
    #news_page .pagination_news a{
        font-size: 16px;
    }
}
@media (min-width: 576px) and (max-width: 750px) {
    #contacts .post_block .post a{
        font-size: 12px;
    }
    #contacts .phone_block a{
        font-size: 12px;
    }
    #contacts .address_block a{
        font-size: 12px;
    }
    #contacts .phone_block{
        padding: 5px 0 5px 5px;
    }
    #contacts .address_block{
        padding: 5px 0 5px 5px;
        margin-left: 0;
    }
}
@media (max-width: 839px) {
    header .navbar1 .social ul{
        padding: 0;
    }
}
@media (max-width: 425px) {
    #news .news_block .news_item{
        padding: 25px;
    }
    #news .news_block .news_item p{
        margin-bottom: 0;
    }
    #news .news_block .news_item a:last-child{
        display: inline-block;
        margin-top: 20px;
    }
}

/*menu top*/

@media (max-width: 1024px) {
    header .dropdown_menu .sub-menu li{
        width: 241px!important;
    }
    /**/
    header .dropdown_menu .menu-item-24 .sub-menu{
        left: -251px!important;
    }
    header .dropdown_menu .menu-item-23 .sub-menu{
        left: -502px!important;
    }
    header .dropdown_menu .menu-item-172 .sub-menu{
        position: absolute;
        left: -753px!important;
    }
    #contacts .phone_block{
        height: 111px;
    }
    #contacts .address_block{
        padding: 5px 0 10px 20px;
    }
    .header .navbar1 .menu ul li{
        padding: 0 10px!important;
    }
    #team .team_item .contacts{
        bottom: -52px;
    }
}

@media (max-width: 768px) {
    header .dropdown_menu .sub-menu li{
        width: 177px!important;
    }
    header .dropdown_menu .topmenu > li .sub-menu{
        width: 768px!important;
    }
    /**/
    header .dropdown_menu .menu-item-24 .sub-menu{
        left: -187px!important;
    }
    header .dropdown_menu .menu-item-23 .sub-menu{
        left: -374px!important;
    }
    header .dropdown_menu .menu-item-172 .sub-menu{
        left: -561px!important;
    }
    header .dropdown_menu .sub-menu li a{
        line-height: 20px!important;
        padding-top: 20px!important;
    }
    header .dropdown_menu .sub-menu .menu-item-156 a{
        /*padding-top: 10px!important;*/
    }
    header .dropdown_menu .sub-menu .menu-item-154 a{
        padding-top: 10px!important;
    }
    header .dropdown_menu .sub-menu .menu-item-128 a{
        padding-top: 10px!important;
    }
    header .header_contacts .logo span{
        font-size: 12px!important;
    }
    header .navbar1 .menu ul li a{
        font-size: 13px!important;
    }
    header .dropdown_menu .topmenu > li > a{
        font-size: 14px!important;
    }
    header .dropdown_menu .sub-menu li a{
        font-size: 14px!important;
    }
    #contacts .phone_block{
        height: 120px;
    }
    #contacts .address_block{
        padding: 5px 0 0px 20px;
    }
}
@media (max-width: 767px) {
    .dropdown_menu-min{
        display: block;
    }
    .header .dropdown_menu-min .sub-menu{
        height: auto!important;
        opacity: 1;
    }
    .not_overlay .third_row .sub-menu{
        padding-bottom: 10px;
    }
    .header-bg-one{
        height: 480px;
    }
    .header-bg-two{
        height: 430px;
    }
    .header-bg-three{
        height: 505px;
    }
    .header-bg-fore{
        height: 455px;
    }
    #map, .map-imgh{
        height: 300px;
    }
    .map-img{
        margin-top: -80px;
        margin-left: -50px;
    }
}
