@media screen and (max-width: 768px) {
.flex-b {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
.but {
    width: 270px;
    height: 65px;
}

.input {
    width: 250px;
    height: 55px;
    border-radius: 50px;
    padding-left: 25px;
    margin: 0 auto 20px
}
header {
    background: url(../img/head-bg.jpg) 30% 50%/cover no-repeat;
}
.present {
    display: none
}
.block {
    padding: 30px 0;
}
    .block.container {
        padding: 30px 15px;
    }
.headline {
    margin: 0 0 20px;
    font-size: 26px;
}
.subtitle {
    font-size: 18px;
}
.top-head {
    padding: 15px 0;
}
.top-head>div>img {
    margin-right: 0px;
    margin-bottom: 10px
}
    .insta-head {
    position: absolute;
    margin: 0;
    right: 10px;
    top: 10px
}
h1 {
    margin: 0 0 10px;
    font-size: 16px;
    text-align: center;
}
.top-head p {
    margin: 0 0 10px;
}
.top-head p img {
    margin-right: 10px;
}
.tel {
    text-align: center;
}
.tel a {
    font-size: 22px;
}
.head-cont {
    padding: 30px 0;
}
    .head-cont .but {
        margin: 0 auto;
    }
.head-cont h2 {
    margin: 0 0 25px;
    font-size: 28px;
    font-weight: bold;
    text-align: center
}
.head-cont h3 {
    margin: 0 0 35px;
    font-size: 20px;
    line-height:normal;
    text-align: center
}
.head-ic p {
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-bottom: 20px
}
    .head-ic img {
        position: relative;
        top: -6px;
    }
.deco {
    position: absolute;
    z-index: 1;
    display: none
}
.work {
    padding: 30px 15px;
    position: relative;
}
.work-bl {
    margin-top: 30px;
}
.work-it {
    width: 100%;
    padding: 20px
}
.work-it img {
    margin-bottom: 15px;
}
.res {
    padding: 10px 0 100px;
    background: url(../img/bg1.jpg) 50% 0%/cover no-repeat
}
.res .headline {
    font-size: 20px;
    line-height: 20px;
/*    color: #fff;*/
}
.group {
    margin-top: 50px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
}
.group-it {
    width: 100%;
    padding: 20px;
    height: 330px;
    margin-bottom: 10px
}

.group-it p {
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
    text-transform: uppercase;
}
.group-it a {
    font-size: 20px;
    line-height: 24px;
    color: #A01B24;
    font-weight: bold;
    display: none
}
.group-it .dark {
    display: none;
}
.group-it:hover {
    color: #000;
    width: 100%;
}
.group-it:nth-of-type(1):hover  {
    background: url(../img/group1.jpg) no-repeat;
}
.group-it:nth-of-type(2):hover  {
    background: url(../img/group2.jpg) no-repeat;
}
.group-it:nth-of-type(3):hover  {
    background: url(../img/group3.jpg) no-repeat;
}
.group-it:nth-of-type(4):hover  {
    background: url(../img/group4.jpg) no-repeat;
}
.group-it:nth-of-type(5):hover  {
    background: url(../img/group5.jpg) no-repeat;
}
.group-it:hover .dark {
    display: block;
}
.group-it:hover .light {
    display: none;
}
.group-it:hover a {
    display: block
}
.group-it>img {
    position: absolute;
    z-index: -1;
}

.uchet {
    margin-top: 30px;
}
.uchet h4 {
    font-size: 18px;
    line-height: 29px;
    padding: 10px 0;
}
.uchet h4:after {
    display: none
}
.uchet-line {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
}
.uchet-line:nth-of-type(2) {
    margin-top: 0px
}
.uchet-line>div {
    width: 48.5%;
    margin-bottom: 20px
}
.uchet-line>div:after {
    display: none
}
.uchet-line>div:not(:last-child):before {
    display: none
}

.price {
    background: url(../img/bg2.jpg) center/cover;
}
.price-bl {
    width: 100%;
    margin: 50px auto 0;
    text-align: center
}
.price-bl h5 {
    font-size: 14px;
}
.price table {
    width: 100%;
}
.price td {
    padding: 10px 0;
    font-size: 14px;
}
.price td span {
    font-size: 16px;
    white-space: nowrap
}
.price .but {
    width: 300px;
    margin: 20px auto 0;
}

.preym-bl {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 2
}
.preym-it {
    margin-bottom: 20px;
    width: 100%;
    padding: 25px;
}
.preym-it h5 {
    font-size: 16px;
    line-height: 22px;
}
.preym-it h5:after {
    left: -25px;
}
.preym-it p {
    margin: 0;
    line-height: 19px
}

.tabs .nav {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
}
    .tabs .nav:after {
        display: none
    }
.tabs .nav a {
    color: rgba(0, 0, 0, 0.3);
    font-size: 16px;
    line-height: 19px;
    padding: 13px 0;
    margin: 0px
}
.tabs .active>a {
    color: #000;
    border-bottom: 2px solid #A01B24
}
.tabs .nav li>a:hover {
    background: none
}
.tabs .nav a:focus {
    background: none;
    color: #000
}

.tab-pane {
    display: flex;
    background: #FFFAF4;
    padding: 50px 20px 20px;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}
.inst {
    position: absolute;
    right: 1%;
    top: 10px;
}
.tab-pane>div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
    .tab-pane>div>img {
        width: 90%;
    }
.otzyv-bl {
    margin-top: 30px;
}
.otzyv-it {
    width: 100%;
    padding: 20px;
    margin-bottom: 20px;
}

.contact-bl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
}
.contact-cont {
    padding: 15px;
    width: 100%;
    margin-bottom: 20px
}
.contact-cont p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px
}

#map {
    height: 350px;
    width: 100%;
    background: #d6d6d6;
    border-radius: 30px;
    margin-left: 0px;
    overflow: hidden
}

footer {
    padding: 20px 0;
}
.foot1 {
    align-items: stretch;
    margin-bottom: 20px
}
.foot1>img {
    margin-right: 0px
}
.foot1>div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center
}

/*modal*/
.modal .modal-dialog {
    margin: 70px auto 0;
    width: auto;
}
.modal-content {
    width: 95%;
}
.work-modal .modal-content {
    width: 95%;
}
.modal-body {
    border-radius: 30px;
    padding: 15px;
    text-align: center;
}
.work-modal .modal-body {
    text-align: left;
    padding: 45px 20px 20px;
}
.modal-body h4 {
    font-size: 22px;
}
.work-modal .modal-body>p {
    display: flex;
    align-items: center;
    font-size: 16px;
}
.work-modal .modal-body h4 {
    margin-bottom: 20px;
    font-size: 24px;
}
.work-modal .modal-body>p span {
    width: 30px;
    height: 30px;
    font-size: 20px;
    margin-right: 10px;
}
.modal-body form {
    margin-top: 20px;
}
.work-modal form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center
}
.work-modal .label-control+label {
    margin: 20px auto 0;
}
.modal-body .but {
    width: 250px;
    height: 55px;
    margin: 0 auto;
    font-size: 18px
}
.modal-dialog .close {
    opacity: 1;
    position: absolute;
    top: 10px;
    right: 10px;
}
textarea.input {
    resize: none;
    padding:  15px 0 10px 25px;
    height: 100px;
    border-radius: 30px;
}
.work-modal .modal-dialog .mod-head {
    font-size: 26px;
    margin: 20px 0 20px;
    padding-top: 20px
}
    
#modal3 .modal-content {
    width: 95%;
}
#modal3 .modal-body {
    padding: 35px 10px 10px;
}
#modal3 h4 {
    font-size: 18px
}
#modal3 h4+p {
    font-size: 18px;
}
.modal-ic {
    width: 100%;
    margin: 20px auto 0px;
}
.modal-ic div {
    margin-bottom: 10px;
}
.modal-ic div p {
    margin-left: 20px;
    padding-bottom: 10px
}
#modal3 .label-control+label {
    margin: 10px auto;
}
.calc>div {
    width: 100%;
    margin-bottom: 10px;
}
.calc div p {
    justify-content: flex-start;
    font-size: 16px;
    margin-bottom: 10px
}
.calc div p img {
    margin-right: 20px;
}
.calc .text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
}
    .foot-inst {
        margin-top: 20px;
        display: block;
    }
}