*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:system-ui, Arial;
}

body{
background:#fafafa;
color:#222;
}

/* HEADER */

header{
text-align:center;
padding:16px;
background:white;
box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

h1{
color:#f76c6c;
font-size:22px;
}

/* HERO */

.hero{
text-align:center;
padding:40px 15px;
}

.hero h2{
font-size:24px;
margin-bottom:6px;
}

.hero p{
font-size:14px;
color:#555;
margin-bottom:20px;
}

/* КНОПКА */

#orderBtn{
font-size:26px;
padding:12px 28px;
border-radius:14px;
background:#f76c6c;
color:white;
border:none;
box-shadow:0 8px 20px rgba(0,0,0,0.2);
cursor:pointer;
transition:0.2s;
}

#orderBtn:hover{
transform:scale(1.05);
}

/* FOOD */

.foods{
display:flex;
justify-content:center;
gap:20px;
padding:20px;
flex-wrap:wrap;
}

.food{
background:white;
border-radius:12px;
padding:12px;
width:150px;
text-align:center;
box-shadow:0 6px 18px rgba(0,0,0,0.1);
}

.food img{
width:100%;
height:100px;
object-fit:cover;
border-radius:8px;
margin-bottom:6px;
}

/* OVERLAY */

.overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
display:none;
align-items:center;
justify-content:center;
animation:fadeIn 0.3s;
}

/* MODAL */

.modal{
background:white;
padding:16px;
border-radius:14px;
width:100%;
max-width:400px;
max-height:90vh;
overflow-y:auto;
position:relative;
animation:scaleIn 0.3s;
}

/* АНИМАЦИИ */

@keyframes fadeIn{
from{opacity:0}
to{opacity:1}
}

@keyframes scaleIn{
from{transform:scale(0.9)}
to{transform:scale(1)}
}

/* CLOSE */

.close{
position:absolute;
top:8px;
right:8px;
background:#ddd;
color:black;
padding:4px 8px;
border:none;
border-radius:6px;
cursor:pointer;
}

/* PRODUCT */

.product{
border-bottom:1px solid #eee;
padding-bottom:10px;
margin-bottom:10px;
}

.productTitle{
font-weight:bold;
margin-bottom:5px;
}

/* CONTROLS */

.controls{
display:flex;
gap:6px;
align-items:center;
flex-wrap:wrap;
}

/* КРУГЛЫЕ КНОПКИ */

.controls button{
border-radius:50%;
width:32px;
height:32px;
background:#f76c6c;
color:white;
font-weight:bold;
border:none;
cursor:pointer;
transition:0.2s;
}

.controls button:hover{
transform:scale(1.15);
}

.controls input{
width:50px;
text-align:center;
}

/* БЛОКИ */

.cutBox,
.payBox,
.deliveryBox{
border-bottom:1px solid #eee;
padding-bottom:8px;
margin-bottom:8px;
font-size:14px;
}

/* АДРЕС */

#addressInput{
width:100%;
padding:6px;
margin-top:6px;
display:none;
opacity:0;
transition:0.3s;
}

/* PREVIEW */

.previewBox{
background:#f9f9f9;
border-radius:10px;
padding:10px;
margin-top:10px;
}

.previewHeader{
font-weight:bold;
cursor:pointer;
}

#previewContent{
display:none;
font-size:14px;
margin-top:6px;
white-space:pre-line;
}

/* TEXTAREA */

textarea{
width:100%;
height:55px;
margin-top:8px;
padding:6px;
}

/* PRICE */

#priceBlock{
font-size:18px;
font-weight:bold;
margin-top:10px;
}

/* КНОПКА ЗАКАЗА */

.orderSend{
width:100%;
margin-top:10px;
padding:12px;
font-size:16px;
border:none;
border-radius:10px;
background:#f76c6c;
color:white;
cursor:pointer;
transition:0.2s;
}

.orderSend:hover{
transform:scale(1.02);
}

.orderSend:disabled{
background:#ccc;
cursor:not-allowed;
}

/* MOBILE */

@media (max-width:600px){

.food{
width:90%;
}

#orderBtn{
font-size:22px;
}

}