/* ===== Базовые настройки и переменные ===== */
* {
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Новая цветовая схема — мандарин / зелёный лист / кремовый */
    --primary: #FF7E19;         /* Мандарин (из лого) */
    --primary-dark: #E56A0A;    /* Чуть темнее для ховеров */
    --accent: #5E8C2E;          /* Приглушённый зелёный листа */
    --accent-dark: #4A7023;     /* Темнее для ховеров */
    --text: #3E2723;            /* Тёмно-коричневый */
    --bg: #FFF8F0;              /* Тёплый кремовый */
    --card: #FFFDF9;
    --border: #E8DCCF;          /* Кремовый потемнее для границ */
    --radius: 14px;
    --shadow: 0 6px 24px rgba(62, 39, 35, 0.08);
    --shadow-hover: 0 12px 32px rgba(255, 126, 25, 0.18);
    --header-h: 60px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%;margin-bottom: 20px;}

/* ===== 2. КНОПКИ ===== */
.btn {
    display: inline-block; padding: 10px 20px; border-radius: 10px;
    font-weight: 600; border: none; cursor: pointer; background: #eee;
    color: var(--text); transition: transform .15s, background .2s; font-size: 15px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--accent); color: #fff; }
.btn-danger:hover { background: var(--accent-dark); }
.btn-sm { padding: 4px 10px; font-size: 13px; }

/* ===== 3. ШАПКА ===== */
.site-header {
    background: #fff; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(43, 43, 43, 0.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.logo { display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--primary); white-space: nowrap; }

.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--primary); }

.header-contact { display: flex; align-items: center; gap: 16px; }
.contact-info { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.phone { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.work-hours { font-size: 0.8rem; color: #666; }

.header-search-btn {
    background: transparent; border: none; cursor: pointer; color: var(--text);
    display: flex; align-items: center; justify-content: center; padding: 10px;
    border-radius: 50%; transition: background 0.2s, color 0.2s;
}
.header-search-btn:hover { background: var(--bg); color: var(--primary); }

/* Бургер и мобильное меню */
.mobile-menu-toggle { display: none; background: transparent; border: none; cursor: pointer; color: var(--text); padding: 4px; }
.mobile-nav-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5); /* Затемнение фона */
    z-index: 1000; /* Чтобы было поверх всего */
    display: flex; 
    justify-content: flex-end; /* Прижимаем меню к правому краю */
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-nav-content {
    background: #fff; 
    width: 280px; 
    max-width: 85vw; 
    height: 100%;
    padding: 60px 20px 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%); /* Изначально меню спрятано за правым краем */
    transition: transform 0.3s ease;
    position: relative;
}

.mobile-nav-overlay.active .mobile-nav-content { 
    transform: translateX(0); /* При открытии выезжает */
}
.mobile-nav-content a { font-size: 1.2rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.mobile-nav-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 32px; cursor: pointer; color: var(--text); line-height: 1;
}

/* ===== 4. СЕКЦИИ И СТАТУС ===== */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-title { font-size: 2rem; margin-bottom: 32px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }

.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 0.85rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

.status-bar .badge {
    padding: 4px 10px;
    font-size: 0.8rem;
}
.status-bar .status-text {
    color: #666;
    font-weight: 500;
    min-width: 0;
    overflow-wrap: break-word;
}
.badge { padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; }
.badge.open { background: #d4f8d4; color: #1b7a1b; }
.badge.closed { background: #ffe0e0; color: #000; }
.status-text { color: #666; }

/* ===== 5. АКЦИИ (баннер-слайдер) ===== */
.promo-banner-section {
    padding: 20px 0 0;
    background: var(--bg);
}

.promo-banner-slider {
    position: relative;
    width: 100%;
}

/* --- ПК: 3 карточки в ряд --- */
@media (min-width: 993px) {
    .promo-banner-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px; /* чтобы скроллбар не наезжал на карточки */
    }
    
    /* Прячем стандартный скроллбар, но оставляем прокрутку */
    .promo-banner-track::-webkit-scrollbar {
        height: 6px;
    }
    .promo-banner-track::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
    }
    .promo-banner-track::-webkit-scrollbar-track {
        background: transparent;
    }

    .promo-banner-slide {
        flex: 0 0 calc(33.333% - 11px); /* 3 карточки в ряд */
        scroll-snap-align: start;
        position: relative;
        height: 200px;
        border-radius: var(--radius);
        overflow: hidden;
        background: #3E2723;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        cursor: pointer;
        opacity: 0.82;
        transform: scale(0.98);
        transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
        box-shadow: var(--shadow);
    }

    .promo-banner-slide.is-active {
        opacity: 1;
        transform: scale(1);
        box-shadow: var(--shadow-hover);
    }

    .promo-banner-slide:hover {
        opacity: 1;
    }

    .promo-banner-dots {
        display: none;
    }
}

/* --- Мобилка: один слайд, без стрелок, свайп + точки --- */
@media (max-width: 992px) {
    .promo-banner-track {
        position: relative;
        width: 100%;
        height: 170px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
        background: #3E2723;
    }

    .promo-banner-slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
    }

    .promo-banner-slide.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .promo-banner-dots {
        position: absolute;
        bottom: 8px;
        right: 12px;
        display: flex;
        gap: 8px;
        z-index: 3;
    }
}

/* --- Общее --- */
.promo-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #5E8C2E 0%, #FF7E19 100%);
    color: #fff;
}

.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.38) 45%,
        rgba(0, 0, 0, 0.08) 100%
    );
    pointer-events: none;
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    padding: 18px 20px 20px;
    width: 100%;
    color: #fff;
}

.promo-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 6px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-banner-text {
    font-size: 0.88rem;
    line-height: 1.35;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.promo-banner-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}
.promo-banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .promo-banner-section { padding: 14px 0 0; }
    .promo-banner-track { height: 150px; }
    .promo-banner-content { padding: 14px 16px 16px; }
    .promo-banner-title { font-size: 1rem; margin-bottom: 4px; }
    .promo-banner-text { font-size: 0.8rem; -webkit-line-clamp: 1; }

    .dish-img-wrap img { height: 140px; }
    .dish-placeholder {
        height: 140px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .promo-banner-track { height: 140px; }
    .promo-banner-title { font-size: 0.92rem; }
    .promo-banner-text { font-size: 0.76rem; }
}

/* ===== 6. МЕНЮ ===== */
.menu-section { padding-top: 5px; padding-bottom: 40px; }
.menu-layout {
    display: grid;
    grid-template-columns: 260px 1fr; /* Ширина меню 260px */
    gap: 40px;
    align-items: start;
}

.menu-sidebar {
    background: transparent; /* Убираем белый фон */
    box-shadow: none;
}

.menu-sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 25px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 15px;
}
.menu-categories {
    display: flex;
    gap: 5px;
    flex-direction: column;
    padding-bottom: 6px;
}

.menu-categories .chip {
    display: inline-flex;
    align-items: center;
    width: auto !important;
    max-width: 100%;
    flex: 0 0 auto;
    white-space: nowrap;
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text);
}

.category-block { margin-bottom: 40px; scroll-margin-top: 100px; }
.category-title {
    font-size: 2.5rem; /* Огромный жирный шрифт */
    font-weight: 900;
    color: var(--text);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.category-block .dish-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));  
    gap: 20px;
}

.dish-card {
    background: transparent;          /* карточка больше не белая целиком */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dish-body { flex: 1; display: flex; flex-direction: column; }

.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.dish-img-wrap {
    position: relative;
    width: 100%;
    background: #f9f9f9;
    border-radius: 16px;             /* только фото скруглено */
    overflow: hidden;
}

.dish-img-wrap img
{
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.dish-placeholder {
    height: 200px;
    background: var(--bg);
    display: flex;
    align-items: center;         /* по центру */
    justify-content: center;     /* по центру */
    font-size: 2.5rem;           /* нормальный размер иконки */
    color: #c9b8a8;
    border-radius: 16px;         /* как у .dish-img-wrap img */
    box-sizing: border-box;
    overflow: hidden;
}
.tag-popular {
    position: absolute;
    top: 0;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
}
.dish-body {
    background: rgba(255, 255, 255, 0.7); /* Полупрозрачный белый */
    backdrop-filter: blur(12px);         /* Размытие того, что позади */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6); /* Тонкая светлая рамка */
    border-radius: 16px;
    margin-top: -12px;
    padding: 18px 16px 16px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover .dish-body {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 126, 25, 0.15);
}

.dish-info-row {
    display: flex;
    justify-content: space-between; /* Раздвигаем по краям */
    align-items: flex-end; /* Прижимаем к низу */
    gap: 10px;
}
.dish-info-row h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    color: var(--text);
    flex: 1;
    min-width: 0;       
    overflow-wrap: break-word;
}

.category-title,
.subcategory-title,
.section-title {
    overflow-wrap: break-word;
    word-break: break-word;
}

html, body {
    width: 100%;
    max-width: 100%;
}

/* Колонка с ценой и кнопкой */
.dish-action-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Выравниваем по правому краю */
    gap: 6px;
    flex-shrink: 0; /* Чтобы не сжималось */
}

.dish-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.3;
    color: var(--text);
}

.dish-desc {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-meta-row {
    font-size: 0.72rem;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dish-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 10px;
}
.dish-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text);
}
.desc { color: #666; font-size: 0.92rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column; /* Цена над кнопкой или в ряд */
    gap: 10px;
    align-items: center;
}
.price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text);
    white-space: nowrap;
}
.btn-call-card {
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ===== ИСТОРИИ (STORY MODAL) ===== */
.story-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.story-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.story-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Ширина как у телефона */
    height: 80vh;
    max-height: 700px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.story-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.story-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-text {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    text-align: center;
}
.story-text h3 { font-size: 1.4rem; margin-bottom: 8px; }
.story-text p { font-size: 0.95rem; opacity: 0.9; }

/* Полоски прогресса */
.story-progress {
    position: absolute;
    top: 10px; left: 10px; right: 10px;
    height: 3px;
    display: flex; 
    background: rgba(255,255,255,0.3);
    z-index: 10;
    gap: 4px;
    border-radius: 2px;
}

.story-progress-track {
    background: rgba(255, 255, 255, 0.3); /* Серый фон (пустая часть) */
    height: 100%;
    border-radius: 2px;
    overflow: hidden; /* Чтобы заливка не вылезала */
}
.story-progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    border-radius: 2px;
}

.story-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    color: #fff; font-size: 30px;
    cursor: pointer; z-index: 20;
}

/* Зоны навигации */
.story-nav {
    position: absolute;
    top: 0; height: 100%;
    width: 50%;
    z-index: 15;
    cursor: pointer;
}
.story-prev { left: 0; }
.story-next { right: 0; }

.btn-call-card:hover {
    background: var(--accent);
}

/* ===== 7. МОДАЛЬНЫЕ ОКНА ===== */
.search-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 15vh 20px 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.search-modal-overlay.active { opacity: 1; pointer-events: auto; }
.search-modal-content {
    background: #fff; padding: 30px; border-radius: var(--radius);
    width: 100%; max-width: 600px; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative; transform: translateY(-20px); transition: transform 0.3s ease;
}
.search-modal-overlay.active .search-modal-content { transform: translateY(0); }
.search-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 28px; cursor: pointer; color: #999; }
.search-close:hover { color: var(--accent); }
.search-modal-content input { width: 100%; padding: 15px 20px; border: 2px solid var(--border); border-radius: 10px; font-size: 18px; outline: none; }
.search-modal-content input:focus { border-color: var(--primary); }


/* ===== 8. О НАС, ШАГИ, ДОСТАВКА ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "title  photo"
        "text   photo";
    grid-template-rows: auto 1fr;
    gap: 8px 40px;
    align-items: start;
}

.about-title {
    grid-area: title;
    margin-bottom: 0;
}

.about-text {
    grid-area: text;
    min-width: 0;
}

.about-photo {
    grid-area: photo;
    align-self: center;
    min-width: 0;
}

.about-text p {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 1.05rem;
}


.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { background: #fff; padding: 28px 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--primary); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; margin: 0 auto 16px; }
.step h3 { margin-bottom: 8px; color: var(--text); }

.menu-sidebar-sticky {
    position: sticky;
    top: 90px; /* Отступ от шапки сайта */
    z-index: 80;
    background: transparent; /* Прозрачный фон, как в БК */
}

.menu-layout,
.menu-content,
.menu-sidebar-sticky {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


.contacts-grid, .delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--border); }
.map-embed iframe { display: block; }
.list { padding-left: 20px; }
.list li { margin-bottom: 10px; }

/* ===== 9. ФУТЕР ===== */
.site-footer { background: #3E2723; color: #f1e4da; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 48px 20px 24px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #f6c9b3; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 6px; }
.footer-bottom { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #c4b0a6; text-align: center; }

/* ===== 10. FLASH-СООБЩЕНИЯ ===== */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-size: 0.95rem; }
.flash-success { background: #d4f8d4; color: #1b7a1b; }
.flash-error { background: #ffe0e0; color: var(--accent); }


#menu-categories.expanded {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;

}
/* ===== 11. АДМИНКА ===== */
.admin-login { max-width: 400px; margin: 0 auto; background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-login h2 { margin-bottom: 20px; }
.admin-login label { display: block; margin-bottom: 14px; }
.admin-login input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; margin-top: 4px; font-size: 15px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; overflow-x: auto; }
.admin-card h3 { margin-bottom: 16px; color: var(--accent); }
.admin-form { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.admin-form label { display: flex; flex-direction: column; font-size: 14px; gap: 4px; }
.admin-form input, .admin-form textarea { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; }
.admin-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { background: var(--bg); }
.inline-form { display: grid; gap: 6px; }
.inline-form input { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.inline-form button { justify-self: start; }
.admin-list { list-style: none; margin-top: 16px; }
.admin-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
details > summary { list-style: none; cursor: pointer; display: inline-block; margin-bottom: 16px; }
details[open] > summary { margin-bottom: 20px; }

/* ===== 12. STICKY-КНОПКА ЗВОНКА ===== */
.sticky-call {
    display: none; position: fixed; bottom: 20px; right: 20px;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 26px; text-align: center; line-height: 60px;
    box-shadow: 0 6px 20px rgba(201, 106, 59, 0.5);
    z-index: 200; animation: pulse 2s infinite;
    align-items: center; justify-content: center;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ===== 13. АДАПТИВ ===== */
@media (max-width: 992px) {
    /* Прячем десктопное меню, показываем бургер */
    .desktop-nav,
    .nav:not(.mobile-nav-content .nav) { display: none !important; }
    .mobile-menu-toggle { display: block; }
    .desktop-call { display: none; }

    /* Меню: одна колонка */
    .menu-layout {
        display: block;          /* было grid */
        gap: 0;
    }

    .menu-categories.is-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding: 4px 0;
        background: var(--bg);
    }
    .menu-categories.is-carousel::-webkit-scrollbar { display: none; }

    .menu-categories.is-carousel .chip {
        flex: 0 0 auto !important;
        white-space: nowrap;
    }
    .menu-categories.is-carousel .chip-toggle {
        display: none !important;
    }
    
    .menu-sidebar-sticky {
        position: sticky;
        top: var(--header-h);   
        background: var(--bg); 
        z-index: 79;
        padding: 4px 0;
        margin: 0 0 12px 0;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
    }
    .menu-subcategories-sticky {
        top: var(--header-h);
    }
    .menu-content { margin-top: 20px; }
    .menu-sidebar {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        border: none;
        overflow: visible;
    }
    .menu-categories {
        display: flex;
        flex-direction: row; /* Обязательно row */
        flex-wrap: wrap;     /* Обязательно wrap */
        align-content: flex-start;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        padding: 0;
        width: 100%;
        max-width: 100%;
        background: transparent;
        border: none;
    }

    .menu-categories.expanded {
        max-height: none;
        overflow: visible;
    }   
    .menu-categories::-webkit-scrollbar { display: none; }
    
        .menu-categories .chip {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        width: auto !important;
        max-width: 100%;
        flex: 0 0 auto;
        white-space: nowrap;
        border: 4px solid var(--border);
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        border-radius: 20px;
        color: var(--text);
        -webkit-tap-highlight-color: transparent;
        transition: none;
    }

    .menu-categories .chip-toggle {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        padding: 6px 8px;
    }
    .menu-categories .chip::before {
        font-size: 1.2rem;
        margin-right: 8px;
    }
    
    .menu-categories .chip.active {
        border-color: var(--text);
        background: #fff;
        color: var(--text);
    }

    .category-block .dish-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));  
    }

    .contacts-grid, .delivery-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: nowrap; }
}



@media (max-width: 768px) {
    .header-contact { gap: 8px; }
    .contact-info { display: none; }
    .logo-img { height: 32px; }
    .logo-text { font-size: 1.15rem; }

    .header-inner {
        padding: 10px 0; 
        gap: 12px;
    }

    /* Акции — одна карточка */
    .promo-slide { width: 80px; min-width: 80px; }

    .status-bar {
        flex-wrap: wrap;          /* пусть переносится, если не влезает */
        gap: 6px;
        margin: 4px 0;
        padding: 0 0 4px;
    }
    .status-dayoff {
        color: var(--text);
        font-weight: 600;
    }
    .status-bar .badge {
        padding: 2px 8px;
        font-size: 0.72rem;
        flex-shrink: 0;
    }
    .status-bar .status-text {
        display: inline;          /* ← НЕ прячем */
        font-size: 0.78rem;
        color: #666;
    }
    .status-now {
        display: none;            /* ← прячем только «Сейчас HH:MM» */
    }

    /* Карточки блюд — 2 в ряд */
    .menu-content { width: 100%; min-width: 0; }
    .category-block .dish-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .dish-title { font-size: 0.92rem; }
    .dish-desc { font-size: 0.74rem; -webkit-line-clamp: 2; }
    .dish-meta-row { font-size: 0.68rem; margin-bottom: 8px; }
    .dish-body h3 { font-size: 1rem; }
    .desc { font-size: 0.82rem; }
    .price { font-size: 1.05rem; }
    .btn-call-card { padding: 6px 10px; font-size: 0.8rem; }
    .dish-footer { gap: 6px; }
    .btn-call-card { padding: 6px 10px; font-size: 0.75rem; }

    /* Показываем sticky-кнопку звонка */
    .sticky-call { display: flex; }

    .section { padding: 40px 0; }
    .section-title { font-size: 1.6rem; }
    .category-title { font-size: 1.8rem; }

    .admin-table { font-size: 12px; display: block; overflow-x: auto; }
    .inline-form { display: block; }

    .promo-carousel {
        gap: 15px;
        justify-content: flex-start;
        min-width: 0;
    }

    .promo-carousel { gap: 15px; justify-content: flex-start; }
    .promo-slide { width: 90px; min-width: 90px; }
    .promo-slide img, 
    .promo-slide .promo-placeholder {
        width: 80px;  /* Размер кружка ~80% от высоты блока (высота блока ~90px) */
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.3);
        margin-bottom: 4px; /* Минимальный отступ до текста */
        background: #fff;
    }
    .promo-slide .promo-body h3 { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    /* НЕ переводим в одну колонку — оставляем 2 */
    .category-block .dish-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dish-img-wrap img { height: 130px; }
    .dish-placeholder {
        height: 130px;
        font-size: 1.8rem;
    }

    .dish-body { padding: 10px 8px 8px; }
    .dish-title { font-size: 0.85rem; }
    .dish-desc { font-size: 0.68rem; }
    .dish-meta-row { font-size: 0.62rem; }
    .dish-body h3 { font-size: 0.92rem; }
    .desc { font-size: 0.78rem; -webkit-line-clamp: 2; }
    .price { font-size: 0.92rem; }
    .btn-call-card { padding: 5px 8px; font-size: 0.7rem; }

    .category-block .dish-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 10px;
    }
}

/* ===== ПОИСК (ПК строка под шапкой) ===== */
.header-search-bar {
    position: relative;          /* в потоке шапки */
    display: none;
    align-items: center;
    width: 0;                    /* свернуто */
    overflow: visible;
    transition: width 0.25s ease;
}

.header-search-bar.active {
    display: flex;
    width: 280px;                /* ширина раскрытой строки */
}

.header-search-bar .container { position: relative; }
.header-search-bar input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.header-search-bar input:focus {
    border-color: var(--primary);
}
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 320px;            /* чтобы дропдаун был шире узкой строки */
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 100;
}

.search-results-dropdown.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}
.search-result-item:hover { background: var(--bg); }
.search-result-item img {
    width: 40px; height: 40px;
    border-radius: 8px;
    object-fit: cover;
}
.search-result-item .info h4 { margin: 0; font-size: 14px; }
.search-result-item .info span { font-size: 13px; color: var(--primary); font-weight: bold; }

/* ===== ПОИСК (Мобилка - на весь экран) ===== */
.mobile-search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.mobile-search-overlay.active { transform: translateY(0); }
.mobile-search-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    gap: 15px;
}
.mobile-search-header input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
}
.mobile-search-close {
    background: none; border: none; font-size: 28px; color: var(--text); cursor: pointer;
}
.mobile-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
}
.mobile-search-results .search-result-item {
    padding: 15px 0;
}

@media (min-width: 993px) {
    .mobile-search-overlay { display: none !important; }
}

/* ===== КНОПКА ВВЕРХ ===== */
.scroll-top-btn {
    display: none; /* Скрыта по умолчанию */
    position: fixed;
    bottom: 90px; /* Чуть выше кнопки звонка */
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 200;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.scroll-top-btn:hover {
    background: var(--bg);
    color: var(--primary);
}
.scroll-top-btn.visible {
    display: flex; /* Показываем, когда проскроллили */
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 90px;
        right: 25px;
        width: 45px;
        height: 45px;
    }
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ
   (reviews, contacts, delivery, privacy и общие элементы)
   ============================================================ */

/* ===== Общие вспомогательные классы ===== */
.lead {
    font-size: 1.1rem;
    color: #5a5a5a;
    margin-bottom: 28px;
    max-width: 720px;
    line-height: 1.65;
}

.section > h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

/* Кнопки-ссылки внутри контента */
.section .btn {
    margin-top: 8px;
}

/* ===== Страница «Отзывы» ===== */
.reviews-page .map-embed {
    margin-top: 8px;
}

/* iframe отзывов Яндекса — адаптивная высота */
.map-embed iframe {
    display: block;
    width: 100%;
    border: 0;
    min-height: 400px;
}

@media (max-width: 768px) {
    .map-embed iframe {
        min-height: 480px;
        height: 60vh;
    }
}

/* ===== Страница «Контакты» ===== */
.contacts-grid {
    align-items: start;
}

.contacts-grid > div:first-child {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px;
    border: 1px solid var(--border);
}

.contacts-grid > div:first-child p {
    margin-bottom: 14px;
    font-size: 1.02rem;
    line-height: 1.55;
    word-break: break-word;
}

.contacts-grid > div:first-child p:last-of-type {
    margin-bottom: 22px;
}

.contacts-grid > div:first-child a:not(.btn) {
    font-weight: 600;
    color: var(--primary);
    transition: color .2s;
}

.contacts-grid > div:first-child a:not(.btn):hover {
    color: var(--accent);
    text-decoration: underline;
}

.contacts-grid .btn-primary {
    display: inline-block;
    padding: 12px 26px;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(201, 106, 59, 0.25);
}

.contacts-grid .btn-primary:hover {
    box-shadow: var(--shadow-hover);
}

/* ===== Страница «Доставка» ===== */
.delivery-grid {
    align-items: start;
}

.delivery-info-text {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px;
    border: 1px solid var(--border);
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text);
}

.delivery-info-text p {
    margin-bottom: 12px;
}

.delivery-info-text p:last-child {
    margin-bottom: 0;
}

.delivery-info-text strong {
    color: var(--accent);
}

.delivery-grid .map-embed {
    height: 100%;
}

.delivery-grid .map-embed iframe {
    min-height: 400px;
}

/* Кнопка заказа доставки */
.delivery-page > p:last-of-type {
    text-align: center;
    margin-top: 40px !important;
}

.delivery-page .btn-primary {
    padding: 14px 40px;
    font-size: 1.05rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(201, 106, 59, 0.28);
}

.delivery-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .delivery-page .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }

    .delivery-page > p:last-of-type {
        margin-top: 28px !important;
    }
}

/* ===== Страница «Политика конфиденциальности» ===== */
.prose {
    max-width: 820px;
}

.prose h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.4px;
}

.prose h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 28px 0 10px;
}

.prose p {
    margin-bottom: 14px;
    color: var(--text);
    line-height: 1.7;
}

.prose a {
    color: var(--primary);
    font-weight: 600;
}

.prose a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== Общие улучшения для внутренних страниц ===== */

/* Заголовок секции с подчёркиванием для акцента */
.section-title {
    position: relative;
}

/* Плавное появление контента страницы */
.section {
    animation: fadeInUp 0.35s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Карта — общий стиль для всех страниц */
.map-embed {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
}

.map-embed--reviews {
    height: 800px;
}

.map-embed--reviews iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* Для карты зон: адаптивная пропорция */
.map-embed--zone {
    aspect-ratio: 4 / 3;
}

.map-embed--zone iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .map-embed--reviews {
        height: 500px;          /* было 800 — слишком много на телефоне */
    }
    .map-embed--zone {
        aspect-ratio: 1 / 1;    /* квадрат лучше смотрится на телефоне */
    }
}

@media (max-width: 480px) {
    .map-embed--reviews {
        height: 420px;
    }
}

.map-embed__link {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 16px;
    text-align: center;
    font-size: 10px;
    font-family: "YS Text", sans-serif;
    color: #b3b3b3;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.85);
}


/* ===== Адаптив для внутренних страниц ===== */
@media (max-width: 992px) {
    .contacts-grid > div:first-child,
    .delivery-info-text {
        padding: 22px 20px;
    }
}

@media (max-width: 768px) {
    .lead {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .section > h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .contacts-grid > div:first-child,
    .delivery-info-text {
        padding: 20px 18px;
        border-radius: 12px;
    }

    .contacts-grid > div:first-child p {
        font-size: 0.96rem;
        margin-bottom: 12px;
    }

    .delivery-info-text {
        font-size: 0.96rem;
    }

    .prose h2 {
        font-size: 1.45rem;
    }

    .prose h3 {
        font-size: 1.08rem;
        margin-top: 22px;
    }

    .prose p {
        font-size: 0.95rem;
    }

    /* Кнопка «Позвонить» на контактах — во всю ширину */
    .contacts-grid > div:first-child .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .map-embed iframe {
        min-height: 320px;
    }

    .contacts-grid > div:first-child,
    .delivery-info-text {
        padding: 16px 14px;
    }
}

@media (max-width: 992px) {
    .sticky-call { display: flex; }
}

/* ===== ПОДКАТЕГОРИИ (sticky) ===== */
:root {
    /* Высота шапки + панели категорий (мобилка). Меняется в медиазапросах. */
    --menu-sticky-offset: 90px;
}

.category-block .subcategory-title {
    /* Прилипает под шапкой; на мобилке ниже — под чипами категорий */
    top: var(--menu-sticky-offset);
    z-index: 20;

    /* Визуал */
    display: inline-block;
    margin: 32px 0 18px 0;
    padding: 5px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    background: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(43, 43, 43, 0.06);
    border-radius: 25px;
}

.category-block > .subcategory-title:first-of-type {
    margin-top: 8px;
    padding: 5px 10px;
}

/* Чтобы sticky-подзаголовок не «прыгал», когда к нему скроллят по якорю */
.category-block .subcategory-title {
    scroll-margin-top: calc(var(--menu-sticky-offset) + 20px);
}

/* Мобилка: учитываем и шапку, и sticky-панель категорий */
@media (max-width: 992px) {
    :root { --menu-sticky-offset: 130px; }

    .category-block .subcategory-title {
        margin: 24px 0 14px 0;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    :root { --menu-sticky-offset: 120px; }
}

@media (max-width: 768px) {
    .category-block .subcategory-title {
        margin: 20px 0 12px 0;
        font-size: 0.95rem;
        padding: 10px;
    }
}

html, body {
    overflow-x: clip; 
}
.menu-content,
.dish-body,
.dish-info-row h3 {
    min-width: 0;
}

.dish-card,
.dish-body,
.dish-img-wrap {
    min-width: 0;
    max-width: 100%;
}

.dish-info-row h3,
.dish-title {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== КАРУСЕЛЬ ПОДКАТЕГОРИЙ (мобилка, под категориями) ===== */
.menu-subcategories {
    display: none;
    gap: 6px;
    padding: 8px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg);
}
.menu-subcategories::-webkit-scrollbar { display: none; }

.menu-subcategories.visible {
    display: flex;
}

.menu-subcategories .chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start; 
    height: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    border: 4px solid var(--border);
    cursor: pointer;
    transition: none;
    -webkit-tap-highlight-color: transparent;
}
.menu-subcategories .chip.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

/* hover только для мыши */
@media (hover: hover) and (pointer: fine) {
    .menu-subcategories .chip:hover {
        border-color: var(--text);
        color: var(--text);
    }
    .menu-subcategories .chip.active:hover {
        background: var(--text);
        color: #fff;
        border-color: var(--text);
    }
}

/* На десктопе карусель подкатегорий не нужна */

/* ==== ТАЧ-УСТРОЙСТВА: гасим hover/active/focus у чипов ==== */
@media (hover: none) {
    .menu-categories .chip:hover,
    .menu-categories .chip:focus,
    .menu-categories .chip:active {
        background: #fff;
        color: var(--text);
        border-color: var(--border);
        outline: none;
    }
    .menu-categories .chip.active:hover,
    .menu-categories .chip.active:focus,
    .menu-categories .chip.active:active {
        background: #fff;
        color: var(--text);
        border-color: var(--text);
        outline: none;
    }
    .menu-subcategories .chip:hover,
    .menu-subcategories .chip:focus,
    .menu-subcategories .chip:active {
        background: #fff;
        color: var(--text);
        border-color: var(--border);
        outline: none;
    }
    .menu-subcategories .chip.active:hover,
    .menu-subcategories .chip.active:focus,
    .menu-subcategories .chip.active:active {
        background: var(--text);
        color: #fff;
        border-color: var(--text);
        outline: none;
    }
}

/* Sticky-обёртка подкарусели на ПК и мобилке */
.menu-subcategories-sticky {
    position: sticky;
    top: 74px;              /* высота шапки сайта */
    z-index: auto;
    background: transparent;
    padding: 0;
}

/* На ПК — компенсируем отступ сайдбара: подкарусель над контентом */
@media (min-width: 993px) {
    .menu-subcategories-sticky {
        top: 74px;
        margin-bottom: 12px;
    }
}

@media (min-width: 993px) {
    .menu-layout {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "sidebar subs"
            "sidebar content";
        gap: 0 40px;
        align-items: start;
    }
    .menu-sidebar-sticky {
        grid-area: sidebar;
        position: sticky;
        top: 90px;
    }
    .menu-subcategories-sticky {
        grid-area: subs;
        position: sticky;
        top: 90px;
        z-index: 10;
        background: transparent;
        padding-bottom: 8px;
        margin-bottom: 0;
        min-width: 0;
    }
    .menu-content {
        grid-area: content;
        min-width: 0;
    }
}

/* ===== Граммовка в карточке блюда ===== */
.dish-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.dish-weight {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .dish-weight {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .footer-grid{
        padding:  20px;
    }
    .category-block .dish-grid { gap: 8px; }

    .dish-body { padding: 8px 8px 10px; }
    .dish-title { font-size: 0.88rem; }
    .dish-desc  { font-size: 0.7rem; -webkit-line-clamp: 2; }
    .price      { font-size: 0.98rem; }
    .btn-call-card { padding: 5px 8px; font-size: 0.74rem; }
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — РАСШИРЕННЫЕ СТИЛИ
   (contacts, delivery, reviews, privacy, login, admin-login)
   ============================================================ */

/* ===== Общий фон и «шапка» внутренней страницы ===== */
.section > .section-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 28px;
}

/* ===== КАРТОЧКИ-БЛОКИ ===== */
.info-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 28px 26px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

/* ===== СТРАНИЦА «КОНТАКТЫ» ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.contacts-grid > div:first-child {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 32px 30px;
    position: relative;
    overflow: hidden;
}

/* Акцентная полоска сверху карточки контактов */
.contacts-grid > div:first-child::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.02rem;
    line-height: 1.5;
}

.contact-row:last-of-type {
    border-bottom: none;
}

.contact-row .contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.contact-row .contact-body {
    min-width: 0;
    flex: 1;
}

.contact-row .contact-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 2px;
}

.contact-row .contact-value {
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.contact-row .contact-value a {
    color: var(--primary);
    font-weight: 600;
}

.contact-row .contact-value a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contacts-grid .btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding: 14px 26px;
    font-size: 1.02rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(255, 126, 25, 0.28);
}

.contacts-grid .btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.contacts-grid .map-embed {
    min-height: 100%;
    display: flex;
}

.contacts-grid .map-embed iframe {
    flex: 1;
    min-height: 460px;
}

/* ===== СТРАНИЦА «ДОСТАВКА» ===== */
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: stretch;
}

.delivery-info-text {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 30px 28px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.delivery-info-text::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.delivery-info-text p {
    margin-bottom: 14px;
}

.delivery-info-text p:last-child {
    margin-bottom: 0;
}

.delivery-info-text strong {
    color: var(--accent);
    font-weight: 800;
}

.delivery-grid .map-embed {
    height: 100%;
    display: flex;
}

.delivery-grid .map-embed iframe {
    flex: 1;
    min-height: 460px;
}

/* Кнопка заказа доставки */
.delivery-page .btn-primary {
    padding: 15px 44px;
    font-size: 1.06rem;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(255, 126, 25, 0.3);
}

.delivery-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.delivery-page > p:last-of-type {
    text-align: center;
    margin-top: 40px;
}

/* ===== СТРАНИЦА «ОТЗЫВЫ» ===== */
.reviews-page .lead {
    font-size: 1.12rem;
    color: #5a5a5a;
    margin-bottom: 24px;
    max-width: 760px;
    line-height: 1.65;
}

.reviews-page .map-embed {
    margin-top: 8px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.reviews-page .map-embed iframe {
    min-height: 600px;
}

/* ===== СТРАНИЦА «ПОЛИТИКА» ===== */
.prose {
    max-width: 860px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 40px 44px;
    position: relative;
    overflow: hidden;
}

.prose::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.prose h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.prose h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    margin: 30px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prose h3::before {
    content: '';
    width: 6px;
    height: 22px;
    border-radius: 3px;
    background: var(--primary);
    flex-shrink: 0;
}

.prose p {
    margin-bottom: 14px;
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
}

.prose a {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px dashed rgba(255, 126, 25, 0.5);
    transition: color .2s, border-color .2s;
}

.prose a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ===== СТРАНИЦА «ВХОД В АДМИНКУ» ===== */
.admin-login {
    max-width: 440px;
    margin: 40px auto;
    background: #fff;
    padding: 36px 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.admin-login::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.admin-login h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--text);
    letter-spacing: -0.3px;
}

.admin-login label {
    display: block;
    margin-bottom: 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #666;
}

.admin-login input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    margin-top: 6px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.admin-login input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 126, 25, 0.12);
}

.admin-login .btn-primary {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    font-size: 1.02rem;
    border-radius: 10px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .contacts-grid,
    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contacts-grid .map-embed iframe,
    .delivery-grid .map-embed iframe {
        min-height: 360px;
    }

    .prose {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .contacts-grid > div:first-child,
    .delivery-info-text,
    .info-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .contacts-grid .btn-primary {
        width: 100%;
        text-align: center;
    }

    .prose {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .prose h2 {
        font-size: 1.45rem;
    }

    .prose h3 {
        font-size: 1.08rem;
        margin-top: 24px;
    }

    .prose p {
        font-size: 0.95rem;
    }

    .reviews-page .map-embed iframe {
        min-height: 480px;
        height: 60vh;
    }

    .contacts-grid .map-embed iframe,
    .delivery-grid .map-embed iframe {
        min-height: 320px;
    }

    .admin-login {
        margin: 20px auto;
        padding: 26px 20px;
    }
}

@media (max-width: 480px) {
    .contacts-grid .map-embed iframe,
    .delivery-grid .map-embed iframe {
        min-height: 280px;
    }

    .prose {
        padding: 18px 14px;
    }

    .contact-row .contact-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}

/* ===== 7. МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.modal-close:hover { color: var(--accent); }

/* Ручка для свайпа — видна только на мобилке */
.modal-drag-handle { display: none; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ МОБИЛКА: BOTTOM-SHEET ============ */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;      /* прижимаем к низу */
        justify-content: stretch;
        padding: 0;
        background: rgba(0,0,0,0.55);
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: calc(100vh - 60px);   /* сверху зазор 60px */
        border-radius: 24px 24px 0 0;     /* закруглены только сверху */
        padding: 0;                       /* padding будет внутри .modal-body */
        animation: sheetUp 0.3s ease;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        touch-action: pan-y;              /* вертикальный скролл + свайп */
        will-change: transform;
    }

    .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 20px;
        flex: 1;
    }

    /* «Ручка» сверху */
    .modal-drag-handle {
        display: block;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 5px;
        border-radius: 3px;
        background: rgba(255,255,255,0.85);
        z-index: 12;
        pointer-events: none;
        box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    }

    .modal-close {
        top: 10px;
        right: 10px;
        color: #fff;
        background: rgba(0,0,0,0.45);
        box-shadow: none;
        backdrop-filter: blur(4px);
    }
    .modal-close:hover { color: #fff; }

    /* Анимация выезда снизу */
    @keyframes sheetUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
}

/* Класс «свайпается вниз» — добавляет JS при drag */
.modal-content.dragging {
    transition: none !important;
}
.modal-content.dismissing {
    transition: transform 0.25s ease-out !important;
    transform: translateY(100%) !important;
}

/* --- Контент карточки блюда в модалке --- */
.dish-modal-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--bg);
    border-radius: 0;
}

.dish-modal-photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #c9b8a8;
}

/* Отступы внутри контента */
.dish-modal-info {
    padding: 24px 20px 10px;
}

/* Заголовок */
.dish-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 10px;
    overflow-wrap: break-word;
}

/* Мета-данные (вес, количество) */
.dish-modal-meta {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 6px;
}

/* Описание (основной текст) */
.dish-modal-desc {
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 20px;
    white-space: pre-line;
}

/* Состав — убираем фон, делаем минималистично */
.dish-modal-composition {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px;
    padding: 0; /* убрали внутренние отступы */
    background: transparent; /* убрали серый фон */
    border-radius: 0;
    white-space: pre-line;
    border-top: 1px solid var(--border); /* аккуратная линия сверху для разделения */
    padding-top: 16px;
}

.dish-modal-composition strong {
    color: var(--text);
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Кнопки внизу */
.dish-modal-actions {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dish-modal-actions .btn-primary {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1rem;
    border-radius: 12px;
    font-weight: 700;
}

.dish-modal-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 6px;
    text-align: center; /* Цена по центру, для аккуратности */
}

/* На ПК — чуть компактнее, фото не квадратное во весь экран */
@media (min-width: 769px) {
    .dish-modal-photo,
    .dish-modal-photo-placeholder {
        aspect-ratio: 16 / 10;
        border-radius: 12px;
        margin: 10px 10px 0; /* Чуть отступа от краев */
        width: calc(100% - 20px);
    }
    .dish-modal-info { padding: 20px 24px 10px; }
    .dish-modal-actions { padding: 0 24px 24px; }
}

.about-photo .interior-image {
    width: 100%;
    height: 320px;
    object-fit: cover; /* Чтобы фото не искажалось, а обрезалось по краям */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

/* ===== НОВЫЙ ДИЗАЙН ДОСТАВКИ ===== */
.delivery-info-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.delivery-info-text {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.delivery-info-text::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.delivery-info-text p {
    margin-bottom: 16px;
}

.delivery-info-text p:last-child {
    margin-bottom: 0;
}

.delivery-info-text strong {
    color: var(--accent);
    font-weight: 800;
}

.delivery-cta {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .delivery-info-text {
        padding: 24px 20px;
        font-size: 1rem;
    }
    .delivery-cta .btn-primary {
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .interior-carousel {
        height: 200px;           
    }

    .interior-img {
        padding: 4px;
    }
}

/* ===== КАРУСЕЛЬ ФОТО ИНТЕРЬЕРА ===== */
.interior-carousel {
    width: 100%;
    height: 380px;
    border-radius: 16px; 
    overflow: hidden;
    position: relative;
    background: transparent; 
}
.interior-carousel:active {
    cursor: grabbing;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "photo"
            "text";
        grid-template-rows: auto auto auto;
        gap: 16px 0;
    }

    .about-title {
        margin-bottom: 0;
    }

    .about-photo {
        align-self: stretch;
    }
}

.interior-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
}

.interior-track::-webkit-scrollbar {
    display: none; 
}


.interior-img {
    flex: 0 0 100%;
    height: 100%;
    object-fit: contain; 
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .interior-carousel {
        height: 240px;
    }

    .interior-img {
        padding: 6px;           
        background: var(--bg);  
        object-fit: contain;
    }
}

/* Сетка для фото в админке */
.admin-interior-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.admin-interior-item {
    background: var(--bg);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-interior-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Контейнер для точек */
.interior-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4); /* Темная подложка, чтобы точки были видны на любом фото */
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Сами кружочки */
.interior-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4); /* Полупрозрачные белые */
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

/* Активный кружочек */
.interior-dot.is-active {
    background: #fff; /* Белый */
    transform: scale(1.3); /* Чуть больше остальных */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); /* Легкое свечение */
}

/* Убираем старую пульсацию, если была */
@media (max-width: 768px) {
    .interior-btn, .interior-hint { 
        display: none; 
    }
}

/* ===== СТАТУС МАНДАРИН ===== */
.status-mandarin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-mandarin svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Когда открыто — пульсирует */
.status-mandarin.open {
    animation: mandarin-glow 2.5s infinite ease-in-out;
}

@keyframes mandarin-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 126, 25, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px 4px rgba(255, 126, 25, 0.3);
        transform: scale(1.1);
    }
}

/* Когда закрыто — приглушенный */
.status-mandarin.closed {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.status-mandarin.closed:hover {
    opacity: 1;
}

/* ===== Активный чип категории (ПК) ===== */
@media (min-width: 993px) {
    .menu-categories .chip {
        position: relative;
        text-align: left;
        justify-content: flex-start;
        padding-left: 18px;          /* место под полоску */
        border-radius: 10px;
        transition: color .2s ease, background .2s ease;
    }

    /* полоска-маркер, появляется только у активного */
    .menu-categories .chip::before {
        content: '';
        position: absolute;
        left: 4px;
        top: 50%;
        transform: translateY(-50%) scaleY(0);
        width: 3px;
        height: 60%;
        border-radius: 3px;
        background: var(--primary);
        transition: transform .2s ease;
    }

    .menu-categories .chip.active::before {
        transform: translateY(-50%) scaleY(1);
    }

    .menu-categories .chip.active {
        background: transparent;     /* убираем белую заливку */
        color: var(--primary);       /* акцентный мандарин */
        font-weight: 800;
    }

    /* мягкий ховер — только на устройствах с мышью */
    @media (hover: hover) and (pointer: fine) {
        .menu-categories .chip:not(.active):hover {
            background: rgba(255, 126, 25, 0.06);
            color: var(--text);
        }
    }
}

/* ===== КАРУСЕЛЬ ОТЗЫВОВ ===== */
.reviews-carousel-wrap {
    position: relative;
    padding: 0 50px;
}

.reviews-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.review-name {
    font-weight: 800;
    color: var(--text);
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-stars {
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.review-text {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 14px;
    flex: 1;
}

.review-source {
    color: #aaa;
    font-size: 0.8rem;
}

.reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background .2s, color .2s, box-shadow .2s;
}
.reviews-arrow:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-hover);
}
.reviews-prev { left: 0; }
.reviews-next { right: 0; }

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.reviews-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(62, 39, 35, 0.2);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.reviews-dots .dot.is-active {
    background: var(--primary);
    transform: scale(1.3);
}

@media (max-width: 992px) {
    .reviews-carousel-wrap { padding: 0; }
    .review-card { flex: 0 0 calc(50% - 10px); }
    .reviews-arrow { display: none; }
}

@media (max-width: 768px) {
    .review-card { flex: 0 0 85%; padding: 20px; }
    .reviews-dots { display: flex; }
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== BULK-СОХРАНЕНИЕ БЛЮД ===== */
.admin-bulk-table td {
    vertical-align: top;
}

.admin-bulk-table .inline-form {
    display: grid;
    gap: 6px;
}

/* Липкая панель сохранения */
.bulk-save-bar {
    position: sticky;
    bottom: 0;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 253, 249, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(62, 39, 35, 0.12);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    z-index: 50;
}

.bulk-save-hint {
    font-size: 0.85rem;
    color: #999;
    margin-right: auto;
}

.bulk-save-bar .btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(255, 126, 25, 0.35);
}

@media (max-width: 768px) {
    .bulk-save-bar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        margin-top: 0;
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .bulk-save-hint {
        display: none;
    }

    .bulk-save-bar .btn-primary {
        width: 100%;
        text-align: center;
    }
}