html {
    height: 100%;
}

* html body {
    height: 100%;
}

body {
    line-height: 1;
    min-height: 100%;
    position: relative;
    line-height: 150%;
}

.fl {
    float: left;
}

.right {
    float: right;
}

a, .text-colored {
    color: #1db9d5;
}

a:hover {
    text-decoration: none;
}

a.anchor {
    color: #333
}

a.anchor:hover {
    color: #333
}

.view-block {
    display: block;
}

.clear {
    clear: both;
}

sup {
    font-size: 75%;
}

.visible {
    visibility: visible !important;
    height: 350px !important;
}

.round-corners {
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

/* Header
-----------------------------------------------------------------------------*/
header {
    overflow: hidden;
    height: 136px;
}

header .logo {
    float: left;
    margin-top: 43px;
}

.top-menu {
    float: right;
    list-style: none;
    margin: 0 0 51px;
}

.top-menu ul {
    overflow: hidden;
    list-style: none;
}

.top-menu li {
    float: left;
    margin: 0 10px;
    border-top: 3px solid white;
    padding-top: 48px;
}

.top-menu li a, .top-menu li span {
    display: block;
    color: #333;
    padding: 7px 12px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

.top-menu li.active {
    border-top-color: #1db9d5;
}

.top-menu li a:hover, .top-menu li.active a, .top-menu li.active span {
    color: white;
    background-color: #1db9d5;
}

/* Middle
-----------------------------------------------------------------------------*/
/*.promo-works {position: relative;height: 300px;}
.promo-works ul {list-style: none;padding: 0;color: white;}
.promo-works ul li {overflow: hidden;height: 300px;width: 100%;float: left;}
.promo-works ul li h3 {margin: 32px 0 12px 134px;font-size: 300%;font-weight: normal;}
.promo-works ul li p {font-size: 140%;line-height: 120%;width: 450px;margin: 0 0 30px 134px;}
.promo-works ul li a {font-size: 130%;padding: 11px 20px;background-color: #cf5309;color: white;margin-left: 134px;}
.promo-works ul li a:hover {text-decoration: underline;}
.promo-works ul li img {position: absolute;margin: -253px 0 0 270px;}
.promo-company {background: url(../img/promo-bg.jpg) no-repeat;}
*/
.promo-works {
    position: relative;
    height: 338px;
    overflow: hidden;
}

.promo-works ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    color: white;
    overflow: hidden;
    width: 9999px;
    height: 338px;
    position: absolute;
}

.promo-works ul li {
    overflow: hidden;
    height: 338px;
    width: 1200px;
    float: left;
}

.promo-works ul li .text, .promo-works ul li .img {
    float: left;
}

.promo-works ul li .text {
    width: 370px;
    margin: 49px 0 0 67px
}

.promo-works ul li .img {
    width: 663px;
}

.promo-works ul li h3 {
    margin-bottom: 12px;
    font-size: 300%;
    font-weight: normal;
}

.promo-works ul li p {
    font-size: 140%;
    line-height: 120%;
    margin-bottom: 30px;
}

.promo-works ul li a {
    font-size: 130%;
    padding: 11px 20px;
    background-color: #cf5309;
    color: white;
}

.promo-works ul li a:hover {
    text-decoration: underline;
}

.promo-works ul li .img {
    background: url(../img/promo-comp.png) no-repeat;
    height: 340px;
    margin-left: -50px;
}

.promo-works ul li .img img {
    margin: 17px 0 0 106px;
}

.promo-company {
    background: url(../img/promo-bg.jpg) no-repeat center 20px;
}

.promo-works .arrows {
    top: 150px;
    font-size: 250%;
    position: relative;
    color: white;
    display: block;
    height: 36px;
    width: 40px;
    padding: 24px 0 0 20px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 30px rgba(255, 255, 255, 0.6);
}

.promo-works .arrows:hover {
    color: black;
}

.promo-works .arrows.left {
    left: 10px;
    float: left;
}

.promo-works .arrows.right {
    right: 10px;
}

.we-are-the-best {
    min-height: 230px;
    background: url(../img/we-best-bg.png);
}

.we-are-the-best h2 {
    font-weight: normal;
    font-size: 170%;
    margin-top: 33px;
}

.we-are-the-best img {
    float: left;
    margin-right: 20px;
}

.we-are-the-best .span3 {
    overflow: hidden;
}

.main-page-reviews {
    background-color: #3190bc;
}

.main-page-reviews .head {
    overflow: hidden;
}

.main-page-reviews .head h2 {
    float: left;
    font-weight: normal;
    position: relative;
}

.main-page-reviews .head h2 a:hover {
    text-decoration: underline;
}

.main-page-reviews .head h2 a:after {
    content: "";
    position: absolute;
    bottom: 9px;
    right: -15px;
    border-width: 0 0 6px 6px;
    border-style: solid;
    border-color: #fff #3190BC;
}

.main-page-reviews a {
    color: white;
}

.main-page-reviews a.more-link {
    padding: 12px 20px;
    background-color: #1db9d5;
    font-size: 130%;
}

.main-page-reviews a.more-link:hover {
    text-decoration: underline;
}

.paging {
    font-size: 80%;
    line-height: 40px;
    margin: 10px 0;
}

.main-page-reviews .paging {
    color: white;
}

.review, .main-page-blog {
    background-color: white;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.review .header, .main-page-blog .header, .review .text, .main-page-blog .text {
    padding: 16px 17px;
}

.review .text, .main-page-blog .text, .item .text {
    background: url(../img/main-page-reviews-border.png) no-repeat top;
}

.review .header img, .main-page-blog .header img {
    float: left;
    margin-right: 20px;
}

.review .header .title, .main-page-blog .header .title {
    color: black;
    margin: 10px 0;
}

.review .header .title span, .main-page-blog .header .title span, .item .header .title span {
    color: gray;
    font-size: 90%;
    margin-top: 10px;
    display: block;
}

.main-page-reviews .footer {
    margin: 20px 0;
    line-height: 310%;
}

.maintext {
    padding: 20px 0;
}

.text-page h1 {
    margin-bottom: 30px;
    position: relative;
}

.text-page h1:after {
    content: "";
    position: absolute;
    bottom: 7px;
    margin-left: 10px;
    border-width: 0 0 6px 6px;
    border-style: solid;
    border-color: #000 #fff;
}

.text-page ol {
    counter-reset: li; /* Инициализируем счетчик */
    padding: 0; /* Удаляем  установленное по умолчанию левое поле*/
    /*list-style:none; */
}

.text-page ol li {
    position: relative; /* Создаем контекст для позиционирования элементов */
    margin: 0 0 10px 1.97em; /* Даем каждому элементу списка отступ слева, что бы освободить пространство для нумерации */
    padding: 4px 0px;
    /*border-top: 1px dotted #3291BD;*/
    /*background:#f6f6f6;*/
    display: block;
}

.text-page ol li:before {
    content: counter(li); /* В качестве данных используем счетчик */
    counter-increment: li; /* Увеличиваем значение счетчика на 1 */
    /* Позиционируем и оформляем цифры */
    position: absolute;
    top: 7px;
    left: -1.5em;
    width: 1em;
    padding: 10px 5px;
    /*border-top:1px dotted #333;*/
    color: #fff;
    background: #1db9d5;
    /*font-weight:bold;*/
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    font-size: 250%;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

.text-page ol.small-numbers li {
    margin: 0 0 10px .3em;
    padding: 4px 0px;
}

.text-page ol.small-numbers li:before {
    top: 7px;
    left: -1.7em;
    padding: 1px 3px;
    font-size: 120%;
}

.text-page h3, .text-page h4 {
    line-height: inherit;
    margin-top: 20px;
}

.text-page ul {
    margin-bottom: 20px;
}

.text-page ul li {
    margin-top: 10px;
}

.text-page ul li:first-child {
    margin-top: 0;
}

.text-page .lead {
    line-height: 27px;
}

.portfolio .item {
    margin-top: 25px;
    margin-bottom: 40px;
    position: relative;
}

.item .description {
    position: absolute;
    overflow: hidden;
    top: 0;
    z-index: -1;
    max-height: 0;
    width: 100%;
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(29, 185, 213, 0.7);
    -webkit-transition: max-height linear 0.4s 0.1s, box-shadow 0.3s, opacity 0.3s;
    -moz-transition: max-height linear 0.4s 0.1s, box-shadow 0.3s, opacity 0.3s;
    transition: max-height linear 0.4s 0.1s, box-shadow 0.3s, opacity 0.3s;
}

.item:hover .description {
    max-height: 500px;
    z-index: 1;
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(29, 185, 213, 0.7);
}

.item .preview {
    position: absolute;
    height: 171px;
    width: 100%;
    background-color: rgba(33, 33, 33, 0.7);
    color: white;
    text-align: center;
    -moz-background-clip: padding; /* Firefox 3.6 */
    -webkit-background-clip: padding; /* Safari 4? Chrome 6? */
    background-clip: padding-box;
}

.item .preview i {
    display: block;
    margin: 70px auto 0;
}

.item .info {
    background: #ffffff;
    margin-top: 171px;
    padding: 15px;
}

.item a {
    position: relative;
    display: block;
    color: #ffffff;
}

.item a:hover {
    text-decoration: underline;
}

.item .header {
    margin-bottom: 16px;
}

.item .header .title {
    margin-top: 10px;
    text-align: center;
}

.item .header .title span {
    margin: 0;
}

.item .text {
    padding: 16px 0;
    font-size: 90%;
}

.portfolio .paging, .portfolio .paging a {
    color: #1db9d5;
    font-weight: bold;
}

.contacts h2 {
    font-weight: normal;
    position: relative;
    margin-bottom: 30px;
    font-size: 190%;
}

.contacts h2:after {
    content: "";
    position: absolute;
    bottom: 9px;
    margin-left: 7px;
    border-width: 0 0 6px 6px;
    border-style: solid;
    border-color: #000 #fff;
}

.contacts address {
    margin-bottom: 30px;
}

.contacts address span {
    display: block;
    font-weight: bold;
}

.contacts address a {
    color: #333;
}

.contacts .title {
    color: #1db9d5;
}

.contacts address .help-block {
    font-weight: normal;
    font-size: 90%;
    color: #888;
    display: inline;
}

.qr-hint.phone {
    margin-bottom: 10px;
}

.qr-hint img {
    display: none;
    position: absolute;
    top: 150px;
    z-index: 1;
    left: 25%;
}

.qr-hint a {
    border-bottom: 1px dashed #333;
}

.qr-hint:hover a {
    border-bottom: none;
    cursor: pointer;
}

.qr-hint:hover img {
    display: block;
}

/* Sidebar Left
-----------------------------------------------------------------------------*/
/* Sidebar Right
-----------------------------------------------------------------------------*/
/* Footer
-----------------------------------------------------------------------------*/
footer.footer {
    background-color: #3d3d3d;
    color: white;
    padding: 20px 0 10px;
    margin-top: 50px;
}

footer.footer a {
    color: #d7d7d7;
}

footer.footer a:hover {
    text-decoration: underline;
}

footer.footer ul {
    list-style: none;
    margin: 0;
}

footer.footer ul ul {
    font-size: 90%;
}

footer.footer ul ul a {
    color: #838383;
}

footer.footer .copyright {
    font-size: 90%;
    color: #d7d7d7;
}

footer.footer hr {
    background-color: #323232;
    height: 1px;
    border-top: none;
    border-bottom: 1px solid #494949;
}

/* Responsive
-----------------------------------------------------------------------------*/

/* Large desktop */
@media (min-width: 1200px) {
    .promo-works ul li .text {
        width: 420px;
        margin: 49px 0 0 117px
    }

    .promo-works ul li .img {
        margin-left: 0;
    }

    .item .info {
        margin-top: 210px;
    }

    .portfolio .item .preview {
        height: 210px;
    }

    .portfolio .item .preview i {
        margin-top: 90px;
    }

    .text-page ol li {
        min-height: 50px;
    }

    .text-page ol.small-numbers li {
        min-height: auto;
    }
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
    .promo-works ul li .text {
        width: 320px;
        margin: 49px 0 0 52px
    }

    .promo-works ul li .img {
        margin-left: -85px;
    }

    .item .info {
        margin-top: 129px;
    }

    .item .preview {
        height: 129px;
    }

    .item .preview i {
        margin-top: 50px;
    }

    .contacts h2 {
        font-size: 140%;
    }

    .contacts h2:after {
        bottom: 13px;
    }
}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
    header {
        height: auto;
    }

    .top-menu {
        float: left;
        margin: 0;
    }

    .top-menu ul {
        margin: 0;
    }

    .top-menu li {
        margin: 0 5px;
        padding-top: 20px;
    }

    .top-menu li.active {
        border-top-color: white;
    }

    .promo-works ul li .text {
        width: 270px;
        margin: 49px 0 0 27px
    }

    .promo-works ul li .img {
        margin-left: -50px;
    }

    .item {
        text-align: center;
    }

    .item .description {
        position: relative;
        overflow: visible;
        max-height: 500px;
        z-index: 1;
        opacity: 1;
        box-shadow: none;
    }

    .item:hover .description {
        box-shadow: none;
    }

    .item .preview {
        height: 20px;
        background: none;
        margin-top: -100px;
    }

    .item .preview a {
        display: block;
        color: white;
        width: 100px;
        margin: 0 auto;
        background-color: #1db9d5;
        padding: 7px 12px;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        border-radius: 2px;
    }

    .item .preview i {
        margin-top: 0;
        margin-right: 3px;
        display: inline-block;
    }

    .item .info {
        margin-top: 0;
    }
}

/* Landscape phones and down */
@media (max-width: 480px) {
    .promo-works {
        display: none;
    }
}
