/*===== _reset ======*/

img {
    border: 0;
}
body, table, form, img {
    margin: 0px;
    padding: 0px;
}

div, a, img, input {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background-color: #3b3a39;
}

h1, h2, h3 {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    margin: 0px;
    line-height: 1.1;
}

div, p, table, form {
    font-weight: 400;
    font-family: "Open Sans", sans-serif;
    
    a {
        color: #a23f2a;
    }
}

ul {
    li {
        margin-bottom: 5px;
    }
}

h1 {
    font-size: 2em;
    border-bottom: #000 solid 2px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

h2 {
    font-size: 1.7em;
    color: #a23f2a;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5em;
}

p {
    a {
        color: #a23f2a;
    }
}

.header {
    background-color: #3b3a39;
    max-width: 1400px;
    margin: auto;
    background: #fff;
}

.xara {
    float: left;
    width: 30%;
    height: auto;
    margin-right: 20px;
    margin-bottom: 30px;
    border: #000 solid 2px;
}

.top {
    height: 145px;
    width: 100%;
    background-image: url("../images/header_back.png");
    background-position: center;
    background-repeat: no-repeat;
}

.logo_in_menu {
    width: 214px;
}

.top_menu {
    background-color: #fff5de;
    height: 43px;
    border-top: #000 solid 2px;
    border-bottom: #000 solid 2px;
    display: flex;
    justify-content: space-between;

    .items {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    a {
        font-family: "Oswald", sans-serif;
        font-optical-sizing: auto;
        color: #000;
        font-size: 24px;
        text-decoration: none;
        font-weight: 400;
    }    
    
    a:last-child {
        margin-right: 100px;
    }
    
    .razd {
        background-image: url("../images/top_menu_razd.png");
        width: 12px;
        height: 59px;
        margin-top: -10px;
    }
    
    .nav_mobile {
        padding: 9px 7px 7px 7px;
        display: none;
        width: 45px;

        .nav_line {
            background: #000;
            height: 3px;
            margin-bottom: 6px;
            width: 30px;
        }
    }
}

.menu_panel_mobile {
    position: absolute;
    display: flex;
    left: 0;
    top: 76px;
    width: 100%;
    background: #fff5de;
    padding: 30px 30px;
    border-top: #000 solid 2px;
    border-bottom: #000 solid 2px;
    justify-content: space-between;
    display: none;
    
    a {
        font-family: "Oswald", sans-serif;
        font-optical-sizing: auto;
        color: #000;
        font-size: 15px;
        font-weight: 400;
        margin-bottom: 5px;
    } 
    
    .mpm_close {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 30px;
        font-size: 26px;
        align-items: center;
        justify-content: center;
    }
}

.logo {
    margin-top: -144px;
    margin-left: 30px;
}

.content {
    background-color: #fff;
    max-width: 1400px;
    margin: auto;
    padding: 30px;
}

.footer {
    max-width: 1400px;
    margin: auto;
    display: flex;
    padding-top: 20px;
    padding-bottom: 20px;
    justify-content: center;
}

.bottom_menu {    
    a {
        color: #fff;
        font-size: 18px;
        font-family: "Oswald", sans-serif;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
        font-weight: 400;
    }
}

.book {
    display: flex;
    align-items: flex-start;
    
    .text_about {
        padding-right: 20px;
        padding-left: 20px;
    }
}

.book_cat {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    
    .book {
        flex-direction: column;
        width: 24%;
        
        img {
            width: 100%;
            height: auto;
        }
    }
    
    div {
        background: #efeeee;
    } 
}

.books_page {
    display: flex;
    justify-content: space-between;
    
    .book {
        width: 49%;
        flex-direction: row;
        
        img {
            width: 50%;
            height: auto;
        }
    }
    
    .controls {
        flex-direction: column;
        
        .btn {
            width: 80%;
            display: flex;
            justify-content: center;
            padding: 5px 0 8px 0;
        }
        
        .read_btn {
            margin-bottom: 5px;
        }
    }
}

.heroes {
    margin-top: 20px;
}

.heroes_cat {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    
    .hero {
        width: 49%;
        margin-bottom: 20px;
        background: #efeeee;
        padding: 20px;
        
        img {
            width: 40%;
        }
        
        .controls {
           margin-top: 15px; 
        }
    }
}

.btn {
    display: flex;
    padding: 5px 30px 8px 30px;
    color: #fff;
    font-family: "Oswald", sans-serif;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 300;
    cursor: pointer;
    justify-content: center;
}

.controls {
    display: flex;
    margin-top: 30px;
    
    .buy_btn {
        background: #8f1b02;
    }
    
    .read_btn {
        background: #474747;
        margin-right: 15px;
    }
    
    .wait_film_btn {
        width: 150px;
        background: #8f1b02;
        width: 180px;
        padding: 5px 0 8px 0;
    }
}

.film {
    .controls {
        margin-top: 0;
    }
    
    h2 {
        color: #474747;
    }
}

.wait_film_msg {
    display: none;
    font-weight: 600;
}

.relative {
    margin-top: 30px;
}

.hero {
    display: flex;
    align-items: flex-start;

    img {
        width: 30%;
    }
    
    .hero_text {
        padding-left: 20px;
    }
}

.detective_riddle {
    padding: 0;
    
    .riddle_body {
        p {
            margin: 0;
            text-indent: 40px;
        } 

        .answer_btn {
            background: #8f1b02;
            width: 200px;
        }
   
        .answer {
            margin-top: 20px;
            span {
                font-weight: 600;
            }
            
            div {
                margin-bottom: 15px;
            }
            
            div:last-child {
                margin-bottom: 0;
            }
            
            ul {
                margin-top: 0;
                
                li {
                    margin-bottom: 7px;
                }
                
                li:last-child {
                    margin-bottom: 0;
                }
            }
        }
        
        .question {
            margin-top: 20px;
            margin-bottom: 20px;
            
            h2 {
                margin-bottom: 10px;
                color: #000;
            }
        }
    }
}

.content_info {
    display: flex;
    align-items: flex-start;
    border-bottom: #000 solid 2px;
    padding-right: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    
    img {
        width: 300px;
        height: auto;
        margin-right: 20px;
        border: #000 solid 2px;
    }
    
    .info {
        div {
            margin-bottom: 10px;
        }
        
        div:last-child {
            margin-bottom: 0;
        }
        
        span {
            font-weight: 600;
        }
    }
}

.entertainment {
    display: flex;
    
    .left_column {
        .intro {
            margin-bottom: 15px;
        }
    }

    .content_body {
       padding-right: 20px; 
    }
    
    .right_column {
        width: 300px;
        flex-shrink: 0;
    }
} 

.booki_g, .booki_560 {
    display: none;
    margin-bottom: 20px;
    
    img {
        width: 100%;
    }
}

.left_column {
    flex-grow: 1;
    padding-bottom: 30px;
}

.catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-right: 20px;
    
    .cat_object {
        width: 32%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        text-decoration: none;
        color: #000;
        background: #efeeee;
        padding: 20px;
        font-weight: 600;
        margin-bottom: 15px;
        
        .cat_object_body {
            display: flex;
            flex-direction: column;
            width: 100%;
        }
        
        .h_560 {
            display: none;
            margin-bottom: 15px;
        }
        
        img {
            width: 100%;
            height: auto;
            margin-right: 15px;
            margin-bottom: 10px;
            border: #000 solid 2px;
        }
        
        h3 {
            margin-bottom: 10px;
            font-size: 1.4em;
        }
        
        .controls {
            margin-top: 15px;
            width: 100%;
           
           .read_btn {
               width: 100%;
               margin-right: 0;
           }
        }
    }
    
    .saglushka {
        background: #fff;
    }
}

.question_block {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    
    .question {
        display: flex;
        align-items: flex-start;
        align-items: center;
        
        .question_num {
            font-family: "Cookie", cursive;
            font-weight: 400;
            font-size: 68px;
            margin: 20px 0 20px 20px;
        }
        
        .question_text {
            font-size: 1.2em;
            margin: 20px 20px 20px 20px;
        }
    }
    
    .answers {
        display: flex;
        flex-direction: column;
        
        .answer {
            display: flex;
            margin-bottom: 10px;
            padding-left: 90px;
            align-items: center;
            cursor: pointer;
            
            .checkbox {
                width: 43px;
                height: 45px;
                overflow: hidden;
                flex-shrink: 0;
                
                img {
                    width: 100%;
                    height: auto;
                    margin-top: -90px;
                }
            }
            
            .answer_text {
                padding-left: 15px;
                color: #777;
            }
        }
        
        .error {
            .checkbox {
                img {
                    margin-top: -45px;
                }
            }
            
            .answer_text {
                color: #a23f2a;
            } 
        }
        
        .selected {
            .checkbox {
                img {
                    margin-top: 0;
                }
            }
            
            .answer_text {
                color: #216d1b;
            } 
        }

        .answer:last-child {
            margin-bottom: 0;
        }
    }
}

.message {
    padding: 30px;
    margin-top: 20px;
    border: #000 solid 2px;
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.is_errors {
    color: #a23f2a;
}

.score {
    font-family: "Oswald", sans-serif;
    font-size: 25px;
    
    .correct {
        color: #216d1b;
    }
    
    .wrong {
        color: #a23f2a;
    }
}

.question_block:last-child {
    margin-bottom: 0;
}

.test_body {
    .controls {
        margin-top: 40px;
        
        .check_btn {
            width: 200px;
            background: #8f1b02;
        }
    }
}

.book_re {
    display: flex;
    flex-direction: column;
    width: 300px;
    text-decoration: none;
    color: #000;
    border: #000 solid 2px;
    position: relative;
    
    .book_re_body {
        display: flex;
        flex-direction: column;
    }
    
    .book_re_img {
        display: flex;
        background: #141517;
        align-items: flex-end;
    }
    
    h3, .book_re_text {
        padding: 15px;
        margin: 0;
    }
    
    h3 {
        padding-bottom: 0;
    }
    
    img {
        width: 100%;
        height: auto;
    }
    
    .more_btn {
        display: flex;
        align-self: center;
        width: 90%;
        justify-content: center;
        height: 40px;
        background: #8f1b02;
        font-family: "Oswald", sans-serif;
        font-weight: 300;
        font-size: 1.4em;
        border: none;
        color: #fff;
        margin-bottom: 15px;
    }
    
    .more_btn_560 {
        display: none;
    }
    
    .tritochka {
        position: absolute;
        color: #999;
        font-size: 17px;
        right: 0;
        top: 0;
        padding-right: 7px;
        padding-left: 7px;
    }

    .erid {
        position: absolute;
        right: 0;
        top: 23px;
        max-width: 300px;
        width: 100%;
        display: none;
        background: #ddd;
        padding: 10px;
        font-size: 0.8em;
    }
}

.obzor_items {
    padding-right: 20px;
    
    .obzor_intro {
        margin-bottom: 20px;
        border-bottom: #000 solid 2px;
        
        p:first-child {
            margin-top: 0;
        }
    }
    
    .obzor_item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 20px;
        /*background: #efeeee;
        padding: 20px;*/
        padding-bottom: 20px;
        border-bottom: #000 solid 2px;
        
        img {
            width: 30%;
            border: #000 solid 2px;
        }
        
        .obzor_item_body {
            padding-left: 20px;
            padding-right: 20px;
        }
        
                
        h2 {
           margin-bottom: 15px; 
        }
        
        .obzor_h2_560{
            display: none;
        }
            
        .obzor_item_info {
            div {
                margin-bottom: 5px;
            }
            span {
                font-weight: 600;
            }
        }
            
        .obzor_item_text {
            margin-top: 15px;
        } 
    }
    
    .obzor_item:last-child {
        margin-bottom: 0;
    }
}

.prenos {
    display: none;
    margin-top: 15px;
}

@media screen and (max-width: 1270px) {
    .controls {
        .btn {
            font-size: 1.2em;
        }
    }
}

@media screen and (max-width: 1160px) {
    .books_page {
        .book {
            img {
                width: 40%;
            }
        }
    }
    
    .book_cat {
        .book {
            width: 32%;
        }
        .book:nth-child(4) {
            display: none;
        }
    }
    
    .catalog {
        .cat_object {
            width: 49%;
            flex-direction: column;

            img {
                width: 100%;
                height: auto;
                margin-right: 15px;
                margin-bottom: 10px;
            }

            h3 {
                margin-bottom: 10px;
                font-size: 1.3em;
            }
        }
    }
}

@media screen and (max-width: 1000px) {
    .entertainment {
        flex-direction: column;
    
        .right_column {
            width: 100%;
            flex-shrink: 1;
        }
    } 
    
    .book_re {
        flex-direction: row;
        width: auto;
        
        .book_re_img {
            width: 20%;
            flex-shrink: 0;
        }

        h3, .book_re_text {
            padding-left: 0;
        }

        .book_re_body {
            padding-left: 15px;
        }
    
        img {
            width: 100%;
            height: auto;
        }

        .more_btn {
            align-self: auto;
            width: 170px;
        }
    }
    
    .obzor_items {
        padding-right: 0;
    }
}

@media screen and (max-width: 930px) {
    .book_re {
        .book_re_img {
            width: 22%;
            flex-shrink: 0;
        }
    }

    .obzor_items {
        .obzor_item {
            display: block;

            img {
                width: 35%;
                float: left;
                margin-right: 15px;
                margin-bottom: 15px;
            }
            
            .obzor_item_body {
                padding-left: 0;
                padding-right: 0;
            }
        }
    }
}

@media screen and (max-width: 920px) {
    .top_menu {
        a {
            font-size: 20px;
            padding-top: 3px;
        }
    }
    
    .books_page {
        .book {
            width: 48%;
            flex-direction: column;
            
            img {
                width: 100%
            }
            
            .text_about {
                padding: 2px;
                margin-top: 20px;
            }
        }
    }
    
    .book_page {
        .book {
            .book_img {
                flex-basis: 40%;
                flex-shrink: 0;
            }
            
            img {
                width: 100%;
            }
        }
    }
    
    .hero {
        img {
            width: 40%;
        }
    }
    
    .heroes_cat {
        flex-direction: column;
        .hero {
            width: 100%;
            margin-bottom: 30px;
            
            img {
                width: 40%;
            }
        }
    }
}

@media screen and (max-width: 870px) {
    .book_re {
        .book_re_img {
            width: 26%;
            flex-shrink: 0;
        }
    }
    
    .prenos {
        display: block;
    }
}

@media screen and (max-width: 840px) {
    .book_re {
        .book_re_img {
            width: 32%;
            flex-shrink: 0;
        }
    }
}

@media screen and (max-width: 740px) {
    .book_re {
        .book_re_img {
            width: 35%;
            flex-shrink: 0;
        }
    }
}


@media screen and (max-width: 730px) {
    .top_menu {
        a {
            font-size: 18px;
            padding-top: 5px;
        }
    }
    
    .book_cat {
        .book {
            width: 48.5%;
        }
        .book:nth-child(3) {
            display: none;
        }
    }
    
    .content_info {
        img {
            width: 40%;
        }

        .info {

        }
    }
    
    .book_re {
        h3 {
            font-size: 1.4em;
            line-height: 1.0;
        }
        
        .book_re_text {
            font-size: 0.9em;
        }
    }
}

@media screen and (max-width: 670px) {
    .top {
        height: 76px;
        background-image: url("../images/header_back_1000.png");
    }
    
    .top_menu {
        justify-content: space-between;
        
        .items {
            justify-content: space-evenly;
        }
            
        a {
            font-size: 15px;
            padding-top: 7px;
        }
        
        a:nth-child(2) {
            margin-left: 0;
        }
        
        a:last-child {
            margin-right: 0;
        }

        .raskazy, .hidden_item, .right_otstup {
            display: none;
        }
        
        .nav_mobile {
            display: block;
        }
    }
    
 
    .logo {
        width: 70px;
        height: auto;
        margin-top: -116px;
        margin-left: 20px;
    }
    
    .logo_in_menu {
        display: none;
    }
    
    .books_page {
        flex-direction: column;
        .book {
            width: 100%;
            flex-direction: row;
            margin-bottom: 30px;

            img {
                width: 40%
            }
            
            .text_about {
                padding-right: 20px;
                padding-left: 20px;
                margin-top: 0;
            }
        }
    }
    
    .catalog {
        padding-right: 0;
        
        .cat_object {
            width: 100%;
            flex-direction: row;
            display: block;
            
            .cat_object_body {
                display: block;
            }
            
            .h_560 {
                display: block;
            }

            img {
                width: 35%;
                float: left;
            }
            
            .cat_text {
                h3 {
                    display: none;
                }
            }
            
            .controls {
                .read_btn {
                    width: 100%;
                    margin-right: 0;
                }
            }
        }
        
        .cat_object:last-child {
            margin-bottom: 0;
        }
    }
}

@media screen and (max-width: 635px) {   
    .book_re {
        flex-wrap: wrap;
        
        .book_re_img {
            width: 40%;
            flex-shrink: 0;
        }

        .book_re_body {
            width: 60%;
        }
        
        .book_re_text {
            font-size: 1em;
            .span635 {
                display: none;
            }
        }
    
        img {
            width: 100%;
            height: auto;
        }

        .more_btn {
            display: none;
        }
        
        .more_btn_560 {
            display: block;
            width: 100%;
            margin-bottom: 0;
            text-align: center;
        }
    }
    
    .obzor_items {
        .obzor_item {
            img {
                width: 40%;
            }
            
            h2 {
                display: none;
            }
            
            .obzor_h2_560{
                display: block;
            }
        }
    }
}
    
@media screen and (max-width: 560px) {
    .content {
        padding: 20px;
    }
    
    .books_page {
        .book {
            flex-direction: column;

            img {
                width: 100%
            }
            
            .text_about {
                padding: 0;
                margin-top: 20px;
            }
            
            .controls {
                flex-direction: row;
                justify-content: space-between;
                
                .btn {
                    width: 49.5%;
                    font-size: 1.0em;
                }
                
                .read_btn {
                    margin-bottom: 0;
                    margin-right: 0;
                }
            }
        }
    }
    
    .bottom_menu {    
        width: 100%;
        display: flex;
        justify-content: space-evenly;
        
        a {
            padding: 0;
            font-weight: 300;
            font-size: 16px;
        }
    }
    
    .book_page {
        .book {
            display: block;
            
            .briefly {
               display: none; 
            }
            
            img {
                float: left;
                width: 36%;
                margin-right: 10px;
                margin-bottom: 10px;
            }
            
            .text_about {
                margin-top: 20px;
                padding-left: 0;
                padding-right: 0;
            }
            
            .controls {
                flex-direction: row;
                justify-content: space-between;
                
                .btn {
                    display: flex;
                    justify-content: center;
                    width: 49.5%;
                    font-size: 1.0em;
                    padding-left: 0;
                    padding-right: 0;
                }
                
                .read_btn {
                    margin-bottom: 0;
                    margin-right: 0;
                }
            }
        }
    }
    
    .hero {
        flex-direction: column;
        
        img {
            width: 100%;
        }
        
        .hero_text {
            margin-top: 15px;
            padding-left: 0;
        }
    }
    
    .heroes_cat {
        .hero {
            img {
                width: 100%;
            }
        }
    }
    
    .content_info {
        display: block;
        padding-right: 0;
        
        img {
            float: left;
            margin-bottom: 15px;
        }
    }
    
    .entertainment {
        .content_body {
            padding-right: 0;
        }
    }
    
    .booki_g {
        display: none;
    }
    
    .booki_560 {
        display: block;
    }
    
    .test_body {
        .controls {
            .check_btn {
                width: 100%;
            }
        }
    }
    
    .question_block {
        .question {
            border-bottom: #000 solid 2px;
            margin-bottom: 15px;
            align-items: flex-start;
            
            .question_num {
                margin: 16px 0 20px 0;
                font-size: 48px;
            }
            
            .question_text {
                margin: 20px 0 20px 15px;
                font-size: 1.1em;
            }
            
        }

        .answers {
            .answer {
                padding-left: 10px;
            }
        }

        .answers {
            .answer {
                .checkbox {
                    width: 33px;
                    height: 35px;
                    
                    img {
                        margin-top: -70px;
                    }
                }
                
                .answer_text {
                    padding-left: 10px;
                }
            }
            
            .selected {
                .checkbox {
                    img {
                        margin-top: 0;
                    }
                }
            }
            
            .error {
                .checkbox {
                    img {
                        margin-top: -35px;
                    }
                }
            }
        }
    }
    
    .score {
        font-size: 22px;
    }
    
    .left_column {
        padding-bottom: 20px;
    }
    
    .controls {
        .wait_film_btn {
            width: 100%;
        }
    }
}

@media screen and (max-width: 530px) {
    .book_re {
        h3 {
            padding-top: 10px;
            font-size: 1.1em;
            
            span {
                display: none;
            }
        }
        
        .book_re_text {
            padding-top: 10px;
            font-size: 0.85em;
            
            .span530{
                display: none;
            }
        }
    }
}