@media only screen and (max-width:500px) {

.flex_valign {
display: block;
}

header .container-fluid {
    height: auto;
    padding-top: 100px;
}
header .promo {
    position: static;
}
header h1 {
font-size: 50px;
margin-bottom: 20px;
}

.top_line {
padding: 8px 0; 
font-size: 14px;
text-align: center;
}
.logo {
font-size: 28px;
margin-bottom: 8px;
}
.top_line .tel {
    font-size: 16px;
    position: relative;
    top: 5px;
}
.button_def {
height: 24px;
font-size: 16px;
line-height: 24px;
font-size: 14px;
}

footer, footer .container-fluid {
    text-align: center;
}
footer .logo {
margin-bottom: 10px;
}
.button_def_big {
height: 40px;
line-height: 40px;
font-size: 16px;
}
footer .button_def_big {
    margin: 10px auto 0;
    width: 50%;
}

form.form input {
font-size: 16px;
}
.about2 {
    padding-bottom: 50px;
}
.about2 .top {
    margin-bottom: 50px;
}

.about2 .text {
font-size: 14px;
}
.h1_title {
font-size: 50px;
margin-bottom: 20px;
}

.about2 .bot {
    font-size: 14px;
}
.about2 .bot .img {
    position: static;
    margin-bottom: 30px;
}
h2,h3 {
font-size: 40px;
margin: 0 0 15px;
}

.about {
    padding-top: 30px;
    padding-bottom: 50px;
    font-size: 14px;
}
.about .bg {
padding: 15px;
font-size: 14px;
margin-bottom: 20px;
}
.about .bg .title {
font-size: 20px;
margin-bottom: 15px;
font-weight: bold;
}

.content {
    background-position: center 150px;
    padding-top: 50px;
    padding-bottom: 50px;
    font-size: 14px;
} 
.dir {
    margin-bottom: 50px;
}
.dir .bot .name {
    top: 30%;
    width: 120px;
}
.dir .pop {
    position: relative;
    display: block;
}
.dir .dashed {
    height: auto !important;
}
.dir .img {
    position: static !important;
    height: auto !important;
    margin-top: 5px;
}
.dir .name {
position: static;
padding: 15px 0;
font-size: 20px;
font-weight: bold;
}
.dir .button_def {
    margin: 15px auto 15px;
}
.dir .bg_big .button_def {
    margin-top: 15px;
}
.dir .more {
    font-size: 14px;
}
.dir .bot .img {
    height: auto;
    position: static;
    width: auto;
    margin-top: 5px;
    text-align: center;
}
.dir .bot .name {
    position: static;
    width: auto;
    text-align: center;
    margin-top: 0;
    padding: 15px;
}


.quality .right {
    padding-top: 30px;
    font-size: 20px;
}
.quality .right .img {
    position: static;
    margin-bottom: 30px;
}

.quality .bg {
padding: 15px;
}
h4 {
font-size: 24px;
font-weight: bold;
}
.quality h4::after {
top: 5px;
}
.quality ul>li:first-child, .quality ul>li:first-child .bg {
    border-radius: 30px 0 0 0;
}
.quality ul>li:last-child, .quality ul>li:last-child .bg {
    border-radius: 0 0 30px 0;
}

.modal_dir {
    font-size: 14px;
}
.pop_img .row {
display: block;
}
.pop_img a {
    display: block;
}


}