/* ============================================================
   «Поешь-ка» — основной стиль публичной части
   Яркая палитра в стиле Dodo Pizza: оранжевый + жёлтый + чистый белый.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    /* === Бренд-цвета (изумруд = основной, оранжевый = акцент CTA) === */
    --primary: #10B981;          /* Изумруд — бренд, успех, активные состояния */
    --primary-dark: #059669;     /* Изумруд темнее (hover) */
    --primary-light: #34D399;    /* Изумруд светлее */
    --accent: #F97316;           /* Оранжевый — CTA, подсветки, hover */
    --accent-dark: #EA580C;      /* Оранжевый темнее (hover) */
    --accent-light: #FB923C;     /* Оранжевый светлее */
    --success: #10B981;          /* Успех = бренд (зелёный) */
    --warning: #F59E0B;          /* Янтарный */
    --danger: #EF4444;           /* Красный — ошибки, удаление */

    /* === Фоны и поверхности === */
    --bg: #F8FAFC;               /* Очень светлый серо-голубой фон страницы */
    --bg-card: #FFFFFF;          /* Чистые белые карточки */
    --bg-soft: #F1F5F9;          /* Мягкий фон секций/инпутов/хмурого */

    /* === Текст и границы === */
    --text: #0F172A;             /* Мокрый асфальт (Slate-900) */
    --text-muted: #64748B;       /* Приглушённый (Slate-500) */
    --border: #E2E8F0;           /* Нейтральная граница (Slate-200) */

    /* === Тени (мягкие, современные) === */
    --shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

    /* === Градиенты (плавные, брендовые) === */
    --gradient-brand: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    --gradient-hero: linear-gradient(135deg, #ECFDF5 0%, #FFF7ED 100%);
    --gradient-danger: linear-gradient(135deg, #EF4444 0%, #F97316 100%);

    /* === Радиусы и размеры === */
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 72px;

    /* === Матовое стекло для шапки и меню === */
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-blur: blur(14px) saturate(160%);

    /* === Типографика (шрифты + шкала размеров) === */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fs-h1: 52px;
    --fs-h2: 38px;
    --fs-h3: 28px;
    --fs-h4: 22px;
    --fs-body: 16px;
    --fs-sm: 14px;
    --fs-xs: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Заголовки: современный шрифт, плотный letter-spacing, крупный кегль. */
h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--text);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); margin-bottom: 16px; font-weight: 800; }
h2 { font-size: var(--fs-h2); margin-bottom: 14px; font-weight: 700; }
h3 { font-size: var(--fs-h3); margin-bottom: 10px; font-weight: 700; }
h4 { font-size: var(--fs-h4); margin-bottom: 8px; font-weight: 600; letter-spacing: -0.01em; }

.section { padding: 48px 0; }
/* Светлая секция-полоса: мягкий изумрудный отлив для контраста с фоном страницы. */
.section-light { background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%); }
.section-tight { padding: 32px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { font-size: 28px; }
.section-title p { color: var(--text-muted); margin-top: 6px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ---------------- Кнопки ---------------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s ease, transform .08s ease, box-shadow .18s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
}
.btn:hover { background: var(--primary-dark); text-decoration: none; box-shadow: 0 6px 18px rgba(16, 185, 129, 0.30); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }

/* Акцентная кнопка CTA — оранжевая. */
.btn-accent {
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.22);
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35); }

/* Градиентная кнопка (изумруд → светлый изумруд). */
.btn-gradient {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.btn-gradient:hover { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.40); filter: brightness(1.05); }

/* Кнопки статусов. */
.btn-success { background: var(--success); box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18); }
.btn-danger { background: var(--danger); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.20); }
.btn-danger:hover { background: #DC2626; box-shadow: 0 6px 18px rgba(239, 68, 68, 0.32); }

/* ---------------- Шапка ---------------- */
.header {
    /* Матовое стекло: один фон для шапки и меню (--glass-bg) в обеих темах. */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 36px; }
.logo-text span { color: var(--text); font-weight: 600; font-size: 14px; display: block; line-height: 1; }

/* Логотип-изображение (загружается через Настройки) */
.logo-img {
    height: 52px; width: auto;
    display: block;
    object-fit: contain;
}
/* Светлая тема: показываем logo-img-light, прячем logo-img-dark */
.logo-img-light { display: block; }
.logo-img-dark  { display: none; }
[data-theme="dark"] .logo-img-light { display: none; }
[data-theme="dark"] .logo-img-dark  { display: block; }

/* Логотип в подвале */
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-img { height: 44px; display: block; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.nav-svg { fill: currentColor; flex-shrink: 0; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.active { color: var(--primary); }

/* Мега-меню «Каталог» — выпадающая панель. */
.nav-mega { position: relative; }
.nav-mega-toggle {
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500; font-size: 15px;
    display: inline-flex; align-items: center; gap: 7px;
    cursor: pointer;
}
.nav-mega-toggle:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.nav-mega.active .nav-mega-toggle,
.nav-mega.active > a { color: var(--primary); }
.nav-mega-caret { opacity: .5; transition: transform .2s; }
.nav-mega:hover .nav-mega-caret,
.nav-mega.open .nav-mega-caret { transform: rotate(180deg); }

/* Кнопка-карэтка для открытия подменю (отдельно от ссылки-скролла).
   На десктопе скрыта — подменю открывается по hover.
   На мобилке отображается справа от «Меню». */
.nav-mega-caret-btn { display: none; }

/* Выпадающая панель: скрыта на десктопе, видна на мобилке как отдельные пункты. */
.nav-mega-panel {
    display: none;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; }
.header-phone:hover { text-decoration: none; color: var(--primary); }

/* Ярлык корзины в шапке: иконка-кнопка с шильдиком-счётчиком поверх.
   Открывает выезжающую панель (drawer), а не отдельную страницу. */
.cart-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s, transform .12s;
    flex-shrink: 0;
}
.cart-toggle:hover { background: var(--primary-dark); }
.cart-toggle:active { transform: scale(.92); }
.cart-toggle svg { fill: currentColor; }
.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: #fff;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    min-width: 20px; height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    line-height: 1;
    z-index: 2;
}

.burger { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text); }

/* ---------------- Hero ---------------- */
.hero {
    background: var(--gradient-hero);
    padding: 64px 0;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 60px; line-height: 1.15; margin-bottom: 16px; }
.hero p.lead { font-size: 19px; color: var(--text-muted); margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-features { display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.hero-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.hero-feature .ico { font-size: 20px; }
.hero-image { text-align: center; }
.hero-image img { max-height: 380px; margin: 0 auto; }

/* Большой баннер с параллакс-фоном.
   Сам background-image задаётся ИНЛАЙН в <section style="..."> из PHP
   (тёмный оверлей + фото из настроек). Здесь — только布局 и эффекты. */
.hero-banner {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background-color: #2a1810; /* видно на момент загрузки фото */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;  /* параллакс-эффект */
    color: #fff;
    overflow: hidden;
}
.hero-banner-inner {
    width: 100%;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}
.hero-banner-content { max-width: 720px; }
.hero-banner h1 {
    color: #fff;
    font-size: 46px;
    line-height: 1.1;
    margin: 0 0 18px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-banner p.lead {
    color: #f1f5f9;
    font-size: 19px;
    line-height: 1.55;
    margin-bottom: 28px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.hero-banner-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Кнопки баннера */
.btn-banner-primary {
    background: var(--primary);
    color: #fff !important;
    border: 2px solid var(--primary);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.btn-banner-primary:hover {
    background: #e85d00;
    border-color: #e85d00;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}
.btn-banner-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}
.btn-banner-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-1px);
}

/* Планшет */
@media (max-width: 960px) {
    .hero-banner { min-height: 480px; }
    .hero-banner h1 { font-size: 54px; }
    .hero-banner p.lead { font-size: 17px; }
}

/* Телефон: отключаем fixed-параллакс (на мобильных он лагает/не работает),
   уменьшаем высоту, центрируем контент */
@media (max-width: 600px) {
    .hero-banner {
        min-height: 460px;
        background-attachment: scroll;  /* мобильный fallback */
    }
    .hero-banner-inner { padding: 56px 0; }
    .hero-banner h1 { font-size: 42px; }
    .hero-banner p.lead { font-size: 15px; }
    .hero-banner-cta { flex-direction: column; align-items: stretch; }
    .hero-banner-cta .btn { text-align: center; }
}

/* Тёмная тема: баннер использует те же инлайн-стили из PHP.
   Для тёмной темы усиливаем затемнение фона через псевдоэлемент. */
[data-theme="dark"] .hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 0, 0.20);
    pointer-events: none;
    z-index: 0;
}
[data-theme="dark"] .hero-banner-inner { position: relative; z-index: 1; }

/* Плавная прокрутка к якорям (для кнопки «Остались вопросы?» → #faq) */
html { scroll-behavior: smooth; }

/* ---------------- Карточки товаров ---------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.product-card-image {
    aspect-ratio: 4 / 3;
    background: #f0f0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.product-card-title > a { flex: 1; min-width: 0; }

/* Иконка информации с тултипом на карточке товара */
.product-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    color: #94a3b8;
    transition: color .12s;
}
.product-info-icon:hover, .product-info-icon:focus { color: var(--primary); outline: none; }
.product-info-icon svg { fill: currentColor; display: block; }
/* Тултип — скрыт по умолчанию, появляется при наведении/фокусе */
.product-info-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 240px;
    max-width: 80vw;
    padding: 10px 12px;
    background: #1f2937;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    z-index: 50;
    transition: opacity .15s, visibility .15s;
    pointer-events: none;
    text-align: left;
}
.product-info-icon:hover .product-info-tooltip,
.product-info-icon:focus .product-info-tooltip {
    visibility: visible;
    opacity: 1;
}
/* Стрелка тултипа */
.product-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 6px solid transparent;
    border-top-color: #1f2937;
}
/* Тёмная тема: тултип светлее для контраста */
[data-theme="dark"] .product-info-tooltip { background: #f3f4f6; color: #1f2937; }
[data-theme="dark"] .product-info-tooltip::after { border-top-color: #f3f4f6; }
[data-theme="dark"] .product-info-icon { color: #64748b; }
.product-card-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; flex: 1; }
.product-card-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.product-card-foot { margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.stock-low { font-size: 12px; color: var(--warning); font-weight: 600; }
.stock-out { font-size: 12px; color: var(--danger); font-weight: 600; }

/* ---------------- Заголовок секции ---------------- */
.section-eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

/* Сетка наборов: 2 крупные карточки в ряд */
.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
}

/* ---------------- Карточка набора (сочная плитка, стиль Dodo) ---------------- */
.set-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.set-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(16, 185, 129, 0.18); }

/* Обложка с фото и названием поверх */
.set-card-cover { position: relative; aspect-ratio: 16 / 10; background: #f0f0f2; overflow: hidden; }
.set-card-cover-img { display: block; width: 100%; height: 100%; }
.set-card-cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.set-card:hover .set-card-cover-img img { transform: scale(1.06); }

/* Затемнение снизу для читаемости текста */
.set-card-cover-shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 65%);
    pointer-events: none;
}

/* Бейдж «Хит» */
.set-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--accent);
    color: #1a1a1a;
    font-size: 12px; font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    text-transform: uppercase; letter-spacing: .3px;
    z-index: 2;
}

/* Текст поверх фото */
.set-card-cover-text {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px 20px;
    z-index: 1;
}
.set-card-title { margin: 0; font-size: 22px; line-height: 1.2; }
.set-card-title a { color: #fff; text-decoration: none; }
.set-card-title a:hover { color: var(--accent); }
.set-card-tagline {
    color: rgba(255,255,255,.92);
    font-size: 13px; margin: 6px 0 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Тело: список вариантов */
.set-card-body { padding: 8px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.set-variants { display: flex; flex-direction: column; gap: 4px; }
.extra-variants { display: flex; flex-direction: column; gap: 0; }

/* Строка варианта */
.set-variant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    border-radius: 10px;
    border-bottom: 1px solid var(--border);
    transition: background .15s ease;
}
.set-variant:last-child { border-bottom: none; }
.set-variant:hover { background: #fff7f0; }
.set-variant-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.set-variant-name { font-weight: 700; font-size: 15px; color: var(--text); }
.set-variant-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* Варианты доп. товара — тот же визуальный язык, что у наборов */
.extra-variant {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 4px; border-bottom: 1px solid var(--border);
}
.extra-variant:last-child { border-bottom: none; }
.extra-variant:hover { background: #fff7f0; }
.extra-variant-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.extra-variant-name { font-weight: 700; font-size: 14px; color: var(--text); }
.extra-variant-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.extra-variant-price { font-weight: 800; font-size: 16px; color: var(--primary); white-space: nowrap; }
.extra-variant .stock-low { font-size: 11px; margin-top: 2px; }
.extra-variant .stock-out { font-size: 11px; margin-top: 2px; }
.extra-variant .set-add-btn:disabled { opacity: .4; cursor: not-allowed; }
.set-variant-price {
    font-weight: 800; font-size: 17px; color: var(--text);
    white-space: nowrap;
}

/* Кнопка добавления «+» */
.set-add-btn {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 24px; font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
    box-shadow: 0 3px 10px rgba(16, 185, 129, .35);
}
.set-add-btn:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(16, 185, 129, .5); }
.set-add-btn:active { transform: scale(.92); }

/* ---------------- Меню недели ---------------- */

/* ---------------- Меню недели ---------------- */
.menu-week-banner {
    background: var(--primary);
    color: #fff;
    padding: 18px 24px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 28px;
}
.menu-week-banner strong { font-size: 18px; }
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
/* Десктоп: ровно 5 карточек в ряд */
@media (min-width: 992px) {
    .dishes-grid { grid-template-columns: repeat(5, 1fr); }
}
/* Мобильные: ровно 2 карточки в ряд */
@media (max-width: 600px) {
    .dishes-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dish-title-badge { font-size: 12px; padding: 6px 8px; }
    .dish-eat-first-badge { font-size: 9px; padding: 4px 6px; letter-spacing: .1px; }
}

/* Переключатель «Меню недели» / «Доп. товары». */
.menu-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.menu-tab {
    padding: 12px 28px;
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.menu-tab:hover { border-color: var(--primary); color: var(--primary); }
.menu-tab.active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.menu-tab-panel { display: none; }
.menu-tab-panel.active { display: block; animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dish-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.dish-card img {
    aspect-ratio: 4/3;
    object-fit: contain; /* показываем фото целиком, без обрезки — пропорции сохраняются */
    width: 100%;
    background: #f0f0f2;  /* фон заполняет пустые поля, если пропорции фото не 4:3 */
}
.dish-card-image-wrap { position: relative; }
.dish-card-body { padding: 14px; }

/* Шильдик с названием блюда поверх фото (внизу) */
.dish-title-badge {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
    color: #fff;
    font-size: 15px; font-weight: 600; line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Красный шильдик «Употребить в первую очередь» (вверху слева) */
.dish-eat-first-badge {
    position: absolute; top: 0; left: 0;
    padding: 6px 10px;
    background: var(--danger, #e71414);
    color: #fff;
    font-size: 12px; font-weight: 700; line-height: 1.2;
    border-bottom-right-radius: 10px;
    text-transform: uppercase; letter-spacing: .3px;
    box-shadow: 0 2px 6px rgba(231, 20, 20, .4);
    z-index: 2;
}

/* Значок информации поверх фото блюда */
.dish-info-badge {
    position: absolute;
    top: 10px; right: 10px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: background .15s, transform .15s;
    z-index: 1;
}
.dish-info-badge svg { fill: currentColor; display: block; }
.dish-card-clickable:hover .dish-info-badge {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}
.dish-card .day { font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.dish-card h4 { font-size: 16px; margin: 4px 0; }

/* Кликабельная карточка блюда (открывает попап) */
.dish-card-clickable {
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.dish-card-clickable:hover, .dish-card-clickable:focus {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    outline: none;
}
.dish-card-clickable img { transition: transform .3s; }
.dish-card-clickable:hover img { transform: scale(1.05); }
.dish-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* Модальное окно блюда */
.dish-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.dish-modal {
    position: relative;
    background: var(--bg-card);
    color: var(--text);
    border-radius: var(--radius);
    max-width: 540px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
    animation: dish-modal-in .2s ease-out;
}
@keyframes dish-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dish-modal-close {
    position: absolute; top: 10px; right: 14px;
    background: rgba(0,0,0,.45); color: #fff;
    border: none; border-radius: 50%;
    width: 34px; height: 34px;
    font-size: 22px; line-height: 1;
    cursor: pointer; z-index: 2;
    transition: background .12s;
}
.dish-modal-close:hover { background: rgba(0,0,0,.7); }
.dish-modal-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #f0f0f2;
}
.dish-modal-body { padding: 22px 24px 26px; }
.dish-modal-day {
    font-size: 13px; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: .3px;
    margin-bottom: 6px;
}
.dish-modal-title { font-size: 22px; margin: 0 0 12px; }
.dish-modal-desc { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }
@media (max-width: 600px) {
    .dish-modal-img { aspect-ratio: 4/3; }
    .dish-modal-title { font-size: 19px; }
}
[data-theme="dark"] .dish-modal { background: #1a1a1a; }
[data-theme="dark"] .dish-modal-desc { color: #b8b8b8; }
.dish-card p { font-size: 13px; color: var(--text-muted); }

/* Картинка набора как триггер popup: курсор-рука + лёгкое увеличение при наведении */
.set-card-cover-img--popup { cursor: pointer; display: block; }
.set-card-cover-img--popup img { transition: transform .25s ease; }
.set-card-cover-img--popup:hover img { transform: scale(1.04); }

/* Popup подробной информации о наборе (по образцу .dish-modal, но шире) */
.set-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 16px;
}
.set-modal {
    position: relative;
    background: var(--bg-card); color: var(--text);
    border-radius: var(--radius);
    max-width: 620px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
    animation: set-modal-in .2s ease-out;
}
@keyframes set-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.set-modal-close {
    position: absolute; top: 10px; right: 14px;
    background: rgba(0,0,0,.45); color: #fff;
    border: none; border-radius: 50%;
    width: 34px; height: 34px;
    font-size: 22px; line-height: 1;
    cursor: pointer; z-index: 2; transition: background .12s;
}
.set-modal-close:hover { background: rgba(0,0,0,.7); }
.set-modal-img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #f0f0f2;
}
.set-modal-body { padding: 22px 24px 26px; }
.set-modal-title { font-size: 24px; margin: 0 0 14px; }
.set-modal-description { font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.set-modal-description h2,
.set-modal-description h3 { margin: 0.8em 0 0.3em; }
.set-modal-description ul,
.set-modal-description ol { margin: 0.3em 0 0.3em 1.5em; }
.set-modal-composition { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-bottom: 18px; }
.set-modal-link { display: inline-block; }
@media (max-width: 600px) {
    .set-modal-img { aspect-ratio: 4/3; }
    .set-modal-title { font-size: 20px; }
}
[data-theme="dark"] .set-modal { background: #1a1a1a; }
[data-theme="dark"] .set-modal-short,
[data-theme="dark"] .set-modal-composition { color: #b8b8b8; }

/* ---------------- FAQ ---------------- */
.faq-item { background: var(--bg-card); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 16px 20px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-q:after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq-item.open .faq-q:after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 16px; }

/* Объединённая секция «Частые вопросы + Остались вопросы» — две равные колонки. */
.faq-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.faq-contact-col > h2 { font-size: 28px; margin-bottom: 16px; }
.faq-contact-col .contact-form-card { height: 100%; box-sizing: border-box; }
@media (max-width: 860px) {
    /* На узких экранах колонки складываются в одну (сверху FAQ, снизу форма). */
    .faq-contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------------- Отзывы ---------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-card { background: var(--bg-card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.review-card .stars { color: var(--primary); margin-bottom: 8px; }
.review-card .name { font-weight: 700; margin-bottom: 6px; }
.review-card .text { color: var(--text-muted); font-size: 15px; }
.review-order-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

/* Медиа (фото/видео) в карточке отзыва */
.review-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.review-media-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f0f0f2;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-media-image a { display: block; width: 100%; height: 100%; }
.review-media-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.review-media-image a:hover img { transform: scale(1.06); }
.review-media-video video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* ---------------- Формы ---------------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group .req { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-card);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-muted); }
.form-check input { margin-top: 3px; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.has-error .form-control, .has-error input, .has-error textarea { border-color: var(--danger); }

/* ---------------- Alerts ---------------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert-success { background: #eafaf1; border: 1px solid var(--success); color: #1e7e44; }
.alert-error { background: #fdecea; border: 1px solid var(--danger); color: var(--danger); }
.alert-info { background: #e8f4fd; border: 1px solid #3498db; color: #1f6d9c; }
.alert-warning { background: #fef5e7; border: 1px solid var(--warning); color: #9a6700; }

/* ---------------- Корзина ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-image { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: #f0f0f2; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; }
.cart-item-meta { font-size: 13px; color: var(--text-muted); }
.cart-item-price { font-weight: 700; white-space: nowrap; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button { background: var(--bg-card); border: none; width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: var(--primary); }
.qty-control button:hover { background: var(--bg); }
.qty-control input { width: 44px; text-align: center; border: none; font-size: 15px; font-weight: 600; }
.cart-summary { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-row.total { font-size: 20px; font-weight: 800; color: var(--primary); border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .ico { font-size: 64px; margin-bottom: 16px; }

/* ---------------- Steps (как заказать) ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.step-num { width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.step-card h3 { font-size: 18px; margin-bottom: 6px; }
.step-card p { color: var(--text-muted); font-size: 14px; }

/* ---------------- Личный кабинет ---------------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.account-menu { background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.account-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.account-menu a:hover, .account-menu a.active { background: var(--bg); color: var(--primary); text-decoration: none; }

.order-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.order-card-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.order-number { font-weight: 800; font-size: 17px; }
.order-status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.status-new { background: #e8f4fd; color: #1f6d9c; }
.status-paid { background: #eafaf1; color: #1e7e44; }
.status-processing { background: #fef5e7; color: #9a6700; }
.status-delivered { background: #eafaf1; color: #1e7e44; }
.status-cancelled { background: #fdecea; color: var(--danger); }
.payment-paid { background: #eafaf1; color: #1e7e44; }
.payment-pending { background: #fef5e7; color: #9a6700; }
.payment-failed { background: #fdecea; color: var(--danger); }

/* Таблица */
.table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: var(--bg); font-weight: 700; color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafafa; }

/* ---------------- Footer ---------------- */
.footer { background: #1a1a1a; color: #b0b0b0; padding: 40px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.footer a { color: #b0b0b0; }
.footer a:hover { color: var(--primary); }
.footer ul { list-style: none; }
.footer ul li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid #333; padding-top: 16px; text-align: center; font-size: 13px; color: #777; }
.footer-contacts p { padding: 3px 0; }

/* ---------------- Прочее ---------------- */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span.sep { margin: 0 6px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--text-muted); }

.contact-form-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
/* Карточка формы обратной связи внутри секции с фоном — матовое стекло над фоном */
.section-bg-image .contact-form-card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .section-bg-image .contact-form-card {
    background: rgba(26, 26, 26, 0.80);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab { padding: 12px 20px; cursor: pointer; border: none; background: none; font-size: 15px; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.messenger-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.messenger-bar a { padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.messenger-tg { background: #229ED9; color: #fff; }
.messenger-wa { background: #25D366; color: #fff; }
.messenger-vk { background: #0077FF; color: #fff; }
.messenger-max { background: #8b5cf6; color: #fff; }

/* ---------------- Контент страниц ---------------- */
.page-content h1, .page-content h2 { margin-top: 8px; }
.page-content h2 { font-size: 22px; margin-top: 20px; }
.page-content p { margin: 10px 0; }
.page-content ul, .page-content ol { margin: 10px 0 10px 24px; }
.page-content li { margin: 4px 0; }

/* ---------------- Toast ---------------- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #2b2b2b;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: var(--danger); }

/* ---------------- Адаптив ---------------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .hero-image img { max-height: 260px; }
    .cart-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 12px; box-shadow: var(--shadow-lg); }
    .nav.open { display: flex; }
    .burger { display: block; margin-left: auto; }
    .header-phone { display: none; }
    /* На мобильных мега-меню: панель всегда видна как отдельные пункты. */
    .nav-mega { width: 100%; flex-direction: column; align-items: stretch; }
    .nav-mega-toggle { width: 100%; flex: unset; justify-content: flex-start; }
    .nav-mega-caret-btn { display: none; }
    .nav-mega-panel {
        display: flex !important;
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding: 0;
        background: transparent; min-width: 0; transition: none;
        width: 100%; flex-direction: column; gap: 2px;
    }
    .nav-mega-panel a {
        padding: 10px 14px; border-radius: var(--radius-sm);
        font-size: 15px; font-weight: 500;
    }
    /* В тёмной теме мобильное бургер-меню — плотный непрозрачный тёмный фон.
       Усиленная специфичность, чтобы перекрыть общее dark-правило .nav. */
    [data-theme="dark"] .nav.open { background: #14171c; }
    [data-theme="dark"] .nav { background: #14171c; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .two-cols { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 60px 1fr; }
    .cart-item .qty-control { grid-column: 2; }
    .cart-item-price { grid-column: 2; }
    h1 { font-size: 34px; }
    .hero h1 { font-size: 38px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Тёмная тема — ПРЕМИУМ: неон + стекло (glassmorphism).
   Глубокий чёрный фон, полупрозрачные размытые карточки,
   оранжевое неоновое свечение на кнопках и акцентах.
   Активируется через [data-theme="dark"] на <html>.
   ============================================================ */
[data-theme="dark"] {
    /* === Акценты засвечены (пастельнее) для снижения усталости глаз, WCAG AA === */
    --primary: #34D399;          /* светлее изумруд для контраста на тёмном */
    --primary-dark: #10B981;
    --primary-light: #6EE7B7;
    --accent: #FB923C;           /* мягкий оранжевый */
    --accent-dark: #F97316;
    --accent-light: #FDBA74;
    --success: #34D399;
    --warning: #FBBF24;
    --danger: #F87171;           /* пастельный красный */

    /* === Глубокие тёмные фоны (не чисто чёрный) === */
    --bg: #0F1115;
    --bg-card: rgba(255, 255, 255, 0.045);  /* стекло: полупрозрачный */
    --bg-soft: rgba(255, 255, 255, 0.04);

    /* === Текст и границы === */
    --text: #E5E7EB;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);

    /* === Тени и градиенты (под тёмный фон) === */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --gradient-brand: linear-gradient(135deg, #34D399 0%, #6EE7B7 100%);
    --gradient-accent: linear-gradient(135deg, #FB923C 0%, #FDBA74 100%);
    --gradient-hero: linear-gradient(135deg, #0F1115 0%, #0A1F17 100%);
    --gradient-danger: linear-gradient(135deg, #F87171 0%, #FB923C 100%);

    /* === Матовое стекло для шапки и меню.
       Прозрачность выше, чем в светлой — чтобы шапка сливалась с тёмным фоном. === */
    --glass-bg: rgba(15, 17, 21, 0.45);
    --glass-blur: blur(16px) saturate(160%);
}

/* Тёмная тема: единая стилистика матового стекла для шапки и меню.
   Фон/размытие задаются через --glass-bg / --glass-blur.
   Тёмную полосу под шапкой убираем полностью — шапка сливается со страницей. */
[data-theme="dark"] .header,
[data-theme="dark"] .nav {
    border-bottom: none;
    box-shadow: none;
}
/* Мобильное меню — граница не снизу, а сверху (отделение от шапки).
   Фон прозрачный, чтобы меню сливалось со страницей без тёмной полосы. */
[data-theme="dark"] .nav {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}
[data-theme="dark"] .logo { color: var(--primary); }
[data-theme="dark"] .nav a { color: #e0e0e0; }
[data-theme="dark"] .nav a:hover { background: rgba(52, 211, 153, 0.1); color: #fff; }
[data-theme="dark"] .nav a.active { color: var(--primary); background: rgba(52, 211, 153, 0.12); }
[data-theme="dark"] .header-phone { color: #fff; }
[data-theme="dark"] .cart-badge { border-color: #1a1a1a; }
/* Мега-меню «Каталог»: плотный тёмный фон вместо просвечивающего стекла. */
[data-theme="dark"] .nav-mega-panel {
    background: #14171c;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .nav-mega-panel a:hover { background: rgba(52, 211, 153, 0.10); }
[data-theme="dark"] .nav-mega-panel a.active { background: rgba(52, 211, 153, 0.14); }

/* Glassmorphism для всех карточек */
[data-theme="dark"] .product-card,
[data-theme="dark"] .set-card,
[data-theme="dark"] .dish-card,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .step-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .order-card,
[data-theme="dark"] .account-menu,
[data-theme="dark"] .table {
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Hero-градиент: глубокий чёрный с тёплым оранжевым подтоном */
[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255, 199, 0, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a 0%, #15100a 100%);
}

/* СВЕТЯЩИЕСЯ КНОПКИ — оранжевое неоновое свечение */
/* Кнопки в тёмной теме: без принудительной подсветки — выглядят как в светлой.
   Фон берётся из базового правила .btn (var(--primary)), тень не добавляется. */
[data-theme="dark"] .btn {
    box-shadow: none;
}
[data-theme="dark"] .btn:hover {
    box-shadow: none;
}

/* Контурная кнопка: тонкая изумрудная граница, без свечения. */
[data-theme="dark"] .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid rgba(52, 211, 153, 0.4);
    box-shadow: none;
}
[data-theme="dark"] .btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

/* Кнопка корзины в шапке */
[data-theme="dark"] .cart-toggle {
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.4);
}
[data-theme="dark"] .cart-toggle:hover { box-shadow: 0 0 26px rgba(52, 211, 153, 0.6); }

/* Кнопка «+» в карточке набора */
[data-theme="dark"] .set-add-btn {
    box-shadow:
        0 0 0 1px rgba(52, 211, 153, 0.3),
        0 3px 12px rgba(52, 211, 153, 0.45),
        0 0 20px rgba(52, 211, 153, 0.3);
}
[data-theme="dark"] .set-add-btn:hover {
    box-shadow:
        0 0 0 1px rgba(52, 211, 153, 0.6),
        0 4px 16px rgba(52, 211, 153, 0.6),
        0 0 28px rgba(52, 211, 153, 0.5);
}

/* Неоновая граница карточек при наведении */
[data-theme="dark"] .set-card:hover {
    box-shadow:
        0 0 0 1px rgba(52, 211, 153, 0.25),
        0 12px 36px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(52, 211, 153, 0.15);
}
[data-theme="dark"] .product-card:hover {
    box-shadow:
        0 0 0 1px rgba(52, 211, 153, 0.2),
        0 12px 36px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(52, 211, 153, 0.12);
}

/* Цены — оранжевое свечение */
[data-theme="dark"] .product-card-price,
[data-theme="dark"] .set-variant-price {
    color: var(--primary);
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.4);
}

/* Звёзды отзывов — оранжевое свечение */
[data-theme="dark"] .review-card .stars { text-shadow: 0 0 12px rgba(52, 211, 153, 0.5); }

/* Placeholder-фоны под тёмные карточки */
[data-theme="dark"] .product-card-image,
[data-theme="dark"] .set-card-cover,
[data-theme="dark"] .dish-card img,
[data-theme="dark"] .cart-item-image { background: #141414; }

/* Меню недели: изумрудный баннер с мягким свечением */
[data-theme="dark"] .menu-week-banner {
    background: var(--gradient-brand);
    box-shadow: 0 0 32px rgba(52, 211, 153, 0.3);
}

/* Светлые секции → глубокие тёмно-изумрудные полосы с мягким свечением по краям */
[data-theme="dark"] .section-light {
    background: linear-gradient(180deg, #111514 0%, #0F1814 50%, #111514 100%);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(52, 211, 153, 0.14),
        0 -8px 40px rgba(52, 211, 153, 0.06),
        0 8px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .section-light h1,
[data-theme="dark"] .section-light h2,
[data-theme="dark"] .section-light h3 { color: #ffffff; }
[data-theme="dark"] .section-light .section-title h2 { color: #ffffff; }
[data-theme="dark"] .section-light .section-eyebrow { color: var(--primary); }
[data-theme="dark"] .section-light .section-title p { color: var(--text-muted); }

/* Карточки внутри тёмно-серых секций: глубокий чёрный */
[data-theme="dark"] .section-light .set-card,
[data-theme="dark"] .section-light .product-card,
[data-theme="dark"] .section-light .review-card,
[data-theme="dark"] .section-light .faq-item {
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Подсветка строк вариантов */
[data-theme="dark"] .set-variant { border-bottom-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .set-variant:hover { background: rgba(52, 211, 153, 0.1); }

/* Поля ввода — стекло */
[data-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
[data-theme="dark"] .form-control::placeholder { color: #777; }
[data-theme="dark"] .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

/* Шапка/футер */
[data-theme="dark"] .footer {
    background: #050505;
    border-top: 1px solid rgba(52, 211, 153, 0.08);
}
[data-theme="dark"] .footer,
[data-theme="dark"] .footer a,
[data-theme="dark"] .footer-bottom { color: #ffffff; }
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .table tr:hover td { background: rgba(52, 211, 153, 0.06); }

/* Алерты — стекло */
[data-theme="dark"] .alert { backdrop-filter: blur(10px); }
[data-theme="dark"] .alert-success { background: rgba(46, 204, 113, 0.12); border-color: var(--success); color: #6ee7a0; }
[data-theme="dark"] .alert-error { background: rgba(255, 82, 82, 0.12); border-color: var(--danger); color: #ff8080; }
[data-theme="dark"] .alert-info { background: rgba(66, 153, 225, 0.12); border-color: #4299e1; color: #7eb8f0; }
[data-theme="dark"] .alert-warning { background: rgba(255, 199, 0, 0.12); border-color: var(--warning); color: #ffd84d; }

/* Мобильное меню в тёмной теме использует --glass-bg (как шапка) — см. выше.
   Раньше здесь было жёсткое rgba(10,10,10,0.95), которое переопределяло
   переменную и делало меню почти непрозрачным (рассинхрон с шапкой). Удалено. */

/* =========================================================
   Кабинет курьера (/courier)
   ========================================================= */
.courier-page { max-width: 760px; padding-bottom: 40px; }
.courier-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; flex-wrap: wrap;
    margin-top: 24px; margin-bottom: 16px;
}
.courier-head h1 { margin: 0 0 4px; font-size: 36px; }
.courier-sub { color: #64748b; font-size: 14px; margin: 0; }
.courier-geo-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 999px;
    background: #f1f5f9; font-size: 13px; font-weight: 600;
}
.geo-dot { font-size: 14px; line-height: 1; }
.geo-on { color: #10b981; }      /* активно — зелёный */
.geo-wait { color: #f59e0b; }    /* ожидание — жёлтый */
.geo-off { color: #ef4444; }     /* выключено/ошибка — красный */

.courier-track-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 16px; margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.courier-track-row {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.courier-track-row p { font-size: 13px; color: #64748b; margin: 6px 0 0; }
.courier-track-meta { font-size: 13px; color: #475569; text-align: right; line-height: 1.7; }
.courier-track-actions { display: flex; gap: 8px; }

.courier-route-btn { margin: 8px 0 4px; font-size: 16px; padding: 14px; }
.courier-route-hint { font-size: 12px; color: #94a3b8; margin: 0 0 20px; }

.courier-section-title { font-size: 18px; margin: 24px 0 12px; }
.courier-orders { display: flex; flex-direction: column; gap: 10px; }
.courier-order {
    display: flex; justify-content: space-between; gap: 12px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px;
}
.courier-order-main { flex: 1; min-width: 0; }
.courier-order-num { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.courier-order-num .badge { font-weight: 500; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #e0f2fe; color: #0369a1; margin-left: 6px; }
.courier-order-addr { font-size: 14px; color: #1e293b; margin-bottom: 2px; }
.courier-order-cust { font-size: 13px; color: #475569; }
.courier-order-comment { font-size: 12px; margin-top: 4px; }
.courier-order-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; justify-content: center; }
.courier-order-total { font-weight: 700; font-size: 16px; color: #16a34a; }
.courier-order-items { margin-top: 10px; font-size: 13px; }
.courier-order-items ul { margin: 4px 0 0; padding-left: 18px; }
.courier-order-items li { line-height: 1.5; }
.courier-btn-navi { background: var(--accent); color: #fff; }
.courier-btn-navi:hover { background: var(--accent-dark); color: #fff; }
.courier-foot { margin-top: 28px; font-size: 13px; }
@media (max-width: 600px) {
    .courier-order { flex-direction: column; }
    .courier-order-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
}

.muted { color: #94a3b8; }

[data-theme="dark"] .courier-track-card,
[data-theme="dark"] .courier-order { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .courier-order-addr { color: #e2e8f0; }
[data-theme="dark"] .courier-geo-status { background: rgba(255,255,255,0.06); color: #cbd5e1; }
[data-theme="dark"] .courier-order-num .badge { background: rgba(66,153,225,0.2); color: #7eb8f0; }

/* =========================================================
   Карта и статус доставки (оформление + детали заказа)
   ========================================================= */

/* Карта выбора адреса в оформлении */
.checkout-map-wrap { margin-top: 6px; }
.checkout-map {
    width: 100%; height: 320px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f0f0f2;
}

/* Подсказки адресов (autocomplete) в оформлении заказа */
.address-suggest-wrap { position: relative; }
.address-suggest-dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-height: 260px;
    overflow-y: auto;
}
.address-suggest-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}
.address-suggest-item:last-child { border-bottom: none; }
.address-suggest-item:hover {
    background: rgba(16, 185, 129, 0.06);
    color: var(--primary);
}
[data-theme="dark"] .address-suggest-dropdown { background: #1a1a1a; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .address-suggest-item { border-bottom-color: rgba(255,255,255,.06); }
[data-theme="dark"] .address-suggest-item:hover { background: rgba(16, 185, 129,.1); }
@media (max-width: 600px) {
    .checkout-map { height: 260px; }
}

/* Карта адреса на деталях заказа */
.order-map-wrap { margin-top: 14px; }
.order-map {
    width: 100%; height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f0f0f2;
}

/* Прогресс-таймлайн статуса заказа */
.order-progress {
    list-style: none; margin: 16px 0; padding: 0;
    display: flex; gap: 0;
    counter-reset: step;
}
.order-progress-step {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding-top: 4px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}
/* Линия между шагами */
.order-progress-step::before {
    content: ''; position: absolute;
    top: 16px; left: -50%; width: 100%; height: 3px;
    background: #e2e8f0;
}
.order-progress-step:first-child::before { display: none; }
.order-progress-step.done::before { background: var(--primary); }
.order-progress-step.current::before { background: var(--primary); }
.step-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e8f0;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; color: #94a3b8;
    position: relative; z-index: 1;
}
.order-progress-step.done .step-dot {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.order-progress-step.current .step-dot {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.order-progress-step.done .step-label,
.order-progress-step.current .step-label {
    color: #1e293b; font-weight: 600;
}
.order-progress.cancelled { margin: 16px 0; }
.order-progress-cancel {
    display: inline-block; padding: 8px 14px;
    background: #fef2f2; color: #ef4444;
    border-radius: var(--radius-sm); font-weight: 600;
}
@media (max-width: 600px) {
    .order-progress { flex-direction: column; align-items: flex-start; gap: 10px; }
    .order-progress-step { flex-direction: row; gap: 10px; align-items: center; }
    .order-progress-step::before { top: 16px; left: 17px; width: 3px; height: 100%; }
    .order-progress-step:last-child::before { display: none; }
    .order-progress-step { text-align: left; }
}

/* Блок курьера на деталях заказа */
.order-courier {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px;
}
.order-courier-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.order-courier-phone { display: inline-block; font-size: 14px; color: var(--primary); text-decoration: none; margin-bottom: 6px; }
.order-courier-phone:hover { text-decoration: underline; }
.courier-status-badge {
    display: inline-block; font-size: 12px; padding: 2px 8px;
    background: #e0f2fe; color: #0369a1; border-radius: 999px;
}

/* Бейдж «курьер назначен» в списке заказов */
.courier-badge-list {
    display: inline-block; margin-top: 4px;
    font-size: 11px; padding: 2px 8px;
    background: #f0fdf4; color: #15803d;
    border-radius: 999px;
}

[data-theme="dark"] .checkout-map,
[data-theme="dark"] .order-map { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .order-progress-step { color: #64748b; }
[data-theme="dark"] .order-progress-step::before { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .step-dot { background: #1e293b; border-color: rgba(255,255,255,0.15); color: #64748b; }
[data-theme="dark"] .order-progress-step.done .step-label,
[data-theme="dark"] .order-progress-step.current .step-label { color: #e2e8f0; }
[data-theme="dark"] .order-courier { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .courier-status-badge { background: rgba(66,153,225,0.2); color: #7eb8f0; }
[data-theme="dark"] .courier-badge-list { background: rgba(46,204,113,0.15); color: #6ee7a0; }



/* Toast — стекло с неоном */
[data-theme="dark"] .toast {
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(52, 211, 153, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 211, 153, 0.2);
}

/* FAQ: иконка и раскрытый ответ */
[data-theme="dark"] .faq-q:after { color: var(--primary); }
[data-theme="dark"] .faq-a { color: var(--text-muted); }

/* Номер шага — неоновое свечение */
[data-theme="dark"] .step-num {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}

/* Переключатель темы — строгий вид в тёмной теме */
[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}
[data-theme="dark"] .theme-toggle:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(52, 211, 153, 0.10);
}

/* Чтобы при переключении не было резкого мигания, сглаживаем переход цвета.
   Включаем transition только для базовых свойств, чтобы не тормозила анимация. */
body, .header, .footer, .hero, .product-card, .set-card, .cart-summary,
.step-card, .review-card, .contact-form-card, .faq-item, .order-card,
.account-menu, .table, .alert, .dish-card, .nav, .form-control, .qty-control button {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* Кнопка-переключатель темы в шапке — строгая, минималистичная */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: var(--text-muted);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-toggle svg { fill: currentColor; display: block; }
.theme-toggle:hover {
    color: var(--text);
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.06);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* =========================================================
   Блог: сетка статей, карточка, страница статьи, сайдбар
   ========================================================= */

/* Сетка плиток статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Карточка статьи — постер: фоновое изображение + затемнение + текст поверх.
   Если фото нет — карточка получает оранжевый градиент (задаётся инлайн). */
.article-card-poster {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #2a1810;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: #fff;
    text-decoration: none;
    padding: 24px;
    transition: transform .15s, box-shadow .15s;
}
.article-card-poster:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.28);
    color: #fff;
    text-decoration: none;
}
/* Градиент-затемнение снизу — усиливает читаемость текста на любом фото.
   Лежит поверх фона, но под контентом (z-index: 1). */
.article-card-poster-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.65) 40%,
        rgba(0,0,0,0.20) 75%,
        rgba(0,0,0,0.05) 100%);
    transition: opacity .2s;
    z-index: 1;
}
.article-card-poster:hover .article-card-poster-overlay { opacity: .92; }
/* Тело карточки — поверх затемнения. */
.article-card-poster-body {
    position: relative;
    z-index: 2;
    display: flex; flex-direction: column; gap: 8px;
}
.article-card-poster-cat {
    align-self: flex-start;
    background: var(--primary);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .3px;
}
.article-card-poster-title {
    font-size: 20px; font-weight: 800; line-height: 1.25;
    margin: 0; color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.article-card-poster-excerpt {
    font-size: 14px; line-height: 1.5;
    color: rgba(255,255,255,.88);
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-poster-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}
.article-card-poster-meta .read { color: var(--accent); font-weight: 700; }

/* На узких экранах немного уменьшаем высоту. */
@media (max-width: 600px) {
    .article-card-poster { min-height: 260px; padding: 18px; }
    .article-card-poster-title { font-size: 17px; }
}

/* Layout страницы блога (контент + сайдбар) */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}
.blog-sidebar {
    position: sticky; top: 88px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.blog-sidebar h3 { margin: 0 0 12px; font-size: 16px; }
.blog-cat-list { list-style: none; padding: 0; margin: 0; }
.blog-cat-list li { margin: 0; }
.blog-cat-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none; font-size: 14px;
    transition: background .12s;
}
.blog-cat-list a:hover { background: var(--bg); text-decoration: none; }
.blog-cat-list a.active { background: var(--primary); color: #fff; font-weight: 600; }
.blog-cat-list .count {
    font-size: 12px; background: rgba(0,0,0,.06); padding: 1px 8px; border-radius: 999px;
}
.blog-cat-list a.active .count { background: rgba(255,255,255,.25); color: #fff; }

/* Страница статьи */
.blog-article {
    max-width: 760px;
    margin: 0;
}
.blog-article-cat {
    display: inline-block;
    font-size: 12px; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: .4px;
    margin-bottom: 8px;
}
.blog-article h1 { font-size: 51px; line-height: 1.2; margin: 0 0 8px; }
.blog-article-date { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.blog-article-cover {
    border-radius: var(--radius); overflow: hidden;
    margin-bottom: 24px; box-shadow: var(--shadow);
    aspect-ratio: 16/9; background: #f0f0f2;
}
.blog-article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-article-lead {
    font-size: 19px; line-height: 1.6; color: var(--text);
    margin-bottom: 24px; font-weight: 500;
}
.blog-article-footer { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border, #e2e8f0); }

/* Адаптив */
@media (max-width: 960px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; order: -1; }
    .blog-article h1 { font-size: 42px; }
}
@media (max-width: 600px) {
    .articles-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-article h1 { font-size: 36px; }
}

/* Тёмная тема */
[data-theme="dark"] .blog-sidebar { background: #1a1a1a; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
[data-theme="dark"] .blog-cat-list a:hover { background: rgba(255,255,255,.06); }
[data-theme="dark"] .blog-cat-list .count { background: rgba(255,255,255,.1); }
[data-theme="dark"] .blog-article-footer { border-top-color: rgba(255,255,255,.1); }

/* Большая карточка топ-статьи — постер (фото + затемнение + текст поверх). */
.article-feature {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-color: #2a1810;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: #fff;
    text-decoration: none;
    padding: 40px;
    margin-bottom: 24px;
    transition: transform .15s, box-shadow .15s;
}
.article-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.30);
    color: #fff;
    text-decoration: none;
}
/* Градиент-затемнение (аналогично маленьким карточкам, чуть глубже). */
.article-feature-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.90) 0%,
        rgba(0,0,0,0.70) 35%,
        rgba(0,0,0,0.30) 70%,
        rgba(0,0,0,0.05) 100%);
    transition: opacity .2s;
    z-index: 1;
}
.article-feature:hover .article-feature-overlay { opacity: .94; }
.article-feature-body {
    position: relative;
    z-index: 2;
    display: flex; flex-direction: column; gap: 12px;
    max-width: 680px;
}
.article-feature-tags {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.article-feature-cat {
    background: var(--primary);
    color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .3px;
}
.article-feature-badge {
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .3px;
}
.article-feature-title {
    font-size: 34px; line-height: 1.2; font-weight: 800;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.article-feature-excerpt {
    font-size: 17px; line-height: 1.55;
    color: rgba(255,255,255,.90);
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-feature-read {
    align-self: flex-start;
    color: var(--accent); font-weight: 700; font-size: 16px;
    margin-top: 4px;
}

@media (max-width: 760px) {
    .article-feature { min-height: 340px; padding: 26px; }
    .article-feature-title { font-size: 24px; }
    .article-feature-excerpt { font-size: 15px; }
}
@media (max-width: 600px) {
    .article-feature { min-height: 300px; padding: 20px; }
    .article-feature-title { font-size: 21px; }
}

/* =========================================================
   Секции с фоновым фото + матовым стеклом
   (Наборы на неделю, Отзывы клиентов на главной)
   ========================================================= */

/* Сама секция: фоновое фото подставляется инлайн через style.
   background-attachment: fixed создаёт параллакс-эффект — фото «приклеено»
   к экрану, а контент прокручивается поверх (на мобильных отключается). */
.section-bg-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    isolation: isolate; /* новый контекст стекирования, чтобы ::before не вылезал */
}
/* Слой матового стекла поверх фото. Лежит выше фона, но ниже контента. */
.section-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);           /* светлое стекло */
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    z-index: 0;
    pointer-events: none;
}
/* Контент секции — выше стекла. Оборачиваем через > * не нужно,
   т.к. внутри секции один .container — поднимаем его. */
.section-bg-image > .container,
.section-bg-image > .container-narrow {
    position: relative;
    z-index: 1;
}
/* Тёмная тема: тёмное матовое стекло */
[data-theme="dark"] .section-bg-image::before {
    background: rgba(10, 10, 10, 0.80);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}
/* В тёмной теме секция-с-фоном не должна показывать свой прежний
   секционный фон (бывший section-light) — он перекрывается стеклом. */
[data-theme="dark"] .section-bg-image.section-light {
    background-color: transparent;
    box-shadow: none;
}

/* Мобильные: отключаем background-attachment: fixed (лагает/не работает на iOS),
   параллакс здесь не критичен — остаётся статичный фон со стеклом. */
@media (max-width: 600px) {
    .section-bg-image { background-attachment: scroll; }
}

/* ============================================================
   Выезжающая корзина (drawer) — правая боковая панель.
   ============================================================ */

/* Затемнение фона при открытом drawer. */
.cart-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
    z-index: 200;
}
.cart-drawer-overlay.open { opacity: 1; visibility: visible; }

/* Сама панель: справа, 50% ширины (десктоп), выезжает по translateX. */
.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 50%; height: 100vh;
    background: var(--bg-card);
    color: var(--text);
    box-shadow: -10px 0 40px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 201;
    display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

/* Шапка drawer. */
.cart-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-drawer-head h3 { margin: 0; font-size: 18px; }
.cart-drawer-close {
    background: none; border: none; cursor: pointer;
    font-size: 26px; line-height: 1; color: var(--text-muted);
    padding: 0 4px; transition: color .15s;
}
.cart-drawer-close:hover { color: var(--danger); }

/* Тело со списком товаров — скроллится. */
.cart-drawer-body {
    flex: 1; overflow-y: auto;
    padding: 16px 20px;
    display: flex; flex-direction: column;
}

/* Список товаров внутри drawer (переиспользует .cart-item). */
.cart-drawer-items { display: flex; flex-direction: column; gap: 12px; }
.cart-drawer-items .cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
        "img info price"
        "img qty price";
    gap: 8px 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-items .cart-item-image { grid-area: img; width: 64px; }
.cart-drawer-items .cart-item-image img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cart-drawer-items .cart-item-price { grid-area: price; font-weight: 700; color: var(--primary); white-space: nowrap; }
.cart-drawer-items .qty-control { grid-area: qty; justify-self: start; }
.cart-item-remove {
    background: none; border: none; cursor: pointer;
    color: var(--danger); font-size: 12px; padding: 2px 0; margin-top: 4px;
}
.cart-item-remove:hover { text-decoration: underline; }

/* Пустое состояние drawer. */
.cart-drawer-empty { text-align: center; padding: 40px 20px; margin: auto; }
.cart-drawer-empty .ico { font-size: 56px; margin-bottom: 12px; }
.cart-drawer-empty h3 { margin: 0 0 6px; }
.cart-drawer-empty p { color: var(--text-muted); margin: 0 0 18px; }

/* Подвал drawer: сумма + кнопки (не скроллится). */
.cart-drawer-foot {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}
.cart-drawer-clear { margin-bottom: 10px; }
.cart-drawer-foot .summary-row.total {
    display: flex; justify-content: space-between;
    font-size: 18px; font-weight: 800; margin-bottom: 14px;
}
.cart-drawer-foot .summary-row.total span:last-child { color: var(--primary); }

/* Адаптив: на мобильных drawer шире (85%). */
@media (max-width: 760px) {
    .cart-drawer { width: 85%; }
    .cart-drawer-items .cart-item { grid-template-columns: 56px 1fr; grid-template-areas: "img info" "img qty" "price price"; }
}

/* Тёмная тема drawer. */
[data-theme="dark"] .cart-drawer { background: #1a1a1a; box-shadow: -10px 0 40px rgba(0,0,0,.5); }
[data-theme="dark"] .cart-drawer-head,
[data-theme="dark"] .cart-drawer-items .cart-item,
[data-theme="dark"] .cart-drawer-foot { border-color: rgba(255,255,255,.08); }


/* =========================================================
   Акции (промо-блюда)
   ========================================================= */

/* Сетка карточек акций */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Карточка акции */
.promo-card {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    color: var(--text);
    text-decoration: none;
}
.promo-card-img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f2;
    position: relative;
}
.promo-card-img-stub {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; color: #cbd5e1; background: #f8fafc;
}
.promo-card-discount {
    position: absolute; top: 12px; right: 12px;
    background: var(--danger); color: #fff;
    font-size: 14px; font-weight: 800;
    padding: 5px 12px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(231,20,20,.3);
}
.promo-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-card-title { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0; }
.promo-card-excerpt {
    font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.promo-card-prices {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: auto;
}
.promo-card-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.promo-card-oldprice { font-size: 16px; color: #9ca3af; text-decoration: line-through; }
.promo-card-more { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--primary); }

/* Страница акции */
.promo-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.promo-detail-cover {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f2;
    border-radius: var(--radius);
    position: relative;
    box-shadow: var(--shadow);
}
.promo-detail-discount {
    position: absolute; top: 16px; right: 16px;
    background: var(--danger); color: #fff;
    font-size: 18px; font-weight: 800;
    padding: 8px 16px; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(231,20,20,.35);
}
.promo-detail-info h1 { font-size: 45px; line-height: 1.2; margin-bottom: 12px; }
.promo-detail-prices { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.promo-detail-price { font-size: 32px; font-weight: 800; color: var(--primary); }
.promo-detail-oldprice { font-size: 22px; color: #9ca3af; text-decoration: line-through; }
.promo-detail-lead { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; font-weight: 500; }
.promo-detail-footer { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
    .promo-detail { grid-template-columns: 1fr; }
    .promo-detail-info h1 { font-size: 36px; }
}
@media (max-width: 600px) {
    .promo-grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .promo-card { background: #1a1a1a; }
[data-theme="dark"] .promo-card-img-stub { background: rgba(255,255,255,.04); color: #475569; }

/* ============================================================
   Утилитарные типографические классы (design tokens).
   Размеры берутся из переменных --fs-*, чтобы работало в обеих темах.
   ============================================================ */
.h1 { font-family: var(--font-heading); font-size: var(--fs-h1); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.h3 { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
.h4 { font-family: var(--font-heading); font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }

.text-body { font-size: var(--fs-body); line-height: 1.6; }
.text-muted { color: var(--text-muted); }
.text-caption { font-size: var(--fs-sm); line-height: 1.4; color: var(--text-muted); }
.text-xs { font-size: var(--fs-xs); line-height: 1.4; }

/* Градиентный текст (изумруд → светлый). */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
/* Градиентный текст акцента (оранжевый). */
.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================================
   Карта на странице «Контакты» — рядом с формой обратной связи.
   ============================================================ */
.contacts-map {
    width: 100%;
    height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-soft);
    margin-bottom: 16px;
}
/* Заглушка, если ключ Яндекс.Карт не задан. */
.contacts-map-stub {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; text-align: center; padding: 30px 20px;
    color: var(--text-muted);
}
@media (max-width: 600px) {
    .contacts-map { height: 280px; }
}

/* ============================================================
   Видео-анонсы — мини-плейеры в хаотичном разбросе (до 5).
   Контейнер flex-wrap с центрированием, плейеры маленькие
   (≈180px), с разными вертикальными отступами для ритма.
   ============================================================ */
.videos-scatter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 22px;
    padding: 12px 0 20px;
}
.video-mini {
    flex: 0 0 auto;
    width: 180px;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    background: #000;
}
.video-mini:hover { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-lg); }
.video-mini video {
    width: 100%;
    aspect-ratio: 9/16;   /* вертикальное мини-видео (короткий формат) */
    object-fit: cover;
    display: block;
    background: #000;
}
.video-mini-title {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 6px 8px;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}

/* Кнопка «На весь экран» — поверх видео в правом верхнем углу. */
.video-mini-fs {
    position: absolute;
    top: 6px; right: 6px;
    z-index: 2;
    width: 28px; height: 28px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .12s;
    opacity: 0;                 /* скрыта по умолчанию */
}
.video-mini:hover .video-mini-fs { opacity: 1; }  /* видна при наведении */
.video-mini-fs:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.1); }
.video-mini-fs svg { fill: currentColor; display: block; }
/* На тач-устройствах кнопка всегда видна (нет hover). */
@media (hover: none) { .video-mini-fs { opacity: 1; } }

/* Хаотичный ритм: разные вертикальные смещения для первых 5 плейеров,
   чтобы они не стояли в ровный ряд, а «гуляли» по высоте секции. */
.video-mini:nth-child(1) { margin-top: 28px; }
.video-mini:nth-child(2) { margin-top: 0; }
.video-mini:nth-child(3) { margin-top: 40px; }
.video-mini:nth-child(4) { margin-top: 10px; }
.video-mini:nth-child(5) { margin-top: 34px; }

/* Адаптив: на мобильных чуть крупнее и ровнее. */
@media (max-width: 600px) {
    .video-mini { width: 150px; }
    .video-mini:nth-child(n) { margin-top: 0; }
}

/* Тёмная тема. */
[data-theme="dark"] .video-mini { background: #000; box-shadow: 0 8px 24px rgba(0,0,0,.5); }

