body{
    margin:0;
    padding:0;
    font-family:Segoe UI, Arial, sans-serif;
    background:#ede8df;
    color:#2d2d2d;
}

header{
    background:#1f5c37;
    color:white;
    text-align:center;
    padding:20px;
}

.info{
    margin-top:10px;
    font-size:15px;
}

main{
    padding:20px;
    padding-bottom:400px;
}

#menu{
    background:white;
    padding:20px;
    border-radius:12px;
}

footer{
    position:fixed;
    bottom:0;
    width:100%;
    background:white;
    box-shadow:0 -2px 10px rgba(0,0,0,.15);
}

#cart{
    padding:15px;
    text-align:center;
}

button{
    width:90%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#2f8b4d;
    color:white;
    font-size:18px;
    cursor:pointer;
}.dish{

    padding:15px;

}

.dish h3{

    margin:0;

    color:#2f8b4d;

}

.controls{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

}

.controls button{

    width:40px;

    height:40px;

    font-size:20px;

}
.dish-card{
    display:flex;
    gap:20px;
    align-items:flex-start;
    padding:20px;
}

.dish-image img{
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:12px;
    border:2px solid #2f6d42;
}

.dish-info{
    flex:1;
}

.dish-info h3{
    margin:0;
    color:#214d2f;
}

.weight{
    margin-top:6px;
    color:#777;
    font-size:14px;
}

.description{
    margin-top:12px;
    color:#555;
    line-height:1.5;
}

.bottom{
    margin-top:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.price{
    font-size:24px;
    font-weight:bold;
    color:#2f6d42;
}
.dish-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

    margin-bottom:22px;

    transition:.25s;
}

.dish-card:hover{

    transform:translateY(-3px);

    box-shadow:0 14px 28px rgba(0,0,0,.18);

}

.dish-image img{

    width:150px;

    height:150px;

    object-fit:cover;

    border-radius:16px;

    border:3px solid #2f6d42;

}

.price{

    color:#2f6d42;

    font-size:28px;

    font-weight:bold;

}

.controls button{

    width:42px;

    height:42px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    line-height:1;

    border-radius:50%;

    border:none;

    background:#2f6d42;

    color:white;

    font-size:24px;

    cursor:pointer;

    transition:.2s;

}

.controls button:hover{

    background:#214d2f;

}
.cart-item{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:8px 0;

    border-bottom:1px solid #ececec;

}

.cart-item strong{

    color:#2f6d42;

}
#orderButton:disabled{

    background:#9e9e9e;

    cursor:not-allowed;

    opacity:.7;

}

#orderButton{

    transition:.25s;

}

.cart-actions{
    display:flex;
    justify-content:center;
    gap:10px;
    max-width:720px;
    margin:0 auto;
}

.cart-actions button{
    flex:1;
    width:auto;
}

#clearCartButton{
    background:#777;
    transition:.25s;
}

#clearCartButton:hover{
    background:#5f5f5f;
}
.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:999;

}

.modal-content{

    width:90%;
    max-width:420px;
    max-height:90vh;
    overflow-y:auto;

    background:white;

    border-radius:18px;

    padding:20px;

    display:flex;

    flex-direction:column;

    gap:12px;

}

.modal-content input[type="text"],
.modal-content textarea{

    padding:12px;

    border:1px solid #ccc;

    border-radius:10px;

    font-size:16px;

}

.modal-content textarea{

    resize:none;

    height:90px;

}

.modal-buttons{

    display:flex;

    gap:10px;

}

.modal-buttons button{

    flex:1;

}

.order-options{
    margin:0;
    padding:10px 12px 12px;
    border:1px solid #d4d4d4;
    border-radius:10px;
}

.order-options legend{
    padding:0 5px;
    font-weight:600;
    color:#214d2f;
}

.radio-options{
    display:flex;
    flex-wrap:wrap;
    gap:10px 18px;
    margin-bottom:10px;
}

.radio-options label{
    display:flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
}

.payment-options{
    margin-bottom:0;
}

.contact-field{
    display:flex;
    align-items:center;
    border:1px solid #ccc;
    border-radius:10px;
    background:white;
}

.contact-field span{
    padding-left:12px;
    font-size:16px;
    color:#555;
}

.contact-field input[type="text"]{
    flex:1;
    min-width:0;
    border:0;
    outline:none;
}

.location-button{
    width:100%;
    padding:12px;
    background:#2f6d42;
    font-size:16px;
}

.location-status{
    min-height:20px;
    margin:-5px 2px 0;
    font-size:14px;
    line-height:1.35;
    color:#666;
}

.location-status.success{
    color:#2f6d42;
}

.location-status.error{
    color:#9b3a2f;
}
.cart-item{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #ececec;
}

.cart-item strong{
    color:#2f6d42;
}

#orderButton:disabled{
    background:#9e9e9e;
    cursor:not-allowed;
    opacity:.7;
}

/* ===========================
   Адаптация для телефонов
   =========================== */

@media (max-width: 768px){

    .cart-actions{
        flex-direction:column;
    }

    .dish-card{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:15px;
        padding:15px;
    }

    .dish-image img{
        width:100%;
        max-width:260px;
        height:auto;
    }

    .dish-info{
        width:100%;
    }

    .bottom{
        display:flex;
        flex-direction:column;
        gap:15px;
        align-items:center;
    }

    .price{
        font-size:22px;
    }

    .controls{
        width:100%;
        justify-content:center;
    }

}

/* Категории, компактная сетка меню и обновлённая корзина */
body{ background:#f1ede5; }

header{
    padding:20px 20px 24px;
    background:linear-gradient(135deg,#173f29,#276942);
}

.category-bar{
    position:sticky;
    top:0;
    z-index:20;
    border-bottom:1px solid rgba(31,92,55,.12);
    background:rgba(241,237,229,.96);
    backdrop-filter:blur(10px);
}

.category-list{
    display:flex;
    gap:9px;
    width:min(1120px,100%);
    margin:0 auto;
    padding:12px 20px;
    box-sizing:border-box;
    overflow-x:auto;
    scrollbar-width:none;
}

.category-list::-webkit-scrollbar{ display:none; }

.category-button{
    flex:0 0 auto;
    width:auto;
    padding:9px 16px;
    border:1px solid #c9d5cc;
    border-radius:999px;
    background:#fff;
    color:#28573a;
    font-size:15px;
    font-weight:650;
    white-space:nowrap;
    box-shadow:0 2px 7px rgba(31,92,55,.06);
}

.category-button:hover{ background:#e8f0e9; }

.category-button.active{
    border-color:#2f6d42;
    background:#2f6d42;
    color:#fff;
    box-shadow:0 5px 14px rgba(47,109,66,.25);
}

main{
    width:min(1120px,100%);
    margin:0 auto;
    padding:24px 20px 390px;
    box-sizing:border-box;
}

#menu{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    padding:0;
    background:transparent;
}

.dish{ min-width:0; padding:0; }

.dish-card{
    height:100%;
    margin-bottom:0;
    padding:16px;
    box-sizing:border-box;
}

.dish-image img{ width:132px; height:132px; }
.price{ font-size:24px; }

.dish-count{
    min-width:24px;
    color:#183d28;
    font-size:20px;
    font-weight:800;
    text-align:center;
}

footer{ background:transparent; pointer-events:none; }

#cart{
    width:min(760px,calc(100% - 32px));
    max-height:340px;
    margin:0 auto 14px;
    padding:18px 20px !important;
    overflow-y:auto;
    box-sizing:border-box;
    border:1px solid rgba(31,92,55,.14);
    border-radius:20px;
    background:rgba(255,255,255,.98);
    box-shadow:0 14px 42px rgba(24,55,37,.2);
    pointer-events:auto;
    text-align:left;
}

.cart-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:8px;
}

.cart-heading h3{ margin:1px 0 0; color:#183d28; font-size:22px; }
.cart-eyebrow{ color:#77827a; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.cart-badge{ display:grid; place-items:center; min-width:32px; height:32px; padding:0 8px; border-radius:999px; background:#e4eee6; color:#245b38; font-weight:800; box-sizing:border-box; }
.cart-empty{ padding:10px 0 6px; color:#66716a; text-align:center; }
.cart-empty span{ display:block; margin-bottom:4px; font-size:25px; filter:grayscale(1); opacity:.65; }
.cart-empty p{ margin:0; color:#34483b; font-weight:700; }
.cart-empty small{ display:block; margin-top:3px; }
.cart-item{ gap:18px; padding:9px 0; }
.cart-summary{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-top:13px; padding-top:12px; border-top:1px solid #e0e7e1; color:#68746b; }
.cart-total{ text-align:right; }
.cart-total small{ display:block; margin-bottom:1px; }
.cart-total strong{ color:#1f5c37; font-size:25px; line-height:1; }

#clearCartButton{
    border:1px solid #b8c3ba;
    background:#fff;
    color:#526158;
}

#clearCartButton:hover{ background:#eef2ee; }

@media (max-width:768px){
    main{ padding:18px 12px 340px; }
    main > h2{ margin-top:3px; }
    #menu{ grid-template-columns:1fr; gap:12px; }
    .category-list{ padding:10px 12px; }
    #cart{ width:calc(100% - 20px); max-height:300px; margin-bottom:10px; padding:14px !important; }
    .cart-actions{ flex-direction:row; }
    .dish-card{ flex-direction:row; align-items:flex-start; gap:12px; padding:12px; }
    .dish-image img{ width:105px; max-width:none; height:105px; }
    .dish-info{ width:auto; min-width:0; }
    .bottom{ flex-direction:row; gap:10px; align-items:center; }
    .controls{ width:auto; justify-content:flex-end; }
}

@media (max-width:480px){
    .dish-info h3{ font-size:16px; }
    .description{ margin-top:8px; font-size:13px; line-height:1.35; }
    .price{ font-size:19px; }
    .controls{ gap:11px; }
    .controls button{ width:38px; height:38px; }
    .cart-actions button{ padding:12px 8px; font-size:15px; }
    .cart-total strong{ font-size:22px; }
}

/* Просмотр фотографии блюда поверх меню */
.menu-photo{ cursor:zoom-in; }

.menu-photo:focus-visible{
    outline:3px solid #bad95f;
    outline-offset:3px;
}

body.lightbox-open{ overflow:hidden; }

.image-lightbox{
    position:fixed;
    inset:0;
    z-index:3000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    box-sizing:border-box;
    background:rgba(7,14,10,.86);
    backdrop-filter:blur(4px);
}

.image-lightbox[hidden]{ display:none; }

.image-lightbox-content{
    position:relative;
    display:grid;
    place-items:center;
    width:min(68vw,1000px);
    max-height:80vh;
}

.image-lightbox-content img{
    display:block;
    width:100%;
    max-height:80vh;
    object-fit:contain;
    border-radius:18px;
    background:#e5e1d8;
    box-shadow:0 24px 70px rgba(0,0,0,.45);
    cursor:zoom-out;
}

.image-lightbox-close{
    position:absolute;
    top:-18px;
    right:-18px;
    z-index:1;
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border:2px solid rgba(255,255,255,.72);
    border-radius:50%;
    background:#1f5c37;
    color:#fff;
    font-size:30px;
    line-height:1;
    box-shadow:0 8px 24px rgba(0,0,0,.35);
}

.image-lightbox-close:focus-visible{
    outline:3px solid #bad95f;
    outline-offset:3px;
}

@media (max-width:768px){
    .image-lightbox{ padding:18px; }
    .image-lightbox-content{ width:88vw; max-height:85vh; }
    .image-lightbox-content img{ max-height:85vh; }
    .image-lightbox-close{ top:-14px; right:-10px; }
}

/* Фирменная шапка TAIGA */
.site-header{
    position:relative;
    overflow:hidden;
    padding:18px 20px 20px;
    border-radius:0;
    background:
        radial-gradient(circle at 18% 12%,rgba(112,156,108,.28),transparent 32%),
        radial-gradient(circle at 82% 90%,rgba(161,136,73,.14),transparent 34%),
        linear-gradient(140deg,#06160e 0%,#163a25 46%,#0a2116 100%);
    box-shadow:0 12px 30px rgba(18,55,35,.2);
    text-align:center;
}

.site-header::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        repeating-linear-gradient(115deg,transparent 0 18px,rgba(255,255,255,.014) 19px,transparent 20px),
        repeating-linear-gradient(25deg,transparent 0 27px,rgba(198,215,185,.012) 28px,transparent 29px);
    opacity:.9;
    pointer-events:none;
}

.hero-inner{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:min(1080px,100%);
    margin:0 auto;
}

.brand-logo{
    display:grid;
    place-items:center;
    width:224px;
    height:224px;
    padding:4px;
    box-sizing:border-box;
    border:1px solid rgba(239,227,187,.38);
    border-radius:50%;
    background:rgba(4,18,11,.35);
    box-shadow:0 12px 28px rgba(0,0,0,.3),0 0 24px rgba(130,171,115,.1);
}

.brand-logo img{
    display:block;
    width:216px;
    height:216px;
    border-radius:50%;
    object-fit:contain;
}

.brand-logo-fallback{
    color:#f0e6c8;
    font-size:26px;
    font-weight:800;
    letter-spacing:.1em;
}

.header-info{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
}

.header-info span{
    padding:7px 12px;
    border:1px solid rgba(232,225,194,.22);
    border-radius:999px;
    background:rgba(4,18,11,.34);
    color:#f4edda;
    font-size:13px;
    font-weight:600;
    line-height:1.2;
    box-shadow:0 5px 16px rgba(0,0,0,.14);
    backdrop-filter:blur(5px);
}

.site-header + .category-bar{ margin-top:0; }

@media (max-width:768px){
    .site-header{
        padding:14px 12px 15px;
        border-radius:0;
    }
    .hero-inner{ gap:8px; }
    .brand-logo{ width:168px; height:168px; padding:4px; }
    .brand-logo img{ width:160px; height:160px; }
    .brand-logo-fallback{ font-size:20px; }
    .header-info{ flex-direction:column; align-items:center; gap:5px; }
    .header-info span{ padding:6px 10px; font-size:12px; }
}

@media (max-width:380px){
    .site-header{ padding:12px 10px 14px; }
    .hero-inner{ gap:6px; }
    .brand-logo{ width:156px; height:156px; padding:3px; }
    .brand-logo img{ width:150px; height:150px; }
    .header-info span{ padding:5px 8px; font-size:11px; }
}

/* Компактная раскрываемая корзина и полноразмерные фото блюд */
.dish-image{
    flex:0 0 170px;
    display:grid;
    place-items:center;
    min-height:170px;
    border-radius:16px;
    background:#e5e1d8;
}

.dish-image img{
    width:170px;
    height:170px;
    box-sizing:border-box;
    object-fit:contain;
    background:#e5e1d8;
}

main{ padding-bottom:110px; }
body.cart-expanded main{ padding-bottom:calc(55vh + 28px); }

footer[hidden]{ display:none; }

#cart{
    width:min(760px,calc(100% - 20px));
    max-height:none;
    margin:0 auto max(10px,env(safe-area-inset-bottom));
    padding:0 !important;
    overflow:hidden;
    border-radius:18px;
}

#cart.cart-collapsed{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:stretch;
    min-height:76px;
}

.cart-toggle,
.cart-open-heading{
    width:100%;
    border-radius:0;
    background:#fff;
    color:#244a32;
    text-align:left;
}

.cart-toggle{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    padding:12px 16px;
}

.cart-compact-icon{ flex:0 0 auto; font-size:24px; }
.cart-compact-total{ display:flex; min-width:0; flex-direction:column; }
.cart-compact-total strong{ overflow:hidden; font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.cart-compact-total small{ margin-top:2px; color:#6c786f; font-size:12px; }

.cart-order-primary{
    width:auto;
    border-radius:12px;
    background:#2f8b4d;
    font-weight:700;
}

.cart-collapsed .cart-order-primary{
    margin:10px;
    padding:0 20px;
    white-space:nowrap;
}

.order-label-short{ display:none; }

#cart.cart-open{
    display:flex;
    height:min(55vh,440px);
    max-height:55vh;
    padding:12px 18px !important;
    flex-direction:column;
}

.cart-open-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex:0 0 auto;
    padding:0 0 6px;
}

.cart-open-heading span:first-child{ display:flex; flex-direction:column; }
.cart-open-heading small{ color:#77827a; font-size:11px; letter-spacing:.1em; text-transform:uppercase; }
.cart-open-heading strong{ font-size:21px; }
.cart-collapse-label{ color:#536158; font-size:13px; }

.cart-items{
    flex:1 1 240px;
    min-height:0;
    max-height:260px;
    overflow-y:auto;
    overscroll-behavior:contain;
    border-top:1px solid #e0e7e1;
}

.cart-open .cart-summary{
    flex:0 0 auto;
    margin-top:8px;
    padding-top:8px;
}
.cart-open .cart-actions{ flex:0 0 auto; margin-top:8px; }
.cart-open #clearCartButton,
.collapse-cart-button{
    border:1px solid #b8c3ba;
    background:#fff;
    color:#526158;
    font-size:14px;
}

@media (max-width:768px){
    main{ padding-bottom:108px; }
    body.cart-expanded main{ padding-bottom:calc(60vh + 22px); }
    .dish-image{ flex-basis:145px; min-height:150px; }
    .dish-image img{ width:145px; height:150px; }
    #cart{ width:calc(100% - 16px); }
    #cart.cart-collapsed{ min-height:74px; }
    #cart.cart-open{
        height:min(60vh,460px);
        max-height:60vh;
        padding:10px 14px 12px !important;
    }
    .cart-items{ flex-basis:220px; max-height:260px; }
    .cart-open .cart-actions{ flex-direction:row; }
}

@media (max-width:480px){
    .dish-card{ gap:10px; }
    .dish-image{ flex-basis:132px; min-height:145px; }
    .dish-image img{ width:132px; height:145px; }
    .cart-toggle{ padding:10px 12px; }
    .cart-compact-icon{ font-size:21px; }
    .cart-compact-total strong{ font-size:14px; }
    .cart-collapsed .cart-order-primary{ margin:9px; padding:0 13px; font-size:15px; }
    .order-label-full{ display:none; }
    .order-label-short{ display:inline; }
    .cart-open .cart-actions{
        display:grid;
        grid-template-columns:1.4fr .8fr .8fr;
        gap:7px;
    }
    .cart-open .cart-actions .cart-order-primary{ grid-column:auto; }
    .cart-open .cart-actions button{ padding:10px 6px; font-size:13px; }
}
