/*------------------Вспомогательные настройки----------------------*/
* {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
}

/*Убрать стандартный дизайн ссылок*/
a {
    text-decoration: none;
    color: white;
}

ul {
    list-style-type: none;
    padding: 0;
}

.clearfix:before, .clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
}

.hidden {
    transition: 0.3s;
    display: none;
}

/*------------------header----------------------*/
/*Заголовок (красный фон)*/
.header {
    position: relative;
    padding-bottom: 5px;
    background-color: #c00a27;
    text-align: center;
}

/*------------------header-info----------------------*/
/*Первая строка*/
.header-info {
    white-space: nowrap;
    color: white;
    font-size: 15px;
    max-width: 1170px;
    height: 100px;
    padding: 20px 5px 0;
    margin: auto;
    border-bottom: 1px solid #cb334b;

}

/*Обертки для кнопок для мобилы*/
.option-button {
    display: none;
    width: 15%;
}

/*Кнопки для мобилы*/
.option-button__button {
    width: 60px;
    height: 30px;
    background-color: white;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    font-size: 15px;
    color: #c00a27;
    margin: auto;
}

.option-button__button:active {
    background-color: #828282;
}

/*Обертка Логотип*/
.header-info__li-img {
    display: inline-block;
    vertical-align: middle;
    width: 20%;
}

/*Логотип*/
.header-info__img {
    width: 80%;
}

/*Обертка для ссылок*/
.header-info__li-ul {
    display: inline-block;
    width: 40%;
}

/*Блок со ссылками*/
.header-info__ul {
    vertical-align: baseline;
}

/*Ссылки*/
.header-info__link {
    min-width: 20%;
    font-weight: bold;
    display: inline-block;
}

.header-info__link:first-child {
    min-width: 30%;
}

.header-info__link a:hover:after {
    content: '';
    display: block;
    border-top: 2px solid white;
    width: 50%;
    margin: 10px 0 0 25%;
}

.header-info__link a:active {
    font-weight: lighter;
}

/*Обертка для блока с городами и телефоном*/
.header-info__li-phone {
    display: inline-block;
    vertical-align: middle;
    width: 23%;
}

/*Блок с городами и телефоном*/
.header-info__phone {
    color: #ffae00;
    font-size: 14px;
    display: inline-block;
    text-align: right;
}

/*Телефон*/
.header-info__phone__number {
    color: white;
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 0 auto;
}

/*Обертка для кнопки с заказом*/
.header-info__li-order {
    display: inline-block;
    vertical-align: middle;
    width: 16%;
}

/*Кнопка с заказом*/
.header-info__order {
    margin-left: auto;
    width: 100%;
    background-color: #8ca93e;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    height: 60px;
    min-width: 135px;
    max-width: 190px;
}

.header-info__order:hover {
    background-color: #758d33;
}

.header-info__order:active {
    background-color: #62713b;
}

.header-info__order__text:after {
    display: block;
    content: '';
    border-top: 1px solid white;
    width: 50%;
    margin: 10px 0 0 55px;
}

.shopping-cart {
    position: relative;
    top: 5px;
    margin-right: 5px;
}

/*Стилизация выбора города*/
select {
    outline: none;
    color: white;
    width: 87px;
    border: none;
    background: #c00a27;
}

select:hover {
    color: #ffae00;
}

/*------------------header-menu----------------------*/

.header-menu {
    white-space: nowrap;
    color: white;
    font-size: 16px;
    max-width: 1170px;
    height: 80px;
    padding: 20px 5px 0;
    margin: auto;
}

.header-menu__li {
    min-width: 14%;
    display: inline-block;
    vertical-align: middle;
}

.header-menu__li:last-child {
    margin: 0;
    min-width: 50px;
}

.header-menu__li__text {
    display: inline-block;
    margin-left: 5px;
}

.header-menu__li a:hover:after {
    content: '';
    display: block;
    border-top: 2px solid white;
    width: 50%;
    margin: 5px 0 0 25%;
}

.header-menu__li a:active {
    font-weight: bolder;
}

/*Фон для мобильного меню*/
.mobile-menu {
    transition: margin-top 1s;
    background-color: #c00a27;
}

/*Отступ для мобильного меню*/
.mobile-margin {
    margin-top: 220px;
}
/*------------------slider----------------------*/
.slider {
    max-width: 1100px;
    margin: 10px auto 0;
    background-color: #c00a27;
}

.slider__img {
    margin: auto;
}

.slick-next {
    right: 10px;
}

.slick-prev {
    left: 10px;
    z-index: 1;
}

.slick-dots {
    position: static;
}

/*------------------Items-menu----------------------*/

/*Блок меню*/
.items-menu {
    white-space: nowrap;
    font-size: 16px;
    max-width: 1170px;
    height: 60px;
    padding: 18px 5px 0;
    margin: auto;
    border-bottom: 1px solid #e9e9e9;
}

/*Список меню*/
.items-menu__ul {
    margin: auto;
    width: 410px;
    text-align: center;
}

/*Пункт меню*/
.items-menu__li {
    width: 33%;
    display: inline-block;
    color: #9b959b;
    font-size: 26px;
}

/*При наведении на пункт меню*/
.items-menu__li:hover {
    color: #2d2b2d;
    font-weight: bold;
    cursor: pointer;
}

/*При нажатии на пункт меню*/
.items-menu__li:active {
    font-weight: lighter;
}

/*Активный пункт меню (вешаем с помощью js)*/
/*Полоска у активного пункта меню*/
.active:after, .items-menu__li:hover:after {
    content: '';
    display: block;
    border-top: 3px solid red;
    width: 50%;
    margin: 10px 0 0 25%;
}


/*------------------Items-content----------------------*/

/*Блок товара*/
.items-content {
    text-align: center;
    max-width: 1170px;
    min-height: 500px;
    margin: 20px auto 0;
}

/*Список товаров*/
.items-content__ul {
    height: 450px;
}

/*Товар*/
.items-content__li {
    height: 450px;
    float: left;
    width: calc(100% / 3);
    padding: 5px;
}

/*Рабка при наведении на товар*/
.items-content__li:hover {
    border: 5px solid #e9e9e9;
    padding: 0;
}

/*Резиновая картинка*/
.items-content__li img {
    width: 80%;
}

/*Название товара*/
.items-content__li__title {
    font-size: 24px;
}

/*Описание товара*/
.items-content__li__description {
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    margin: 5px 50px 10px;
    min-height: 90px;
}

/*Заголовок: "Размер"*/
.items-content__li__size {
    position: relative;
    font-size: 14px;
}

/*Заголовок: "Размер" (полоска до) */
.items-content__li__size:before {
    position: absolute;
    right: 60%;
    top: 50%;
    content: "";
    display: block;
    background-color: #e9e9e9;
    height: 2px;
    width: 20%;
    z-index: -1;
}

/*Заголовок: "Размер" (полоска после) */
.items-content__li__size:after {
    position: absolute;
    left: 60%;
    top: 50%;
    content: "";
    display: block;
    background-color: #e9e9e9;
    height: 2px;
    width: 20%;
    z-index: -1;
}

/*Радио кнопки*/
.items-content__li input {
    display: none;
}

/*Радио при нажатии */
.items-content__li input:checked + label:before {
    background-color: rgba(255, 205, 0, 1);
    border: 3px solid rgba(255, 205, 0, 1);
}

/*Радио кнопки (положение)*/
.items-content__li label {
    position: relative;
    display: inline-block;
    padding: 20px 20px 0 20px;
    vertical-align: middle;
    height: 60px;
}

/*Радио кнопки (кнопка)*/
.items-content__li label:before {
    content: '';
    display: block;
    position: absolute;
    top: 5px;
    left: 2px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #f9f1db;
    z-index: -1;
}

/*Размер внутри радио кнопки*/
.items-content__li__item-size {
    display: block;
    width: 20px;
    font-size: 14px;
    line-height: 0.9;
}

/*Стоимость около радио кнопки*/
.items-content__li__price {
    display: inline-block;
    width: 44px;
    margin-top: 20px;
    vertical-align: middle;
}

/*Обертка для submit*/
.items-content__li__submit {
    position: relative;
    width: 55%;
    margin: auto;
}

/*Картинка кнопки "В корзину"*/
.items-content__li__shopping-cart {
    position: absolute;
    left: 35px;
    top: 14px;
    color: white;
    font-size: 20px;
}

/*Кнопка "В корзину"*/
.items-content__li__submit .items-content__li__submit-button {
    width: 100%;
    margin: 10px auto 0;
    display: block;
    background-color: #f0002f;
    border-radius: 50px;
    height: 50px;
    color: white;
    font-weight: bold;
    font-size: 15px;
    border: none;
    outline: none;
}

.items-content__li__submit-button:hover {
    background-color: #da002b;
}

.items-content__li__submit-button:active {
    background-color: #8c011c;
    border: 1px solid #f0002f;
}

/*------------------Пицца дня----------------------*/
/*Фон"*/
.pizza-day {
    text-align: center;
    height: 377px;
    background: url(../images/pizza-day.jpg);
    max-width: 100%;
}

/*Блок с информацией*/
.pizza-day__content {
    display: inline-block;
    padding: 50px 0 0 0;
    margin: auto;
    color: white;
}

/*"Пицца дня"*/
.pizza-day__content__pretitle {
    position: relative;
    font-size: 24px;
    font-family: 'Yanone Kaffeesatz Light', arial, serif;
}

/*"Пицца дня" (полоска до)*/
.pizza-day__content__pretitle:before {
    position: absolute;
    right: 70%;
    top: 40%;
    content: "";
    display: block;
    background-color: white;
    height: 2px;
    width: 30%;
}

/*"Пицца дня" (полоска после)*/
.pizza-day__content__pretitle:after {
    position: absolute;
    left: 70%;
    top: 40%;
    content: "";
    display: block;
    background-color: white;
    height: 2px;
    width: 30%;
}

/*Название*/
.pizza-day__content__title {
    margin: 20px 0 0 0;
    font-family: 'Yanone Kaffeesatz Light', arial, serif;
    font-size: 73px;
    font-weight: bold;
}

/*Цена*/
.pizza-day__content__price {
    font-family: 'Yanone Kaffeesatz Light', arial, serif;
    font-size: 73px;
    font-weight: bold;
}

/*Кнопка*/
.pizza-day__content__submit {
    width: 65%;
    margin: 15px auto 0;
    display: block;
    background-color: #f0002f;
    border-radius: 5px;
    height: 50px;
    color: white;
    font-weight: bold;
    font-size: 15px;
    border: none;
    outline: none;
}

/*Кнопка при наведении*/
.pizza-day__content__submit:hover {
    background-color: #da002b;
}

/*Кнопка при нажатии*/
.pizza-day__content__submit:active {
    background-color: #8c011c;
    border: 1px solid #f0002f;
}

/*------------------Преимущества----------------------*/
/*Блок со списком*/
.advantages {
    text-align: center;
    min-height: 286px;
    max-width: 1170px;
    padding: 0;
    margin: 91px auto 0;
}

/*Элемент приемущества*/
.advantages__li {
    float: left;
    width: calc(100% / 4);
    margin: auto;
}

/*Картинка*/
.advantages__li__image {
    margin: auto;
}

/*Название*/
.advantages__li__title {
    margin: 20px 0 0 0;
    font-size: 18px;
}

/*Описание*/
.advantages__li__description {
    font-size: 14px;
    width: 51%;
    margin: 10px auto 0;
}

/*------------------Footer----------------------*/
footer {
    background-color: #2c2c2c;
    height: 500px;
}

/*Социальные кнопки*/
.social {
    padding: 90px 0 0 0;
    margin: auto;
    width: 40%;
    height: 123px;
}

/*Социальная кнопка*/
.social__li {
    float: left;
    width: calc(100% / 4);
}

/*Социальная иконка*/
.social__icon {
    position: relative;
    margin: auto;
    opacity: 0.5;
}

/*Граница вокруг социальной иконки*/
.social__icon:before {
    content: '';
    width: 40px;
    height: 40px;
    left: -12px;
    top: -12px;
    position: absolute;
    border: 2px solid white;
    border-radius: 50px;
}

/*Лого*/
.footer-logo {
    display: block;
    margin: 55px auto 0;
}

/*Блок с адресом*/
.footer-address {
    margin: 70px auto 0;
    max-width: 1000px;
    text-align: center;
}

/*Элемент адреса*/
.footer-address__li {
    display: inline-block;
    width: calc(100% / 4 - 4px);
    color: #dddddd;
    font-size: 14px;
    border-right: 2px solid #a11528;
    box-shadow: 2px 0 0 #7f1e2a;
}

/*Последний элемент адреса*/
.footer-address__li:last-child {
    border: none;
    box-shadow: none;
}

/*Авторские права*/
.copyright {
    margin: 5px auto 0;
    text-align: center;
    color: #7f7f7f;
    font-size: 13px;
}

/*Кнопка внизу*/
.footer-button {
    margin: 101px auto 0;
    line-height: 60px;
    width: 15%;
    min-width: 150px;
    height: 60px;
    color: white;
    font-weight: bold;
    white-space: nowrap;
    background: #f0002f;
    text-align: center;
    font-size: 14px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer-button:hover {
    background-color: #da002b;
    cursor: pointer;
}

.footer-button:active {
    background-color: #8c011c;
    border: 1px solid #f0002f;
}

/*Иконка карты*/
.fa-map-marker {
    margin-right: 15px;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
    color: #f0002f;
}

/*----------------Адаптивная верстка-------------------------*/

/*Сдвигаем иконки в кнопках заказать*/
@media (max-width: 1050px) {
    .items-content__li__shopping-cart {
        left: 10px;
    }
}

/*Убираем блок с телефоном, увеличиваем место для 1-го меню, уменьшаем шрифт 2-го меню*/
@media (max-width: 994px) {

    /*Блок с городами и телефоном*/
    .header-info__li-phone {
        display: none;
    }

    /*Блок со ссылками*/
    .header-info__li-ul {
        width: 60%;
    }

    /*Блок с корзиной товаров*/
    .header-info__li-order {
        width: 19%;
    }

    /*Блок с 2-м меню*/
    .header-menu {
        font-size: 14px;
    }

    /*Блок с описанием товара*/
    .items-content__li__description{
     min-height: 105px;
    }
}

/*Поднимаем кнопку с картой на 1 строчку вверх*/
@media (max-width: 877px) {

    /*Блок с описанием товара*/
    .items-content__li__description{
        min-height: 130px;
    }

    /*Кнопка с картой*/
    .footer-button {
        margin-top: 87px;
        width: 20%;
    }
}

/**/
@media (max-width: 770px) {

    /*Кнопки с меню*/
    .option-button {
        display: inline-block;
    }

    /*Обертка для блока с логотипом*/
    .header-info__li-img {
        width: 30%;
    }

    /*Блок с логотипом*/
    .header-info__img {
        width: 70%;
    }

    /*Обертка блока ссылок (1-е меню)*/
    .header-info__li-ul {
        display: none;
        transition: all 2s;
    }

    /*Элемент ссылка*/
    .header-info__link {
        display: block;
    }

    /*2-е меню*/
    .header-menu {
        display: none;
        transition: all 2s;
    }

    /*Блок со ссылками 2-го меню*/
    .header-menu__li {
        display: block;
        float: left;
        width: 50%;
        background: none;
    }

    /*Блок ссылок при нажатой кнопке*/
    .header-info__li-ul.active-element, .header-menu.active-element {
        display: block;
        position: absolute;
        width: 100%;
        font-size: 28px;
        left: 0;
        top: 105px;
        padding: 0 5px;
        height: auto;
        line-height: 52px;
    }

    /*Стили ссылок при наведении*/
    .header-info__link a:hover:after, .header-menu__li a:hover:after {
        display: none;
    }

    /*Обертка блока с корзиной*/
    .header-info__li-order {
        width: 29%;
    }

    /*Блок с корзиной*/
    .header-info__order {
        margin: auto;
    }

    /*Товаром*/
    .items-content__li {
        display: block;
        float: none;
        width: 100%;
        height: auto;
        padding: 15px;
    }

    /*Блок с описанием товара*/
    .items-content__li__description{
        min-height:inherit;
    }

    /*Товар при наведении*/
    .items-content__li:hover {
        padding: 10px;
    }

    /*Блок с товаром*/
    .items-content__ul {
        height: auto;
    }

    /*Кнопка с картой*/
    .footer-button {
        width: 30%;
    }
}

@media (max-width: 645px) {
    /*Кнопки опций*/
    .option-button {
        width: 15%;
    }

    /*Блок логотипа*/
    .header-info__li-img {
        width: 40%;
    }

    /*Элемент преимущества*/
    .advantages__li {
        display: block;
        width: calc(100% / 2);
        height: 230px;
    }

    /*Описание преимеществ*/
    .advantages__li__description {
        width: 90%;
    }

    /*Блок кнопки с заказом*/
    .header-info__li-order {
        width: 28%;
    }

    /*Социальные кнопки*/
    .social {
        width: 60%;
    }

    /*Элемент адреса*/
    .footer-address__li {
        width: calc(100% / 2 - 3px);
        border-right: none;
        box-shadow: none;
    }

    /*Элемент адреса нечетный*/
    .footer-address__li:nth-child(odd) {
        border-right: 2px solid #a11528;
        box-shadow: 2px 0 0 #7f1e2a;
    }

    /*Кнопка с картой*/
    .footer-button {
        margin-top: 83px;
        width: 40%;
    }
}

@media (max-width: 528px) {
    /*Кнопки опций*/
    .option-button {
        width: 25%;
    }

    /*Блок 1-го меню опций*/
    .header-info {
        padding: 80px 5px 0;
        height: 160px;
    }

    /*Логотип*/
    .header-info__li-img {
        display: block;
        position: absolute;
        width: 100%;
        top: 10px;
        left: 0;
    }

    /*Блок с логотипом*/
    .header-info__img {
        width: 50%;
    }

    /*Блок ссылок при нажатой кнопке*/
    .header-info__li-ul.active-element, .header-menu.active-element {
        top: 160px;
    }

    /*Блок кнопки с заказом*/
    .header-info__li-order {
        width: 48%;
    }

    /*Картинки ссылок меню*/
    .bg-pizza_icon, .bg-burger_icon, .bg-salad_icon, .bg-taco_icon, .bg-wrap_icon, .bg-fries_icon, .bg-drink_icon {
        display: none;
    }

    /*Текст ссылок меню*/
    .header-menu__li__text {
        margin: 0;
    }

    /*Блок слайдера*/
    .slider {
        display: none;
    }

    /*Социальные кнопки*/
    .social {
        width: 80%;
    }

    /*Кнопка с картой*/
    .footer-button {
        width: 50%;
    }
}

@media (max-width: 442px) {

    .items-menu {
        padding: 27px 5px;
    }

    /*Блок с подменю*/
    .items-menu__ul {
        width: 100%;
    }

    /*Текст подменю*/
    .items-menu__li {
        font-size: 18px;
    }

    /*Социальные кнопки*/
    .social {
        width: 90%;
    }

    /*Блок с адреом*/
    .footer-address {
        margin: 52px auto 0;
    }

    /*Элемент адреса*/
    .footer-address__li {
        width: 100%;
    }

    /*Элемент адреса нечетный*/
    .footer-address__li:nth-child(odd) {
        border-right: none;
        box-shadow: none;
    }

    /*Авторские права*/
    .copyright {
        width: 90%;
    }

    /*Кнопка с картой*/
    .footer-button {
        margin-top: 51px;
    }
}