/* --- Общие элементы --- */
body{
    background: #f7f7f7;
    margin-top: 50px;
}
    .center{
        max-width: 1300px;
        margin: 0 auto;
    }
    .main-block{
        position: relative;
        padding: 60px;
        box-sizing: border-box;
    }
    .main-block:after{
        background: url("/images/border-bottom.png") no-repeat center;
        bottom: 0;
    }
        .main-block p, .contacts p{
            margin-bottom: 20px;
        }
        .main-block h1, .contacts h1{
            font-size: 1.5em;
            font-weight: 700;
        }
        .main-block h2, .contacts h2{
            font-size: 1.4em;
            font-weight: 400;
        }
        .main-block h3, .contacts h3{
            font-size: 1.3em;
            font-weight: 400;
        }
    .flex-row-center{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: stretch;
    }
        .flex-block-col, .flex-block-row{
            padding: 20px;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .flex-block-row{
            flex-direction: row;
        }
        .flex-block-2{
            width: 50%;
        }
        .flex-block-3{
            width: 33%;
        }
        .flex-block-center{
            justify-content: center;
        }
        .flex-block-left{
            justify-content: flex-start;
        }
            .flex-text-image img{
                margin-right: 20px;
            }
            .flex-text-image h1, .flex-text-image h2, .flex-text-image h3{
                margin-bottom: 0 !important;
            }

.text-center{
    text-align: center;
}
.text-right{
    text-align: right;
}
.block-text-center p, .block-text-center h1, .block-text-center h2{
    text-align: center;
}
.block-text-right p, .block-text-right h1, .block-text-right h2{
    text-align: right;
}

.visible-block{
    opacity: 1;
}
.hidden-block{
    opacity: 0;
}

/* === Кнопка прокрутки вверх === */
#scrollup{
    position: fixed;
    opacity: 0.9;
    padding: 15px;
    background: #aaa;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    right: 10px;
    bottom: 10px;
    display: none;
    z-index: 10000;
    cursor: pointer;
}
#scrollup>img{
    opacity: 0.7;
    margin-top: 2px;
    width: 100%;
}
/* === Кнопка прокрутки вверх === */

/* === Сообщение о куках и политике безопасности === */
.security{
    display: none;
    position: fixed;
    background: #ed1c24;
    padding: 10px;
    right: 0; bottom: 0; left: 0;
    z-index: 1020;
}
.security h1, .security p{
    color: #fff;
    text-align: center;
}
.security h1{
    font-size: 1.5em;
    margin: 10px 0;
}
.security-main-block{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.security-block{
    padding: 0 20px;
}
.security-block button{
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #ed1c24;
    padding: 10px 30px;
}

.privacy-policy{
    margin-top: 40px;
}
.privacy-policy input[type="checkbox"]{
    width: auto;
    display: none;
}
.privacy-policy label, .privacy-policy input[type="checkbox"]{
    cursor: pointer;
}
.privacy-policy label {
    position: relative;
    padding: 5px 5px 5px 40px;
    border: 1px solid transparent;
}
.privacy-policy label:before{
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 20px;
    position: absolute;
    left: 12px;
    top: 50%;
    margin-top: -8px;
    background: #e2e2e2;
    box-shadow: inset 0 2px 3px 0 rgba(0, 0, 0, .3), 0 1px 0 0 rgba(255, 255, 255, .8);
}
.privacy-policy input[type="checkbox"]:checked + label:before{
    content: "\2713";
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
    font-size: 1.5em;
    color: #000;
    text-align: center;
    line-height: 15px;
}

.privacy-policy p, .privacy-policy li, .privacy-policy a, .privacy-policy label{
    font-size: .8em;
}
.accept-privacy-policy-checkbox{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
/* === Сообщение о куках === */

/* = Загрузчик = */
#ajax-loader{
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0;
    left: 0; right: 0;
    background: rgba(0,0,0,0.8);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}
#ajax-loader h2{
    color: #fff;
    font-size: 1.2em;
}
#loader {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* = Загрузчик = */
/* --- Общие элементы --- */

/* --- Модальные окна --- */
/* = Общие элементы = */
.modal-main{
    display: none;
    border-radius: 10px;
    background: #f7f7f7;
}
    .modal-title{
        padding: 5px 20px;
    }
        .modal-title h1{
            font-size: 1.5em;
            font-weight: 600;
            text-align: center;
        }
    .modal-content{
        padding: 20px;
    }
        .modal-content label, .modal-content input, .modal-content textarea{
            display: block;
        }
        .modal-content label{
            margin-bottom: 5px;
        }
        .modal-content input, .modal-content textarea{
            margin-bottom: 10px;
            padding: 10px;
            box-sizing: border-box;
            border-radius: 10px;
            border: 1px solid #cacaca;
            width: 100%;
            background: #f2f2f2;
        }
        .modal-content textarea{
            resize: none;
        }
        .modal-content button{
            width: 100%;
            box-sizing: border-box;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid #cacaca;
            cursor: pointer;
        }
        .warning{
            color: red;
            font-size: 1.5em;
        }
            .mandatory-label:after{
                content: "*";
                font-size: 1.5em;
                color: red;
                margin-left: 10px;
            }

/* Маленький фикс всплывающего окна */
.custombox-lock{
    overflow: auto !important;
}
/* Маленький фикс всплывающего окна */
/* = Общие элементы = */

#mail-block{
    max-width: 600px;
}
/* --- Модальные окна --- */

/* === Шапка === */
header{

}
/* --- Главное Меню --- */
    .top-menu{
        position: fixed;
        top: 0; left: 50%;
        margin-left: -534px;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;

        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        height: 50px;
        background: #ffffff; /* Old browsers */
        background: -moz-linear-gradient(top, #ffffff 0%, #c9c9c9 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #ffffff 0%,#c9c9c9 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #ffffff 0%,#c9c9c9 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#c9c9c9',GradientType=0 ); /* IE6-9 */
        border-left: 1px solid #dcdcdc;
        border-right: 1px solid #dcdcdc;
        border-bottom: 2px solid #a6a6a6;
        z-index: 800;
    }
        .top-menu-item {
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;

            align-items: center;
            height: 100%;
            padding: 0 25px;
            border-right: 1px solid #acacac;
            text-decoration: none;
            color: #000 !important;
            font-size: 1.3em;
            font-weight: 600;
            position: relative;
        }
            .top-menu-item:after{
                display: none;
                position: absolute;
                content: "";
                bottom: -14px;
                left: 50%;
                margin-left: -24.5px;
                width: 49px;
                height: 21px;
                background: url(/images/menu-select.png) no-repeat center;
            }
            .top-menu-item:hover:after{
                display: block;
            }
        .top-menu-item:last-child{
            border-right: none;
        }
/* --- Главное Меню --- */
/* --- Мобильное Меню --- */
.hamburger, .cross{
    display: none;
}
.hamburger{
    background:none;
    position:absolute;
    top:0;
    right: 10px;
    line-height:45px;
    padding:5px 15px 0 15px;
    color:#999;
    border:0;
    font-size:1.4em;
    font-weight:bold;
    cursor:pointer;
    outline:none;
    z-index:1000;
}
.cross {
    display: none;
    background: none;
    position: absolute;
    top: 15px;
    right: 0;
    padding: 7px 15px 0 15px;
    color: #999;
    border: 0;
    font-size: 5em;
    line-height: 65px;
    cursor: pointer;
    outline: none;
    z-index: 1000;
}
#mobile-menu-fade{
    display: none;
    position: fixed;
    cursor: pointer;
    top: 52px; bottom: 0;
    left: 0; right: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
}
#mobile-menu{
    position: fixed;
    top: 52px;
    bottom: 0;
    right: -500px;
    max-width: 300px;
    background: #fff;
    padding: 20px;
    box-shadow: -10px 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
}
    .menu-open{
        right: 0 !important;
    }
    #mobile-menu>a{
        display: block;
        margin-bottom: 20px;
        font-size: 1.5em;
        text-decoration: none;
    }
/* --- Мобильное Меню --- */
    .about{
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 130px;
        padding: 10px;
    }
        .about-logo, .about-contacts{
            width: 50%;
        }
        .about-logo{
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;

            flex-direction: column;
            justify-content: flex-end;
            align-items: flex-end;
        }
            .about-logo>p{
                max-width: 250px;
                text-align: center;
                background: #a5a5a5;
                color: #fff;
                padding: 7px;
                border-radius: 5px;
                margin-bottom: 10px;
            }
        .about-contacts{
        }
            .about-phone, .about-links{
                display: -ms-flexbox;
                display: -webkit-flex;
                display: flex;

                flex-direction: row;
                justify-content: flex-end;
            }
                .about-phone>a{
                    text-decoration: none;
                    color: #000;
                    font-size: 3em;
                }
                    .about-phone>a>span{
                        font-size: .8em;
                    }
                .about-link-item{
                    display: -ms-flexbox;
                    display: -webkit-flex;
                    display: flex;

                    justify-content: center;
                    align-items: center;
                    margin-right: 50px;
                }
                    .about-link-item>a{
                        font-size: 1.5em;
                    }
                    .about-link-item>img{
                        margin-right: 10px;
                    }
                .about-link-item:last-child{
                    margin-right: 0;
                }
/* === Шапка === */

/* === Банер === */
.baner{
    height: 400px;
    background: url("/images/baner-fon.jpg") no-repeat center;
    background-size: cover;
    border-radius: 20px;
    position: relative;
}
    .baner:before, .baner:after, .main-block:after{
        position: absolute;
        content: "";
        left: 0; right: 0;
        height: 18px;
    }
    .baner:before{
        top: -20px;
        background: url("/images/border-top.png") no-repeat center;
    }
    .baner:after{
        bottom: -20px;
        background: url("/images/border-bottom.png") no-repeat center;
    }
    .baner-button{
        position: absolute;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;

        flex-direction: column;
        justify-content: center;
        align-items: center;
        left: 60px;
        top: 50%;
        margin-top: -142.5px;
        width: 276px;
        height: 280px;
        background: url("/images/baner-button.png") no-repeat center;
        z-index: 10;
    }
        .baner-button p, .baner-button h1{
            color: #fff;
            text-align: center;
            font-weight: 600;
            line-height: 1;
        }
        .baner-button p{
            font-size: 1.5em;
        }
        .baner-button h1{
            font-size: 3.5em;
            margin: 20px 0;
        }
        .baner-button h1>span{
            font-size: .5em;
        }
    .baner-form{
        position: absolute;
        top: 50%;
        margin-top: -80px;
        right: 15%;
        z-index: 10;
        padding: 20px;
        background: rgba(0,0,0,0.7);
        border-radius: 20px;
    }
        .baner-form form{
        }
            .baner-form h1, .baner-form h2, .baner-form h3{
                color: #fff;
                font-weight: 600;
                text-align: center;
                padding: 0 10px 10px 10px;
            }
            .baner-form h1{
                font-size: 1.5em;
            }
            .baner-form h2{
                font-size: 1.2em;
            }
            .baner-form h3{
                font-size: 1em;
            }
            .baner-form input, .baner-form button{
                border: none;
                padding: 10px;
                border-radius: 20px;
            }
            .baner-form input{
                margin-right: 20px;
            }
            .baner-form button{
                cursor: pointer;
                background: #69c515;
                font-weight: 600;
                color: #fff;
            }
            .form-order{
                display: flex;
                flex-direction: row;
                justify-content: center;
                margin-top: 10px;
            }
            #baner-form-ajax-result{
                display: none;
                flex-direction: column;
                justify-content: center;
                position: absolute;
                top: 0;
                bottom: 0;
                left: 10px;
                right: 10px;
            }
                #baner-form-ajax-result p{
                    color: #fff;
                    font-weight: 600;
                    text-align: center;
                }

    #baner-truck{
        position: absolute;
        z-index: 5;
        right: 20px;
        bottom: -60px;
    }
/* === Банер === */

/* === Пилоны === */
.pilon-talony-karty, .pilon-toplivo-nalivom{
    width: 276px;
    height: 835px;
    position: relative;
    margin-bottom: 20px;
}
.pilon-text p{
    max-width: 550px;
}
.pilon-talony-karty{
    background: url("/images/pilon-talony-karty.png") no-repeat center;
}
.pilon-toplivo-nalivom{
    background: url("/images/pilon-toplivo-nalivom.png") no-repeat center;
}
.pilon-title, .pilon-price-block{
    position: absolute;
    width: 100%;
    text-align: center;
}
.pilon-title{
    top: 230px;
}
.pilon-price-block{
    top: 290px;
}
    .pilon-price{
        margin-bottom: 45px;
    }
        .pilon-price p, .pilon-price h1{
            padding-left: 20px;
            font-family: 'RalewayExtraBold', sans-serif;
        }
        .pilon-price h1{
            font-size: 3.5em !important;
        }
            .pilon-price h1>span{
                font-size: .4em;
                font-weight: 700;
            }
        .pilon-price p{
            font-size: 2em;
        }
        .pilon-price span{
            font-family: 'RalewayLight', sans-serif;
        }
/* === Пилоны === */

/* === Блок АЗС и Коттеджи === */
#azs h1{
    max-width: 310px;
}
#azs p{
    max-width: 550px;
}
.azs-image, .cottage-image{
    height: 350px;
    border-radius: 20px;
}
.azs-image{
    background: url("/images/azs-fon.jpg") no-repeat center;
    background-size: cover;
}
.cottage-image{
    background: url("/images/cottage-fon.jpg") no-repeat center;
    background-size: cover;
}
/* === Блок АЗС и Коттеджи === */

/* === Блок Бензовозы === */
.trucks{
    margin-bottom: 20px;
}
    .trucks img{
        margin-right: 20px;
    }
/* === Блок Бензовозы === */

/* === Блок Отзывы === */
.otzyv-image{
    width: 284px;
    height: 284px;
    background: url("/images/otzyv1.png") no-repeat center;
}
.otzyv-text p{
    font-size: 1.5em;
    color: #717171;
    max-width: 590px;
}
/* === Блок Отзывы === */

/* === Блок Контакты === */
.contacts{
    margin-bottom: 10px;
}
/* === Блок Контакты === */

/* === Подвал === */
footer{
    padding: 20px 40px;
    box-sizing: border-box;
    background: #4d4d4d; /* Old browsers */
    background: -moz-linear-gradient(top, #4d4d4d 0%, #606062 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #4d4d4d 0%,#606062 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #4d4d4d 0%,#606062 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d4d4d', endColorstr='#606062',GradientType=0 ); /* IE6-9 */
}
    footer p{
        font-size: 1.2em;
        color: #fff;
    }
    footer a{
        margin-right: 20px;
    }
    .counters{
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;

        flex-direction: row;
    }
/* === Подвал === */

/* ----- МЕДИА запросы ----- */
@media screen and (max-width: 1250px){
    .trucks img{
        width: 200px;
        height: 200px;
    }
}

@media screen and (max-width: 1200px){
    body{
        margin-top: 52px;
    }
    .top-menu{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin-left: 0;
    }
    .top-menu-item{
        display: none;
    }
    .hamburger{
        display: block;
    }
}

@media screen and (max-width: 1050px){
    .about{
        flex-direction: column;
        margin-bottom: 20px;
    }
    .about-logo, .about-contacts {
        width: 100%;
    }
    .about-logo{
        align-items: center;
    }
    .about-links, .about-phone{
        justify-content: center;
    }
}

@media screen and (max-width: 1000px){
    .baner{
        border-radius: 0;
    }
    .baner-button{
        top: unset;
        margin-top: 0;
        bottom: 0;
        left: 10px;
        width: 250px;
        height: 250px;
        background-size: contain;
    }
    .baner-form{
        top: 10px;
        left: 10px;
        right: 10px;
        margin-top: 0;
    }
}

@media screen and (max-width: 900px){
    .main-block h1{
        font-size: 1.3em;
    }
    .main-block h2{
        font-size: 1.2em;
    }
    .main-block h3{
        font-size: 1.1em;
    }
    .baner{
        /*height: 280px;*/
    }
    #baner-truck{
        max-width: 600px;
    }
    .baner-button{
        width: 210px;
        height: 210px;
        left: 20px;
        margin-top: -100px;
        background-size: cover;
    }
    .baner-button h1 {
        font-size: 3em;
        margin: 10px 0;
    }
    .baner-button p{
        font-size: 1.2em;
    }
}

@media screen and (max-width: 700px){
    .baner{
        margin-bottom: 40px;
    }
    .main-block, .contacts{
        padding: 20px;
    }
    .about-logo>img{
        width: 100%;
    }
    .baner-form h1{
        font-size: 1.2em;
    }
    .baner-form h2{
        font-size: 1em;
    }
    .baner-button{
        bottom: -40px;
    }
    #baner-truck{
        width: 100%;
    }
    .flex-row-center{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .flex-block-2, .flex-block-3{
        width: 100%;
        box-sizing: border-box;
    }
    .flex-block-col{
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }
    .trucks img{
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 600px){
    .security-main-block{
        flex-direction: column;
    }
    .security-block{
        padding: 0 5px;
    }
    .security h1{
        font-size: 1em;
        margin: 5px 0;
    }
    .security p{
        font-size: .6em;
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 550px){
    .flex-text-image{
        flex-direction: column;
    }
    .flex-text-image img {
        margin-bottom: 10px;
        max-width: 75px;
    }
}

@media screen and (max-width: 500px){
    .about-links{
        flex-direction: column;
    }
    .about-phone{
        margin-bottom: 10px;
    }
    .about-link-item{
        margin-right: 0;
        margin-bottom: 10px;
    }
    .baner-form h1, .baner-form h2, .baner-form h3 {
        padding: 0 5px 5px 5px;
    }
    .baner-form h1{
        font-size: 1em;
    }
    .baner-form h2{
        font-size: .8em;
    }
    .baner-form input{
        margin-right: 0;
        margin-bottom: 10px;
    }
    .form-order{
        flex-direction: column;
    }
}

@media screen and (max-width: 400px){
    .counters{
        flex-direction: column;
    }
    .otzyv-image{

    }
}

@media screen and (max-width: 350px){
    .about-phone>a{
        font-size: 2em;
    }
}