@font-face {
    font-family: 'Affect';
    src: url('/font/Affect.otf');
}

@font-face {
    font-family: 'Affect_Bold';
    src: url('/font/Affect_Bold.otf');
}

@font-face {
    font-family: 'Affect_Light';
    src: url('/font/Affect_Light.otf');
}

@font-face {
    font-family: 'HelveticaNeueCyr-Roman';
    src: url('/font/HelveticaNeueCyr-Roman.otf');
}

@font-face {
    font-family: 'HelveticaNeueCyr-Thin';
    src: url('/font/HelveticaNeueCyr-Thin.otf');
}

@font-face {
    font-family: 'HelveticaNeueCyr-UltraLight';
    src: url('/font/HelveticaNeueCyr-UltraLight.otf');
}

body {
    position: relative;
    font-size: 14px;

    letter-spacing: 1px;
}

/* разметка для шаблона */
#wrapper {
    position: relative;
}

.back_top {
    background: url("/image/back_top.jpg") center 0;
    margin-top: 80px;
    height: 215px;
}

.back_purple {
    background-color: #110547;
}

.back_texture {
    background: url("/image/back_texture.jpg") center 0;
}

.back_yellow {
    background-color: #ECF0D8;
}

.navbar-fixed-top {
    border: 0 !important;
    border-image-width: 0 !important;
}

.navbar-header {
    margin: 12px 0 17px 0;
}

.navbar-nav {
    margin: 16px 0 13px 0;
}

.navbar .navbar-brand {
    font-size: 36px;
    /*font-weight: 700;*/
    font-family: Affect_Bold;
    display: none;
}

.navbar .navbar-brand sup {
    /*font-size: 22px;*/
    /*line-height: 1em;*/
    font-weight: normal;
}

.navbar a {
    color: #fff !important;
    text-transform: uppercase;
    font-size: 16px;
    font-family: Affect;
}

.navbar li a:hover {
    text-decoration: underline !important;
}

.container {
    /*padding: 60px 0 0 0 !important;*/
}

.center-block {
    max-width: 1020px;
    clear: both;
    text-align: center;
    padding: 30px 0;
}

.center-block img {
    margin: 0 auto;
}

.block_3 {
    text-align: center;
    width: 100%;
    min-height: 300px;
}

.block_3 h3 {
    margin-top: 10px;
}

.block_3:last-child {
    margin-right: 0;
}

.center-block.purple {
    padding: 2em 0;
}

.center-block.purple h2 {
    color: #fff;
}

.center-block.purple p {
    color: #969696;
    max-width: 760px;
    margin: 20px auto 0 auto;
}

.center-block.purple img {
    margin-bottom: 20px;
}

.center-block.texture {
    padding: 2em 0;
    min-height: 560px;
}

.center-block.texture h2, .center-block.texture h4 {
    color: #fff;
}

.center-block.texture h4 a {
    color: #fff;
}

.block_4 {
    text-align: center;
    width: 100%;
    min-height: 330px;
    font-size: 12px;
    color: #fff;
}

.block_4 img {
    margin: 0 auto;
}

.block_4 p {
    font-size: 12px;
    color: #fff;
}

.center-block.yellow span {
    font-family: HelveticaNeueCyr-Roman;
    display: block;
    float: left;
    width: 100%;
    min-height: 3em;
    text-align: center;
    font-size: 14px;
    color: #646368;
    text-decoration: underline;
}

.center-block.yellow h4 a {
    color: #160d47;
}

.center-block.yellow div {
    box-sizing: border-box;
    min-height: 220px;
}

.center-block.yellow div.img {
    font-family: HelveticaNeueCyr-Thin;
    width: 100%;
}

.center-block.yellow div.big {
    font-family: HelveticaNeueCyr-Thin;
    display: none;
    width: 0;
    text-align: center;
    font-size: 0;
}

.center-block.yellow div.text {
    font-family: HelveticaNeueCyr-Thin;
    width: 100%;
    text-align: center;
    color: #646368;
    padding: 10px 0;
    min-height: 120px;
}

.big1 {
    color: #404040;
}

.big2 {
    color: #3a543a;
}

.big3 {
    color: #30876e;
}

.big4 {
    color: #52c1b4;
}

.block_2 {
    width: 100%;
    color: #646368;
    min-height: 400px;
}

.block_2 h1 {
    font-family: HelveticaNeueCyr-UltraLight;
    font-size: 48px;
}

.block_2 h4 {
    font-family: HelveticaNeueCyr-Roman;
    color: #646368;
    font-size: 18px;
}

.block_2 p {
    font-family: HelveticaNeueCyr-Roman;
    font-size: 18px;
    margin-top: 10px;
}

h1 {
    text-align: center;
    font-family: Affect_Bold;
    font-size: 20px;
    color: #160d47;
}

h2 {
    text-align: center;
    font-family: Affect_Bold;
    font-size: 18px;
    color: #160d47;
}

h3 {
    text-align: center;
    font-family: Affect_Bold;
    font-size: 16px;
    color: #160d47;
}

h4 {
    text-align: center;
    font-family: Affect;
    font-size: 14px;
    color: #160d47;
    margin: 0;
}

h5 {
    text-align: center;
    font-family: Affect_Light;
    font-size: 12px;
    color: #777;
    margin: 0;
    letter-spacing: 2px;
}

h4 a {
    color: #160d47;
}

h1, h2, h3, h4, h5 {
    text-transform: uppercase;
}

sup {
    font-size: 25%;
    position: relative;
    top: -1.7em;
}

h1 sup {
    position: relative;
    font-weight: normal;
    font-family: Affect_Light;
}

p {
    text-align: center;
    font-size: 14px;
    color: #646368;
    font-family: HelveticaNeueCyr-Roman;
}

form {
    background-color: #E2E2E2;
    border-radius: 20px;
}

.gray_color {
    padding: 40px 0;
    /*outline:1px solid #000;*/
}

.gray_color h1, h2, h3, h4, h5 {
    color: #777;
}

.gray_color h3 {
    font-family: Affect;
    font-size: 24px;
    margin: 0;
}

.gray_color h4 {
    font-size: 16px;
}

.gray_color a {
    color: #777;
}

.comment {
    color: #84818E;
}

#footer {
    width: 100%;
    height: 60px;
    color: #fff;
    font-size: 12px;
    position: relative;
    clear: both;
    background-color: #777;
    border: 1px solid #fff;
}

#footer a {
    color: #fff;
    float: left;
    display: block;
    margin: 20px;
}

img {
    max-width: 100%;
    height: auto;
    width: auto \9; /* ie8 */
}

#media {
    background-color: RGBA(0, 0, 0, 0.3);
    color: #FF0;
    width: 200px;
    height: 20px;
    padding: 5px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    /*	display:none;*/
}

#media:before {
    content: 'Базис';
}

@media screen and (min-width: 360px) {
    #media:before {
        content: 'min-width: 360px';
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }
}

@media screen and (min-width: 420px) {
    #media:before {
        content: 'min-width: 420px';
    }

    .navbar .navbar-brand {
        display: block;
    }
}

@media screen and (min-width: 480px) {
    #media:before {
        content: 'min-width: 480px';
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 16px;
    }

    .block_3 {
        float: left;
        width: 32%;
        margin-right: 2%;
    }

    .center-block.yellow span {
        width: 50%;
    }
}

@media screen and (min-width: 768px) {
    #media:before {
        content: 'min-width: 768px';
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 18px;
    }

    .block_3 {
        min-height: 330px;
    }

    .block_4 {
        float: left;
        width: 25%;
        min-height: 360px;
    }

    .block_2 {
        width: 50%;
        float: left;
        padding: 0 25px;
        min-height: 450px;
    }

    .center-block.yellow div.img {
        width: 50%;
        float: left;
        margin-bottom: 20px;
    }

    .center-block.yellow div.text {
        width: 50%;
        float: left;
        min-height: 220px;
        text-align: left;
        color: #646368;
        padding-top: 50px;
        margin-bottom: 20px;
    }

    .center-block.yellow span {
        width: 33.3%;
    }
}

@media screen and (min-width: 992px) {
    #media:before {
        content: 'min-width: 992';
    }

    .center-block.yellow div.img {
        width: 40%;
    }

    .center-block.yellow div.big {
        display: block;
        font-size: 150px;
        width: 17%;
        float: left;
    }

    .center-block.yellow div.text {
        width: 43%;
    }

    .center-block.yellow span {
        width: 25%;
    }
}

@media screen and (min-width: 1050px) {
    #media:before {
        content: 'min-width: 1050px';
    }

    h1 {
        font-size: 88px;
    }

    .navbar .navbar-brand {
        display: none;
    }

    .center-block.texture {
        padding: 2em 0;
        min-height: 558px;
        /*background-color: #0B0A07;*/
        background: url("/image/texture.png") center 0 no-repeat;
    }

    .block_4 {
        min-height: 420px;
    }
}

@media screen and (min-width: 1200px) {
    #media:before {
        content: 'min-width: 1200px';
    }

    .center-block.yellow div.img {
        width: 35%;
    }

    .center-block.yellow div.big {
        width: 17%;
    }

    .center-block.yellow div.text {
        width: 48%;
        padding-top: 60px;
    }

    .block_4 {
        width: 235px;
        position: relative;
        left: 40px;
    }
}

@media screen and (min-width: 1330px) {
    #media:before {
        content: 'min-width: 1330px';
    }

    .navbar .navbar-brand {
        display: block;
    }
}

@media (max-width: 1050px) {
    .navbar-header {
        float: none;
    }

    .navbar-left, .navbar-right {
        float: none !important;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-collapse {
        /*border-top: 1px solid transparent;*/
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin-top: 7px;
    }

    .navbar-nav > li {
        float: none;
    }

    .navbar-nav > li > a {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .collapse.in {
        display: block !important;
    }
}