/* обьявляем переменные */ .width-floating { max-width: 1000px; width: 90%; min-width: 240px; margin: 0 auto; } .width { max-width: 1020px; margin: 0 auto; } @font-face { font-family: 'Impacted'; src: url('../font/Impacted.eot?#iefix') format('embedded-opentype'), url('../font/Impacted.woff') format('woff'), url('../font/Impacted.ttf') format('truetype'), url('../font/Impacted.svg#Impacted') format('svg'); font-weight: normal; font-style: normal; } * { vertical-align: baseline; font-family: inherit; font-style: inherit; font-size: 100%; border: 0 none; outline: 0; padding: 0; margin: 0; box-sizing: border-box; } body{ font-family: 'Roboto', Arial; margin: 0; background: #fffbf8; } p{font-size: 12px; line-height: 1.5;} .clear { clear: both; float: none; height: 0; font-size: 0; } #wrap{ .width; background: #fff; } .padding{ padding: 20px; box-sizing: border-box; -moz-box-sizing: border-box; /*Firefox 1-3*/ -webkit-box-sizing: border-box; /* Safari */ } .header{ background: url('http://mobidacha.ru/wp-content/themes/mobidacha/img/bg-header.jpg') top no-repeat, url('http://mobidacha.ru/wp-content/themes/mobidacha/img/bg-header.jpg') no-repeat bottom !important; min-height: 189px; padding: 40px 50px; text-align: justify; /* Обнуляем для родителя*/ line-height: 0; font-size: 1px; /* 1px для Opera */ /* Лекарство для IE6-7*/ text-justify: newspaper; zoom:1; /* Включаем в работу последнюю строку*/ text-align-last: justify; &:after{ width: 100%; height: 0px; visibility: hidden; overflow: hidden; content: ''; display: inline-block; } &>div{ display: inline-block; text-align: left; /* Востанавливаем у потомков, кроме последнего*/ line-height: normal; //font-size: 14px; /* Без него в Opera будет отступ под элементами */ vertical-align: middle; /* эмуляция inline-block для IE6-7*/ //display : inline; //zoom : 1; } #logo{ width: 250px; height: 150px; background: url('../img/logo.png') center no-repeat; position: absolute; top: -50px; left: -20px; } .tel{ font-size: 24px; font-weight: bold; text-align: center; margin-bottom: 20px; } img{ width: auto; height: 100%; } } .request:hover,.shema:hover{ box-shadow: 1px 1px 5px rgba(0,0,0,.4); } .request,.shema{ background: #80ba27; font-size: 20px; color: #fff; text-decoration: none; display: inline-block; padding: 10px 20px; } .h1{ height: 115px; background: url('../img/bg-h1.png') no-repeat center; h1{ font-family: 'Impacted'; font-size: 36px; font-weight: 100; color: #fff; //text-shadow: 2px 2px 2px #000; text-align: center; line-height: 115px; } } section{ padding: 0 50px; font-size: 0; h2{ font-size: 24px; text-align: center; margin: 50px 0; } .favorite-title{color: #3b7401} .alternative-title{color: #d64115} .span{ position: relative; display: inline-block; vertical-align: top; width: 50%; min-height: 90px; padding: 0 60px 0 130px; margin-bottom: 50px; p{font-size: 20px; font-weight: 100; line-height: 1.3;} .icon-rotate{ width: 110px; height: 110px; position: absolute; left: 0; top: 0; background-size: contain; } &:hover .favorite{ background: url('../img/icon-favorite-hover.png') no-repeat center; background-size: contain; } &:hover .favorite2{ -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); -moz-animation-name: icon-rotate2; -moz-animation-duration: .5s; -webkit-animation-name: icon-rotate2; -webkit-animation-duration: .5s; -moz-animation-timing-function: linear; -moz-animation-iteration-count: 1; -moz-animation-direction: normal; -moz-animation-delay: 0; -moz-animation-play-state: running; -moz-animation-fill-mode: forwards; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: 1; -webkit-animation-direction: normal; -webkit-animation-delay: 0; -webkit-animation-play-state: running; -webkit-animation-fill-mode: forwards; @-webkit-keyframes icon-rotate2 { 0% { -moz-transform: rotate(0deg); -webkit-transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); -webkit-transform: rotate(360deg); background: url('../img/icon-favorite2-hover.png') no-repeat center; background-size: contain; } } @-moz-keyframes icon-rotate2 { 0% { -moz-transform: rotate(0deg); -webkit-transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); -webkit-transform: rotate(360deg); background: url('../img/icon-favorite2-hover.png') no-repeat center; background-size: contain; } } } &:hover .favorite3{ -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); -moz-animation-name: icon-rotate3; -moz-animation-duration: .5s; -webkit-animation-name: icon-rotate3; -webkit-animation-duration: .5s; -moz-animation-timing-function: linear; -moz-animation-iteration-count: 1; -moz-animation-direction: normal; -moz-animation-delay: 0; -moz-animation-play-state: running; -moz-animation-fill-mode: forwards; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: 1; -webkit-animation-direction: normal; -webkit-animation-delay: 0; -webkit-animation-play-state: running; -webkit-animation-fill-mode: forwards; @-webkit-keyframes icon-rotate3 { 0% { -moz-transform: rotate(0deg); -webkit-transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); -webkit-transform: rotate(360deg); background: url('../img/icon-favorite3-hover.png') no-repeat center; background-size: contain; } } @-moz-keyframes icon-rotate3 { 0% { -moz-transform: rotate(0deg); -webkit-transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); -webkit-transform: rotate(360deg); background: url('../img/icon-favorite3-hover.png') no-repeat center; background-size: contain; } } } } .favorite{background: url('../img/icon-favorite.png') no-repeat center;} .favorite2{background: url('../img/icon-favorite2.png') no-repeat center;} .favorite3{background: url('../img/icon-favorite3.png') no-repeat center;} } .slider{ background: url('../img/bg-slider.jpg') no-repeat bottom; background-size: cover; padding-bottom: 150px; h2{ background: rgba(191, 84, 0, 0.5); font-family: 'Impacted'; font-size: 36px; font-weight: 100; color: #fff; //text-shadow: 2px 2px 2px #000; text-align: center; line-height: 115px; margin-bottom: 50px; } .metaslider{ border: 5px solid #fff; box-shadow: 0 0 5px #000; } } .questions{ background: #f26119 url('../img/bg-questions.jpg') no-repeat top; padding: 0 50px 20px 50px; h2{ font-family: 'Impacted'; font-size: 35px; font-weight: 100; color: #fff; //text-shadow: 2px 2px 2px #000; text-align: center; line-height: 90px; text-transform: uppercase; } p{ color: #fff; font-size: 22px; text-align: center; text-transform: uppercase; //text-shadow: 1px 1px 2px #000; } .questions-contact{ font-size: 0; margin-top: 20px; .span{ display: inline-block; width: 50%; text-align: center; } .tel{ color: #fff; font-size: 30px; //text-shadow: 1px 1px 5px #000; } } } .work{ background: url('../img/bg-work.jpg') no-repeat center; background-size: cover; padding-bottom: 50px; h2{ font-family: 'Impacted'; font-size: 30px; font-weight: 100; color: #fff; //text-shadow: 2px 2px 2px #000; text-transform: uppercase; text-align: center; line-height: 80px; } .work-shema{ display: table; width: 80%; margin: 0 auto; margin-bottom: 100px; ul{ display: table-row; list-style: none; li{ display: table-cell; float: none; text-align: center; position: relative; color: #fff; &:nth-child(1) .icon-item{background-image: url('../img/work-shema-1.png');} &:nth-child(2) .icon-item{background-image: url('../img/work-shema-2.png');} &:nth-child(3) .icon-item{background-image: url('../img/work-shema-3.png');} &:nth-child(4) .icon-item{background-image: url('../img/work-shema-4.png');} &:nth-child(5) .icon-item{background-image: url('../img/work-shema-5.png');} } li:nth-child(1):after, li:nth-child(2):after, li:nth-child(3):after, li:nth-child(4):after{ content: ''; width: 10px; height: 50px; background: url('../img/work-shema-next.png') no-repeat center; background-size: contain; position: absolute; top: 15%; right: 0; } } .icon-item{ display: inline-block; width: 80px; height: 80px; background-size: cover; -moz-transition: all 1s ease-out; -o-transition: all 1s ease-out; -webkit-transition: all 1s ease-out; &:hover{ -webkit-transform: scale(1.1); -moz-transform: scale(1.1); -o-transform: scale(1.1); cursor: pointer; } } } .work-info{ width: 80%; margin: 0 auto; padding: 20px 5%; background: url('../img/dekor-blok.jpg') repeat-x top center, url('../img/dekor-blok.jpg') repeat-x bottom center, rgba(255, 255, 255, 0.8); box-shadow: 0 0 18px #000; p{ font-size: 20px; font-weight: 100; } } } .reviews{ padding: 0 50px; h2{ color: #d64115; font-size: 24px; text-transform: uppercase; text-align: center; line-height: 80px; } ul{ list-style: none; li{ margin-bottom: 50px; overflow: overlay; .author-avatar{ text-align: center; width: 300px; float: left; img{ width: 220px; height: 220px; border-radius: 50%; overflow: hidden; //box-shadow: 2px 2px 0 red; } } .author-name{ font-size: 20px; } p{ font-size: 20px; font-weight: 300; } &:nth-child(odd) .author-avatar{float: right!important;} } } } .actions{margin-top: -50px;} .request-form{ background: url('../img/bg-h1.png') no-repeat center; padding: 50px 0; form{ background: url('../img/dekor-blok.jpg') repeat-x top center, url('../img/dekor-blok.jpg') repeat-x bottom center, #fff; padding: 50px; width: 50%; margin: 0 auto; box-shadow: 0 0 15px #666; input{ width: 100%; padding: 5px; margin-bottom: 10px; border: 1px solid #ccc; } input[type='submit']{ background: #80ba27; font-size: 20px; color: #fff; text-decoration: none; display: inline-block; padding: 10px 20px; cursor: pointer; &:hover{ box-shadow: 1px 1px 5px #ccc; } } } } .wrap{} .footer{ margin-top: 0px; padding: 50px 0; background: #ed6d19; font-size: 0; .span{ display: inline-block; width: 50%; text-align: center; vertical-align: top; } .way-title{ font-size: 24px; color: #fff; text-transform: uppercase; //text-shadow: 1px 1px 5px #000; margin-bottom: 30px; text-align: center; } .way-adress{ font-size: 20px; line-height: 1.5; padding: 10px; width: 80%; margin: 0 auto; color: #fff; text-align: left; padding-top: 40px; } } @media screen and (max-width: 420px){ *{ font-size: 100%!important; } #wrap{ width: 320px!important; } .header{ padding: 20px 10px; .logo img{width: 120px} .dnk {margin: 0 0 0 20px!important; img{width: 150px}} .tel{width: 300px; margin-top: 20px; text-align: center; font-size: 26px!important;} .request,.shema{margin: 0 auto; width: 70%; display: block; text-align: center;} } .h1{ background-size: 110%; height: 50px!important; h1{font-size: 14px!important; line-height: 50px!important;} } section{ padding: 0 10px; h2{margin: 20px 0;} .span{ width: 100%; padding: 0 0 0 75px!important; margin-bottom: 10px; font-size: 14px!important; .icon-rotate{width: 70px; height: 70px;} } } .slider{background-position: left bottom; margin-bottom: 100px;} .slider h2{line-height: 50px} .questions{ padding: 0 10px 20px 10px; h2{font-size: 24px!important;} .work-shema{margin-bottom: 35px!important;} .questions-contact .span{width: 100%!important; display: block!important;} .tel{font-size: 24px!important; margin-bottom: 20px!important;} } .work{ background-position: right center!important; h2{font-size: 18px!important;} .work-shema{margin-bottom: 35px!important;} .icon-item{width: 50px!important; height: 50px!important;} .work-name, .work-info{font-size: 10px!important;} li:after{display: none} } .reviews{ padding: 0 10px; h2{font-size: 18px!important; line-height: 50px!important;} li{font-size: 10px!important;} .author-avatar{ width: 100px!important; img{width: 80px!important; height: 80px!important;} } } .request-form{ form{width: 90%!important;} } .footer{ .span{ display: block!important; width: 90%; margin: 10px auto; } } } .flex-direction-nav a { background: url(http://mobidacha.ru/wp-content/themes/mobidacha/img/arr.png) no-repeat 0 0 !important; opacity: 1 !important; width: 38px !important; height: 37px !important; } .flex-direction-nav .flex-next { background-position: 100% 0; right: -60px !important; transform: rotate(180deg); overflow: hidden; } .flex-direction-nav .flex-prev { background-position: 100% 0; left: -60px !important; } @media screen and (max-width: 860px){ .flex-direction-nav .flex-next { right: 0 !important; } .flex-direction-nav .flex-prev { opacity: 1; left: 0 !important; } } .fixed-button{ cursor: pointer; border-radius: 0 55px 55px 0; background: #80ba27; //transition: background .3s; width: 320px; height: 120px; position: fixed; top: 130px; left: -10px; color: #ffffff; font-size: 20px; text-decoration: none; display: flex; justify-content: center; align-items: center; padding-left: 10px; &:hover { background: #80ba27; } .text_btn{ margin-right: 20px; } .img_btn{ width: 90px; height: 90px; border-radius: 50%; overflow: hidden; } } @media screen and (max-width: 1350px){ .fixed-button{display: none;} } .popup{ display: none; background-color: #fff; &__layout{ background-color: rgba(0, 0, 0, 0.6); position: fixed; width: 100%; height: 100%; z-index: 5000; top: 0; left: 0; } &__box{ border-radius: 10px; box-shadow: 0px 10px 16px 0px rgba(0, 0, 0, 0.24); width: 839px; height: 302px; background: url('http://mobidacha.ru/wp-content/themes/mobidacha/img/bg-header.jpg') top no-repeat, url('http://mobidacha.ru/wp-content/themes/mobidacha/img/bg-header.jpg') no-repeat bottom !important; position: fixed; top: 30%; margin-top: -150px; left:50%; margin-left: -420px; z-index: 10000; &__inner{ background: #fff; height: 91%; margin: 14px 0 10px 0; padding: 30px 40px; } } &__h{ color: #d64115; font-size: 1.563rem; text-transform: uppercase; height: 60px; border-radius: 10px 10px 0 0 ; line-height: 60px; text-align: center; } &__body{ } &__text{ margin-bottom: 40px; color: #494949; font-size: 1.2rem; } &__btn{ padding: 0 20px; height: 51px; line-height: 51px; text-align: center; border-radius: 5px; font-size: 1.25rem; margin-right: 20px; cursor: pointer; display: inline-block; } #ok_popup{ background: #80ba27; color: #fff; margin-left: 162px; } #close_popup{ background: #ccc; } } @media screen and (max-width: 1000px){ .popup{ display: none !important; } }