/*основные цвета и тени*/
:root{
    --c-red: #e63d24;
    --c-black: #232323;
    --c-grey: #353535;
    --c-bright-gray: gray;
    --c-white: #EFEFEF;
    --glow: 0px 0px 6px var(--c-red);
}

.rubl {
    font-family: rouble, serif;
    font-weight: inherit;
    font-size: inherit;
    text-transform: none;
}

*{
    margin: 0;
    padding: 0;
}

ul, li{
    padding: 0;
    list-style-type: none;
}

p{
    margin-bottom: 10px;
    color: var(--c-white);
}

button,
button:active,
button:focus {
    font-family: Montserrat, serif;
    outline: none;
    border: none;
    display: block;
    color: white;
    background-color: var(--c-red);
    border-radius: 9999px;
    height: 36px;
    width: 180px;
    box-shadow: var(--glow);
}

button.back{
    background-color: inherit;
    box-shadow: none;
    border: 1px var(--c-red) solid;
}

a,
a:hover,
a:active,
a:visited,
a:focus
{
    text-decoration: none;
    color: var(--c-red);
    cursor: pointer;
}

a#back{
    color: var(--c-white);
    font-size: 32px;
}

h1{
    font-size: 22px;
}

h2{
    font-size: 20px;
}

h3{
    font-size: 18px;
}

h1,h2,h3{
    margin-bottom: 15px;
}

span{
    font-size: 14px;
    font-weight: 400;
}

/*placeholders*/
::-webkit-input-placeholder {font-family: Montserrat, serif; font-size:14px;  color: var(--c-white);}
::-moz-placeholder          {font-family: Montserrat, serif; font-size:14px;  color: var(--c-white);}
:-moz-placeholder           {font-family: Montserrat, serif; font-size:14px;  color: var(--c-white);}
:-ms-input-placeholder      {font-family: Montserrat, serif; font-size:14px;  color: var(--c-white);}

body{
    font-family: Montserrat, serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    background-color: var(--c-black);
    color: var(--c-white);
}

#content{
    position: relative;
    margin-top: 70px;
    float: left;
    width: 100%;
    overflow-x: hidden;
}

#content,
#main-content{
    margin-bottom: 50px;
}

.row {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media screen and (min-width: 378px){
    .row {
        justify-content: space-around;
    }
}

.container {
    padding-left: 8px;
    padding-right: 8px;
}

img{
    width: 100%;
    height: 100%;
}

.logo{
    text-align: center;
    padding: 15px 0 5px 0;
}

.logo img{
   width: auto;
}

.main-menu{
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
}

.main-menu a{
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 10px;
}

.main-menu a .image{
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.main-menu a .image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(0, 0, 0, 0.65) 100%);
}

.main-menu a .name{
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 23px;
    font-weight: normal;
    color: #f4f4d0;
    background-color: #0000009c;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 8px;
}

/*меню в шапке*/
.menu{
    position: fixed;
    width: 100%;
    background: black;
    display: flex;
    margin-top: 0;
    -moz-box-align: center;
    align-items: center;
    top: 0;
    z-index: 1;
    will-change: box-shadow;
    transition: box-shadow 150ms ease 0s;
    user-select: none;
    height: 50px;
    overflow-x: auto;
}

.menu i{
    font-size: 20px;
    color: white;
}

.menu-search{
    display: flex;
    margin-left: 10px;
    height: 100%;
    align-items: center;
    padding-right: 10px;
}

.menu-block.search{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-block.search input{
    border: none;
    border-bottom: 1px solid #ffffff17;
    font-size: 18px;
    outline:none;
    width: 260px;
    background-color: inherit;
    color: var(--c-white);
}

.menu-block.search a{
    color: black;
}

.menu-block.search i{
    margin-right: 5px;
}

.menu-inner{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: auto;
    scroll-snap-type: x mandatory;
}

.menu-item{
    position: relative;
    width: auto;
    padding: 0 18px;
    margin-right: -20px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.menu-item a{
    color: white;
    padding-bottom: 10px;
}

.menu-item#active a{
    color: var(--c-red);
    text-shadow: var(--glow);
}

.heading{
    text-align: center;
    margin: 15px 0;
}


/*блюда*/
.dishes{
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.product-item {
    box-sizing: border-box;
    position: relative;
    width: 49%;
    max-width: 174px;
    display: flex;
    flex-flow: wrap;
    flex: 0 1 auto;
    background: var(--c-grey);
    margin-bottom: 10px;
    border-radius: 12px;
}

.product-item .inner {
    display: flex;
    flex-flow: column;
    position: relative;
    width: 100%;
}

.product-item .inner .photo {
    height: 116px;
    margin-bottom: 8px;
    width: 100%;
}

.product-item .inner .desc {
    margin-bottom: 20px;
    height: 40px;
    padding: 8px;
}

.product-item .inner .desc .out{
    font-size: 12px;
    color: #8a8686;
}

.product-item .inner h3{
    font-size: 13px;
    margin-bottom: 10px;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    color: var(--c-white);
}

.product-item .inner .price{
    color: var(--c-white);
    font-size: 15px;
    font-weight: bold;
}

.product-item .inner .button-add{
    width: 90%;
    margin-left: 5%;
    margin-bottom: 10px;
}

.button-add i{
    margin-right: 5px;
}

.button-add{
    font-size: 15px;
}

.button-add a{
    color: var(--c-white);
    margin: 0 15px;
}

.button-add a,
.button-add  span{
    font-size: 20px;
}

/*показ блюда*/
.dish-show .picture{
    margin-bottom: 15px;
    padding-top: 15px
}

.dish-show .desc{
    padding: 8px;
}

.dish-show .desc .price{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.dish-show .desc .price #cost{
    font-size: 20px;
    font-weight: bold;
}

.dish-show .desc .button-add{
    font-size: 17px;
}

/*корзина*/
#cart-bottom{
    width: 100%;
    height: auto;
    min-height: 50px;
    position: fixed;
    bottom: 0;
    background: black;
    z-index: 1100;
    border-radius: 34px 34px 0 0;
    color: white;
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.cart-head .name{
    display: flex;
}

.cart-head .name i{
    margin-right: 8px;
}

.cart-body{
    overflow-y: auto;
    max-height: calc(100vh - 105px);
}

.cart-item{
    margin-bottom: 5px;
    padding: 5px 20px;
}

.cart-item:last-child{
    border: none;
}

.cart-item .name,
.cart-item .add-to-cart-container,
.cart-body .total
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item .name h3{
    margin-bottom: 8px;
}

.cart-item .name h3.title{
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-color: white;
    text-decoration-thickness: 1px;
}

.cart-item .name a{
    display: block;
    color: inherit;
    width: 75%;
}

.cart-item .add-to-cart-container{
    border-bottom: 1px var(--c-light-green) solid;
    padding-bottom: 5px;
}

.cart-item .name .price,
.cart-item .add-to-cart-container .add-to-cart,
.cart-item .add-to-cart-container .remove-btn,
.cart-body .total h2
{
    color: var(--c-light-green);
}

.cart-item .add-to-cart-container .add-to-cart a,
.cart-item .add-to-cart-container .add-to-cart span
{
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.cart-item .add-to-cart-container .remove-btn{
    font-size: 20px;
    color: inherit;
    font-weight: inherit;
}

.cart-item .add-to-cart-container .add-to-cart{
    font-size: 22px;
    font-weight: bold;
}

.cart-item .add-to-cart-container .add-to-cart a.a-btn{
    margin-left: .3em;
    margin-right: .3em;
    text-align: center;
}

.cart-item .add-to-cart-container .add-to-cart span{
    display: inline-block;
    width: 20px;
    padding: 0 4px;
    text-align: center;
}

.cart-body .total{
    padding-left: 20px;
    padding-right: 20px;
    margin: 15px 0;
}

.cart-body .total button{
    width: 130px;
    font-weight: bold;
}

.cart-body .total h2{
    margin: 0;
}

.cart-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    filter: blur(5px);
    background-color: #f0dfdf5c;
}

/*модальное окно*/
.md-modal-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 320px;
    height: auto;
    z-index: 2000;
    visibility: hidden;

    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.md-show {
    visibility: visible;
}

.md-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0;
    background: rgba(0,0,0,0.7);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.md-show ~ .md-overlay {
    opacity: 1;
    visibility: visible;
}

.md-show .info {
    background: var(--c-grey);
    font-size: 18px;
    padding: 35px 40px 25px;
    border-radius: 4px;
    color: var(--c-white)
}

.md-show .info h1{
    font-weight: bold;
}

.md-show .info a{
    color: var(--c-red);
}

/* Content styles */
.md-content {
    color: #000;
    background: white;
    position: relative;
    margin: 0 auto;
}

.md-content button {
    display: block;
    margin: 0 auto;
    font-size: 0.8em;
    outline: none;
}

.md-content .md-close {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    cursor: pointer;
    box-shadow: none;
    border-radius: 0 4px 0 0;
    background-color: inherit;
}

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.md-show.md-effect-1 .md-content {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

/*footer*/
#no-ios{
    bottom: 0;
}

.footer-fxd {
    width: 100%;
    height: 55px;
    position: fixed;
    left: 0;
    bottom: 19px;
    background: black;
    z-index: 1;
    border-radius: 34px 34px 0 0;
}

.footer-fxd ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    padding: 10px 4px;
}

.footer-fxd ul li {
    position: relative;
    font-size: 10px;
    line-height: 14px;
    opacity: 1;
    display: block;
    padding: 5px;
}

.footer-fxd ul li a {
    display: flex;
    flex-wrap: wrap;
    width: 50px;
    justify-content: center;
    color: var(--c-white);
}

.footer-fxd ul li a#active{
    color: var(--c-red);
}

.footer-fxd ul li a#active::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    -moz-border-radius: 7.5px;
    -webkit-border-radius: 7.5px;
    border-radius: 7.5px;
    background-color: var(--c-red);
    position: absolute;
    top: 30px;
    left: 46%;
    box-shadow: var(--glow);
}

.footer-fxd ul li i {
    height: 25px;
    font-size: 25px;
    color: inherit;
}

.footer-fxd .head-cart{
    position: relative;
}

.footer-fxd ul li a#active .head-cart span{
    background: var(--c-white);
    color: var(--c-red);
}

.footer-fxd .head-cart span{
    background: var(--c-red);
    border-radius: 20px;
    color: #fff;
    display: inline-block;
    font-size: 11px;
    left: 50%;
    line-height: 14px;
    margin-left: 8px;
    padding: 1px 5px;
    position: absolute;
    top: -5px;
}

/*статичные страницы*/
.container .text{
    padding: 25px;
    background-color: var(--c-grey);
    border-radius: 10px;
    box-shadow: 0 0 6px black;
    margin-top: 10px;
    margin-bottom: 50px;
}

.container .text ul{
    padding-left: 10px;
}

.container .text ul li{
    list-style-type: disc;
    margin-bottom: 10px;
}

.container .button-text{
    margin: 0 auto;
}

.order-confirm textarea{
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-top: 45px;
    height: 100px;
}

.order-confirm div{
    display: flex;
    margin-top: 30px;
}

.order-confirm button{
    margin: 0 20px;
}

.order-confirm textarea::placeholder{
    color: #393939;

}

