input:focus {
    outline: none;
}

html, body{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    font-size: 17px;
    color: #fff;
    font-family: sans-serif;
}

body{
    background: linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.3) 180px,#111 360px),url(/rally/assets/img/header-bg.jpg),#393a3e;
}

.inner{
    padding: 0 30px;
    width: calc(100% - 60px);
    height: 100%;
    margin: 0 auto;
}

.header{
    width: 100%;
    height: 50px;
    background: #000;
    position: fixed;
    top: 0;
    z-index:10;
}

.header .inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .left{
    height: 100%;
}

.header .left .logo{
    height: 100%;
    padding: 0 20px;
    background: #cc0033;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: 700;
    color:#fff;
    text-decoration: none;
}

.header .right{
    display: flex;
    align-items: center;
}

.header .right .button{
    background:#262626;
    color:#fff;
    text-decoration:none;
    padding:5px 15px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9em;
}

.header .right .button:hover{
    background: #343434;
}

.header .right .button.login{
    margin-right:5px;
}

.header .right .button .desctop{
    display: inline-block;
}

.header .right .button .mobile{
    display: none;
}

.header .right .button .mobile svg{
    width: 20px;
    height: 20px;
    fill:#fff;
}

.main{
    width:100%;
    height: 100%;
    overflow-y: scroll;
}

.main .inner{
    margin-top:130px;
}

.main .inner .h1_index{
    margin: 0;
    margin-left: 140px;
    font-size: 50px;
}

.main .inner .h1_description{
    font-size: 30px;
    margin-left: 140px;
    margin-top: 20px;
}

.main .inner .search_block{
    margin-top:40px;
    display: flex;
    margin-left: 140px;
    justify-content: space-between;    
    width:calc(100% - 300px);
}

.main .inner .search_block .search_input{
    height: 50px;
    width: 100%;
    margin-right: 10px;
    border: 0;
    border-radius: 25px;
    padding:0 30px 0 55px;
    font-size: 1.1em;
    background-image: url("data:image/svg+xml,<svg version='1.0' xmlns='http://www.w3.org/2000/svg' width='957.000000pt' height='957.000000pt' fill='%23999999' viewBox='0 0 957.000000 957.000000'><g transform='translate(0.000000,957.000000) scale(0.100000,-0.100000)' stroke='none'><path d='M3450 9549 c-1403 -112 -2612 -984 -3158 -2279 -117 -277 -212 -629 -258 -960 -21 -154 -30 -616 -15 -791 76 -881 450 -1684 1076 -2315 599 -603 1370 -973 2240 -1074 150 -18 498 -23 655 -11 691 55 1332 281 1869 659 52 37 101 71 109 76 11 6 357 -334 1391 -1367 1494 -1493 1408 -1413 1558 -1452 279 -73 572 106 639 391 31 132 1 298 -74 407 -17 23 -644 657 -1396 1409 l-1365 1366 103 154 c354 532 556 1101 616 1743 13 141 13 517 0 665 -92 1022 -608 1967 -1422 2603 -544 425 -1186 684 -1903 767 -126 15 -527 20 -665 9z m511 -660 c270 -21 563 -84 817 -175 276 -98 633 -299 872 -490 120 -96 382 -360 478 -481 369 -468 592 -1019 652 -1612 13 -133 13 -474 -1 -599 -68 -629 -308 -1200 -702 -1667 -81 -97 -256 -272 -355 -358 -576 -497 -1325 -759 -2092 -733 -695 23 -1343 271 -1870 714 -126 106 -327 312 -429 441 -372 468 -593 1021 -652 1625 -17 177 -6 566 20 738 83 533 298 1026 635 1453 94 119 357 384 476 479 606 484 1388 726 2151 665z'/></g></svg>");
    background-position: 20px 14px;
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-color: #fff;
}

.main .inner .search_block .search_input:focus{
    background-image: url("data:image/svg+xml,<svg version='1.0' xmlns='http://www.w3.org/2000/svg' width='957.000000pt' height='957.000000pt' fill='%23000000' viewBox='0 0 957.000000 957.000000'><g transform='translate(0.000000,957.000000) scale(0.100000,-0.100000)' stroke='none'><path d='M3450 9549 c-1403 -112 -2612 -984 -3158 -2279 -117 -277 -212 -629 -258 -960 -21 -154 -30 -616 -15 -791 76 -881 450 -1684 1076 -2315 599 -603 1370 -973 2240 -1074 150 -18 498 -23 655 -11 691 55 1332 281 1869 659 52 37 101 71 109 76 11 6 357 -334 1391 -1367 1494 -1493 1408 -1413 1558 -1452 279 -73 572 106 639 391 31 132 1 298 -74 407 -17 23 -644 657 -1396 1409 l-1365 1366 103 154 c354 532 556 1101 616 1743 13 141 13 517 0 665 -92 1022 -608 1967 -1422 2603 -544 425 -1186 684 -1903 767 -126 15 -527 20 -665 9z m511 -660 c270 -21 563 -84 817 -175 276 -98 633 -299 872 -490 120 -96 382 -360 478 -481 369 -468 592 -1019 652 -1612 13 -133 13 -474 -1 -599 -68 -629 -308 -1200 -702 -1667 -81 -97 -256 -272 -355 -358 -576 -497 -1325 -759 -2092 -733 -695 23 -1343 271 -1870 714 -126 106 -327 312 -429 441 -372 468 -593 1021 -652 1625 -17 177 -6 566 20 738 83 533 298 1026 635 1453 94 119 357 384 476 479 606 484 1388 726 2151 665z'/></g></svg>");
}

.main .inner .search_block .search_btn{
    height: 50px;
    background: #4477cc;
    color: #fff;
    font-weight: bold;
    padding: 0 30px;
    border: 0;
    border-radius: 25px;
    font-size: 1.1em;
    white-space: nowrap;
    cursor: pointer;
}

.main .inner .search_block .search_btn:hover{
    background: #3d6bb7;
}

.main .inner .articles{
    margin-top: 80px;
    background: #fff;
    border-radius: 5px;
    color: #000;
    padding: 20px;
}

.main .inner .articles .marka{
    color: #000;
    border-bottom: solid 1px #999999;
}

.main .inner .articles .marka .marka_name{
    height:50px;
    line-height:50px;
    cursor:pointer;
    position: relative;
}

.main .inner .articles .marka .marka_name:after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    top: 50%;
    right: 0;
    background: url("data:image/svg+xml,<svg version='1.0' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 923 923'><g transform='translate(0,923) scale(0.1,-0.1)' fill='%23000000' stroke='none'><path d='M2478 9224 c-4 -3 -40 -17 -79 -31 -171 -57 -281 -174 -343 -363 -18 -55 -21 -79 -15 -150 3 -47 4 -89 1 -94 -2 -4 0 -11 5 -15 5 -3 14 -22 20 -41 20 -63 38 -105 49 -115 5 -5 22 -26 36 -45 14 -19 804 -813 1755 -1765 952 -952 1738 -1745 1747 -1762 9 -18 13 -33 10 -33 -4 0 0 -8 8 -17 23 -26 37 -79 44 -159 7 -90 -12 -168 -60 -240 -20 -30 -33 -54 -29 -54 4 0 -780 -789 -1743 -1752 -1899 -1901 -1794 -1790 -1828 -1936 -7 -33 -16 -64 -19 -69 -9 -15 14 -197 29 -231 9 -19 23 -51 33 -71 25 -57 99 -143 156 -182 28 -18 52 -36 55 -39 3 -3 41 -18 85 -33 68 -23 96 -27 187 -27 60 0 110 4 113 10 3 6 13 10 22 10 8 0 45 14 82 31 62 30 178 143 2184 2148 1165 1164 2131 2136 2147 2161 16 25 36 66 45 90 8 25 18 52 22 60 3 8 5 61 4 118 -3 90 -7 110 -32 162 -16 33 -29 63 -29 66 0 3 -19 26 -42 51 -111 118 -4187 4189 -4218 4212 -19 14 -37 28 -40 31 -8 9 -111 50 -126 50 -8 0 -14 4 -14 9 0 5 -39 9 -87 10 -48 1 -96 4 -108 7 -11 3 -24 2 -27 -2z'/></g></svg>");
    background-repeat: no-repeat;
    background-size: 25px 25px;
    transform: translate(0, -50%);
    transition: 0.3s;
}

.main .inner .articles .marka.opened .marka_name:after {
    transform: rotate(90deg) translate(-50%, 0);
}

.main .inner .articles .marka .models{
    display: none;
    margin-left:20px;
}

.main .inner .articles .marka .models .model{
    border-bottom: solid 1px #999999;
}

.main .inner .articles .marka .models .model:last-child{
    border-bottom:0;
}

.main .inner .articles .marka .models .model:first-child{
    border-top: solid 1px #999999;
}

.main .inner .articles .marka .models .model .model_name{
    height:50px;
    line-height:50px;
    cursor:pointer;
    position: relative;
}

.main .inner .articles .marka .models .model .articles_list {
    margin-left: 20px;
    display: none;
    padding: 10px 0;
}

.main .inner .articles .marka .models .model .articles_list .article_one {
    border-bottom: solid 1px #999999;
}

.main .inner .articles .marka .models .model .articles_list .article_one:last-child{
    border-bottom:0;
}

.main .inner .articles .marka .models .model .articles_list .article_one:first-child{
    border-top: solid 1px #999999;
}

.main .inner .articles .marka .models .model .articles_list a{
    text-decoration: none;
}

.main .inner .articles .marka .models .model .articles_list .add_article_link:hover{
    text-decoration: underline;
}

.main .inner .articles .marka .models .model .articles_list .article{
    display: block;
    margin:20px 0;
    clear: both;
    min-height: 100px;
    color: #000;
    cursor:pointer;
}

.main .inner .articles .marka .models .model .articles_list .article img{
    height:100px;
    float:left;
    margin: 0 10px 5px 0;
    border: solid 1px #ccc;
    border-radius: 3px;
}

.main .inner .articles .marka .models .model .articles_list .article:first-child{
    margin-top: 0;
}

.main .inner .articles .marka .models .model .articles_list .article:last-child{
    margin-bottom: 0;
}

.main .inner .add_article .row{
    margin-bottom: 20px;
}

.main .inner .add_article .row label{
    display: block;
    margin-bottom: 10px;
}

.main .inner .add_article .row input[type="text"]{
    width: calc(100% - 20px);
    height:40px;
    font-size: 1.3em;
    padding:0 10px;
    border-radius: 5px;
    border: 0;
}

.main .inner .add_article .row select{
    width: 100%;
    height:40px;
    font-size: 1.3em;
    padding:0 10px;
    border-radius: 5px;
    border: 0;
    cursor:pointer;
}

.main .inner .add_article .row.preview .jqte .jqte_editor{
    height: 200px;
}

.main .inner .add_article .row.text .jqte .jqte_editor{
    height: 600px;
}

.jqte{
    margin:0;
}

.main .inner .add_article .row.hidden{
    display: none;
}

.main .inner .add_article .row select option.hidden{
    display: none;
}

.main .inner .add_article .row .save{
    height: 50px;
    background: #4477cc;
    color: #fff;
    font-weight: bold;
    padding: 0 30px;
    border: 0;
    border-radius: 25px;
    font-size: 1.1em;
    white-space: nowrap;
    cursor: pointer;
}

.main .inner .add_article .row .save:hover{
    background: #3d6bb7;
}

.notification{
    padding: 5px 20px;
    background: #ccc;
    position: fixed;
    top:10px;
    left:50%;
    z-index:100;
    transform: translate(-50%, 0);
    color:#000;
    border-radius:5px;
    font-size: 0.9em;
    max-width: 300px;
    display: none;
}

.article_page a img{
    max-width: 100%;
}




@media screen and (max-width: 1200px) {
    .main .inner .search_block {
        width: calc(100% - 160px);
    }
}

@media screen and (max-width: 1000px) {
    .main .inner .h1_index{
        margin-left: 0;
    }

    .main .inner .h1_description{
        margin-left: 0;
    }

    .main .inner .search_block {
        margin-left:0;
        width: 100%;
    }

    .main .inner .articles{
        margin-top:40px;
    }
}

@media screen and (max-width: 850px) {
    .main .inner .h1_index{
        font-size: 40px;
    }

    .main .inner .h1_description{
        font-size: 24px;
    }
}

@media screen and (max-width: 700px) {
    .main .inner .h1_index{
        font-size: 30px;
    }

    .main .inner .h1_description{
        font-size: 18px;
        margin-top: 15px;
    }

    .main .inner .search_block{
        margin-top:30px;
    }

    .main .inner .search_block .search_input{
        margin-right: 0;
    }

    .main .inner .search_block .search_btn{
        display: none;
    }

    .main .inner .articles{
        margin-top:20px;
    }
}

@media screen and (max-width: 520px) {
    .main .inner .h1_index{
        font-size: 24px;
    }

    .main .inner .h1_description{
        margin-top: 10px;
    }
}

@media screen and (max-width: 500px) {
    .header .right .button,
    .header .right .button:hover{
        background: none;
    }

    .header .right .button .desctop{
        display: none;
    }
    
    .header .right .button .mobile{
        display: flex;
        align-items: center;
    }
}
