@font-face {
    font-family: myfont;
    src: url(../fonts/foo_regular.ttf);
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #4b4b4b;
    background: url(../img/bg-mel.png) repeat;
}

.logo {
    text-align: center;
}

.hideonmobile {
    display: none;
}

.header-wrap {
    background: url(../img/zigzag1.png) bottom center / 700px no-repeat, url(../img/head-photo.png) 50% 95% / 400px no-repeat, url(../img/tuman.png) 50% 100% / 750px no-repeat, url(../img/bg-mel-fiol.png) repeat, #511b70;
    color: white;
    padding-bottom: 450px;
}

.header-wrap img {
    padding: 5px;
    width: 132px;
    height: auto;
}

.menu ul {
    margin-top: 20px;
}

.menu li {
    display: inline;
    padding: 0 12px 0;
}

.center {
    text-align: center;
}

.menu li a {
    text-decoration: none;
    color: #fff;
}

.menu li a:hover {
    color: #fdd000;
}

.city, .top-phone {
    text-align: center;
}

.city {
    margin-top: 0;
    color: #fdd000;
}

.top-phone, .top-phone a {
    font-size: 20px;
    text-decoration: underline;
    color: #fff;
}

h1 {
    font-size: 25px;
    text-transform: uppercase;
}

.header-wrap h1 {
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.header-wrap h3 {
    font-size: 16px;
    color: #fdd000;
    text-align: center;
}

ul.top-prog {
    padding-left: 80px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 20px;
}

.header-wrap p {
    font-size: 14px;
    color: #fdd000;
    text-align: center;
}

button, 
button:active, 
button:hover, 
button:focus {
    outline: none;
    border: none;
}

.button {
    text-decoration: none;
    text-shadow: 1px 1px 1px black;
    outline: none;
    display: inline-block;
    padding: 25px 15px;
    margin: 5px 0px;
    border-radius: 30px;
    background-image: linear-gradient(45deg, #ff8400 0%, #f6ff00 50%, #ff0000 100%);
    background-position: 100% 0;
    background-size: 200% 200%;
    font-size: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 16px 32px 0 rgba(0,40,120,.35);
    transition: .5s;
}

.button:hover {
    box-shadow: 0 0 0 0 rgba(0,40,120,0);
    background-position: 0 0;
    color: white;
    cursor: pointer;
}

.adv {
    text-align: center;
    font-size: 12px;
}

.adv img {
    width: 55px;
    height: auto;
}

.nauch h1, .feed h1 {
    font-family: myfont;
    color: #511b70;
    text-align: center;
    margin-top: 30px;
}

.nauch p {
    text-align: center;
    font-size: 14px;
    margin: 15px 0;
    color: #511b70;
}

.nauch p span {
    font-weight: 700;
}

.vid-wrap {
        background: url(../img/vid-bg1.png) left center / contain no-repeat, url(../img/vid-bg2.png) right center / contain no-repeat;

}

.video {
    width: 90%;
    margin: 0 auto;
}

.calc, .dop {
    background: url(../img/zig-1.jpg) top center / 700px no-repeat, url(../img/zig-2.jpg) bottom center / 700px no-repeat, url(../img/bg-mel-fiol.png) repeat, #511b70;
    padding: 60px 0 30px;
}

.calc h1, .dop h1 {
    font-family: myfont;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin: 0 auto 30px;
}

.calc-quest {
    margin-top: 10px;
}

.calc-quest p {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

.calc-list {
    margin: 0 0 0 15px;
}

.calc-list label {
    color: white;
    font-size: 16px;
}

.radio {
  position: absolute;
  left: -9999px;
}

.radio+label {
  position: relative;
  padding: 0 0 0 35px;
  cursor: pointer;
}

.radio+label:before {
  content: '';
  border: 2px solid #fdd000;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

.radio+label:after {
  content: '';
  background: #fdd000;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  opacity: 0;
  transform: scale(2);
  transition: transform 0.3s linear, opacity 0.3s linear;
}

.radio:checked+label:after {
  opacity: 1;
  transform: scale(1);
}

.radio:checked+label {
    color: #fdd000;
}

.checkbox {
  position: absolute;
  left: -9999px;
}

.checkbox+label {
  position: relative;
  padding: 0 0 0 35px;
  cursor: pointer;
}

.checkbox+label:before {
  content: '';
  border: 2px solid #fdd000;
  border-radius: 3px;
  height: 20px;
  width: 20px;
  position: absolute;
  top: 0;
  left: 0;
}

.checkbox+label:after {
  content: '';
  border-style: solid;
  border-width: 0 0 2px 2px;
  border-color: transparent transparent #fdd000 #fdd000;
  width: 10px;
  height: 5px;
  position: absolute;
  top: 6px;
  left: 5px;
  opacity: 0;
  transform: scale(2) rotate(-45deg);
  transition: transform 0.3s linear, opacity 0.3s linear;
}

.checkbox:checked+label:after {
  opacity: 1;
  transform: scale(1) rotate(-45deg);
}

.checkbox:checked+label {
    color: #fdd000;
}

.calcsubmit {
    margin: 15px 0 15px;
    text-align: center;
    width: 100%;
}

.modal {
    text-align: left;
}

.form-group {
    text-align: center;
    font-weight: 700;
}

.green {
    color: green;
}

img.progressImg, .show-prog img.progressImg {
    width: 32px;
    height: 32px;
    display: none;
}

.show-prog img.progressImg {
    margin-bottom: 30px;
}

.calc .button {
    padding: 15px 25px;    
}

.show-prog1 {
    background: repeating-linear-gradient(to right,rgb(220, 179, 232) 0%,rgb(255, 255, 255) 50%,rgb(255, 255, 255) 51%,rgb(255, 255, 255) 100%);        
}

.show-prog2 {
    background: repeating-linear-gradient(to left,rgb(163, 235, 255) 0%,rgb(255, 255, 255) 50%,rgb(255, 255, 255) 51%,rgb(255, 255, 255) 100%);
}

.show-prog3 {
    background: repeating-linear-gradient(to right,rgb(255, 155, 196) 0%,rgb(255, 255, 255) 50%,rgb(255, 255, 255) 51%,rgb(255, 255, 255) 100%);        
}

.show-prog4 {
    background: repeating-linear-gradient(to left,rgb(255, 250, 174) 0%,rgb(255, 255, 255) 50%,rgb(255, 255, 255) 51%,rgb(255, 255, 255) 100%);
}

.show-prog h1, .show-prog h3 {
    color: #511b70;
}

.show-prog h1 {
    font-family: myfont;
    text-align: center;
    margin: 30px auto;
}

.show-prog h3 {
    font-weight: 700;
}

.show-prog img {
    width: 100%;
    height: auto;
}

.show-prog img, .show-prog h3 {
    margin-top: 30px;    
}

.show-prog .button, .dop .button, .feed button {
    margin-bottom: 30px;
    padding: 15px 20px;
}

.show-prog p {
    font-size: 15px;
}

.center {
    text-align: center;
}

.dop h4 {
    color: #fdd000;
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    padding-top: 40px;
}

.dop p {
    color: #fff;
    text-align: center;
}

.dop img {
    width: 100%;
    height: auto;
}

.vk-top {
    background: #4a76a8;
    color: white;
}

.vk-top p {
    font-size: 14px;
    margin: 5px 0 5px 10px;
}

.vk-top img {
    width: 30px;
    height: auto;
    margin: 6px 20px 0 0;
}

.vk-logo {
    text-align: right;
}

.vk-otz {
    margin-top: 10px;
}

.vk-face  {
    
}

.vk-name {
    color: #3b658f;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    background: url(../img/vk-3t.png) no-repeat 100% 50%;
}

.vk-body {
    font-size: 14px;
}

.vk-date {
    font-size: 12px;
}

.footer {
    background: url(../img/zigzag-foot.png) top center no-repeat, #751b97;
    padding: 150px 0 0;
    color: #fff;
    text-align: center;
}

.footer img {
    width: 50%;
    height: auto;
}

.top-phone img {
    width: auto;
    height: auto;
}

.footer .top-phone, .footer .top-phone a {
    text-decoration: none;
}

.copyright {
    padding: 25px 0;
}

.map {
    margin: 0 auto 20px;
    width: 100%;
}

@media (min-width:576px){

    h1 {
        font-size: 38px;
    }

    .city {
    text-align: right;
    }
    
    .top-phone {
        text-align: right;
    }
    
    .footer .top-phone {
        text-align: center;
    }
    
    .city {
    margin-top: 20px;
    }
    
    .top-phone, .top-phone a {
        font-size: 30px;
    }  

    .header-wrap h3 {
        font-size: 20px;
    }
    
    ul.top-prog {
        font-size: 20px;
        padding-left: 150px;
    }
    
    .header-wrap p {
        font-size: 16px;
    }
    
    .button {
        padding: 25px 25px;    
    }
    
    .adv {
        text-align: center;
        font-size: 14px;
    }

    .adv img {
        width: auto;
        height: auto;
    }
    
    .nauch p {
        font-size: 16px;
    }
    
    .calc-list {
        margin: 0;
    }
    
    .calc, .dop {
        background: url(../img/zig-1.jpg) top center no-repeat, url(../img/zig-2.jpg) bottom center no-repeat, url(../img/bg-mel-fiol.png) repeat, #511b70;
        padding: 120px 0 100px;
    }    
    
    .video {
        width: 70%;
    }    
    
    .show-prog p {
        font-size: 16px;
    }
    
    .footer img {
        width: 30%;
    }

    .top-phone img {
        width: auto;
        height: auto;
    }        
}

@media (min-width:768px){
    .header-wrap h1 {
        text-align: left;
    }
    h1 {
        font-size: 27px;
    }
    .header-wrap h3 {
        font-size: 16px;
    }
    .header-wrap h3 {
        text-align: left;
    }
    ul.top-prog {
        font-size: 16px;
    }
    ul.top-prog {
        padding-left: 20px;
    }
    .header-wrap .center {
        text-align: left;
    }
    .header-wrap p {
        text-align: left;
    }
    .header-wrap {
        background: url(../img/zigzag1.png) bottom center no-repeat, url(../img/head-photo.png) 100% 65% / 480px no-repeat, url(../img/tuman.png) 110% 20% / 70% no-repeat, url(../img/bg-mel-fiol.png) repeat, #511b70;
        padding-bottom: 148px;
    }
    .top-phone, .top-phone a {
        font-size: 22px;
    }
    .show-prog p {
        font-size: 15px;
    }
    .footer img {
        width: 65%;
    }
    .copyright {
        padding: 5px 0;
    }
    .footer .top-phone img {
        width: auto;
        height: auto;
    }
}

@media (min-width: 992px) {

    .hideonmobile {
        display: block;
    }
    .menu li {
        padding: 0 6px 0;
    }
    h1 {
        font-size: 31px;
    }
}

@media (min-width: 1200px) {
    .menu li {
        padding: 0 12px 0;
    }
    .top-phone, .top-phone a {
        font-size: 25px;
    }
    .copyright {
        padding: 25px 0;
    }
    .header-wrap {
        background: url(../img/zigzag1.png) bottom center no-repeat, 
        url(../img/head-photo.png ) 95% -45% no-repeat, 
        url(../img/tuman.png ) 120% 0% no-repeat, 
        url(../img/bg-mel-fiol.png) repeat,    
        #511b70;
        color: white;
        padding-bottom: 150px;
    }
    
    .city, .top-phone {
        text-align: right;
    }

    .header-wrap h1 {
        text-align: left;
    }
    
    .header-wrap h3 {
        text-align: left;    
    }
    
    ul.top-prog {
        padding-left: 18px;
    }
    
    .adv {
        font-size: 16px;
    }

    h1 {
        font-size: 46px;
    }

    .nauch p {
        font-size: 20px;
    }
    
    .show-prog p {
        font-size: 18px;
    }
    
    .footer img {
        width: 50%;
    }

    .top-phone img {
        width: auto;
        height: auto;
    }
}

