* {
    box-sizing: border-box;
    outline: 0
}

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent
}


body {
    margin: 0;
    padding: 0;
    line-height: 1;
    background-color: #f5f5f5;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    min-width: 880px;

    color: #303030;
}

h1 {
    font-size: 24px;
    line-height: 32px;
}

h2 {
    margin-top: 8px;

    font-size: 18px;
    line-height: 24px;

    text-align: left;
}


a {
    font-weight: bold;
    color: #303030;
}

a:hover {
    color: #303030;
}

p {
    font-size: 14px;
    line-height: 20px;
    color: #303030;

    text-align: left;
}


p:nth-child(n+2) {
    margin-top: 20px
}

.width-wrap {
    position: relative;
    width: 830px;
    margin: 0 auto
}

main .width-wrap {
    width: 546px;

    margin-top: 24px;
}

main .main-block {
    margin-top: 20px;

    overflow: hidden;
    text-align: center;
}

.main-block h2 {
    margin-top: 20px;
}

.button {
    display: inline-block;

    text-align: center;

    background: #E34449;
    border-radius: 5px;

    font-weight: bold;
    font-size: 14px;
    line-height: 20px;

    padding: 10px 18px;
    margin: 20px 0;

    color: #fff;
    text-decoration: none;
}

.button:hover {
    color: #fff;
}


article img {
    max-width: 100%;
    margin-top: 14px;
}


header {
    z-index: 2;
    position: relative;
    background: #fff;
    height: 64px;
}

header .logo-container {
    float: left
}

header .logo-container .logo {
    display: block;
    float: left;
    width: 168px;
    height: 38px;
    margin-top: 17px;
    margin-left: 5px
}


header .languages-container {
    float: right
}

.languages-container {
    cursor: pointer;
    padding: 24px;
}

.langBox {
    position: absolute;
    border-radius: 3px;
    width: 50px;
    z-index: 4;
    top: 21px;
}
.langBox a {
    display: none;
    height: 11px;
    padding: 8px 8px 8px 11px;
    line-height: 11px;
    font-size: 11px;
    position: relative;
}
.langBox .def {
    border-top: 0;
}
.langBox:hover a {
    display: block;
}

.hint-outer {
    position: absolute;
    z-index: 10000;
    color: #7d7d7d;
    font-size: 11px;
    display: none;
    right: 60px;
    top: 1px;
}
.langBox a:hover .hint-outer {
    display: block;
}
.left-hint {
    background-color: #FFF;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 7px 10px;
}
.hint-outer .arrow {
    background: url("../images/hintArrow.png") no-repeat -12px 0;
    position: absolute;
    left: 100%;
    top: 50%;
    margin: -6px 0 0 0;
    width: 6px;
    height: 11px;
}


.icon {
    display: inline-block;
    overflow: hidden
}

.flag {
    width: 18px;
    height: 12px;
}

.flag.en {
    background: url(../images/flags.png) -266px 0;
}

.flag.ru {
    background: url(../images/flags.png) -760px 0;
}


footer {
    padding-top: 20px;
}

footer .copyright {
    display: block;
    text-align: center;
    padding: 22px 0;
    margin: 0;
}

footer .copyright strong {
    font-weight: normal;
}


@media (max-width: 830px) {
    body {
        min-width: 0;
    }

    .width-wrap {
        width: 600px;
    }

    main .width-wrap {
        width: 480px;
    }

}

@media (max-width: 670px) {
    .width-wrap {
        width: 100%;
    }

    header .width-wrap {
        padding: 0 5%;
    }

    main .width-wrap {
        padding: 0 5%;
        width: 100%;
    }

}