/* ============================================================
   Ali Burger — публичный сайт-визитка
   Палитра совпадает с мобильным приложением:
   фон #282519, панели #1F1A16 / #2B241D, текст #FFD9C9,
   приглушенный #C7A79A, рамки #55463A, акцент #C65A00, кнопки #642413
   ============================================================ */

:root {
    --bg: #282519;
    --panel: #1F1A16;
    --panel-alt: #2B241D;
    --text: #FFD9C9;
    --muted: #C7A79A;
    --border: #55463A;
    --accent: #C65A00;
    --button: #642413;
    --danger: #E73012;
    --open: #2E7D32;
    --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

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

h1, h2, h3 { font-weight: 900; letter-spacing: 0; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.05; }
h2 { font-size: clamp(22px, 3.5vw, 30px); }

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(31, 26, 22, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    font-size: 19px;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name { font-size: 19px; font-weight: 900; }

.site-nav { display: flex; gap: 4px; }

.site-nav a {
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: color .15s, background .15s;
}

.site-nav a:hover { color: var(--text); background: var(--panel-alt); }
.site-nav a.active { color: var(--text); background: var(--button); }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 780px) {
    .nav-burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
    }
    .nav-burger span {
        width: 22px;
        height: 2.5px;
        background: var(--text);
        border-radius: 2px;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        padding: 10px 16px 16px;
    }
    .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---------- Секции ---------- */

.section { padding: 34px 0; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.link-more { color: var(--muted); font-weight: 700; }
.link-more:hover { color: var(--text); }

.page-head { padding: 44px 0 8px; }
.page-sub { color: var(--muted); margin-top: 10px; max-width: 640px; }

/* ---------- Hero ---------- */

.hero-section { padding: 26px 0 8px; }

.hero-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-carousel .hero-slide { scroll-snap-align: start; flex: 0 0 100%; }

.hero-slide {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(22px, 4vw, 44px);
    min-height: 300px;
}

.hero-text p { color: var(--muted); margin: 14px 0 20px; font-size: 17px; }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-price { font-size: 22px; font-weight: 900; }

.hero-art {
    display: grid;
    place-items: center;
    font-size: 96px;
    min-height: 200px;
}
.hero-art img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45));
}

.carousel-hint { color: var(--muted); font-size: 13px; margin-top: 8px; text-align: center; }

.hero-kicker {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ---------- Промо-посты (страница акций) ---------- */

.promo-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.promo-post {
    background: var(--panel);
    border: 1px solid rgba(85, 70, 58, 0.45);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s, border-color .15s;
}
.promo-post:hover { transform: translateY(-3px); border-color: var(--muted); }

.promo-post-banner {
    aspect-ratio: 16 / 9;
    background: var(--panel-alt);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.promo-post-banner img { width: 100%; height: 100%; object-fit: cover; }
.promo-post-banner.is-empty { font-size: 52px; }

.promo-post-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-post-body h2 { font-size: 19px; line-height: 1.2; }
.promo-post-body p { color: var(--muted); font-size: 14.5px; }
.promo-post-date { color: #8d7a70; font-size: 12.5px; margin-top: auto; padding-top: 6px; }

@media (max-width: 700px) {
    .hero-slide { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-art { min-height: 150px; }
    .hero-art img { max-height: 190px; }
}

/* ---------- Кнопки и бейджи ---------- */

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s, background .15s;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d96a10; }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--muted);
    padding: 10px 14px;
    font-size: 13.5px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    background: var(--danger);
}
.badge-muted { background: #4B423C; }
.badge-open { background: var(--open); }

/* ---------- Карточки товаров ---------- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.cards-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 230px);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.product-card {
    background: var(--panel);
    border: 1px solid rgba(85, 70, 58, 0.45);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    transition: transform .15s, border-color .15s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--muted); }
.product-card.is-unavailable { opacity: .62; }

.product-image {
    position: relative;
    height: 140px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}
.product-image img { max-width: 100%; max-height: 140px; object-fit: contain; }
.product-image .badge { position: absolute; top: 4px; left: 4px; }

.image-fallback {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    font-size: 38px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.product-tag {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.product-name { font-size: 16px; line-height: 1.2; min-height: 38px; }

.product-desc {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price { margin-top: auto; padding-top: 10px; font-size: 19px; font-weight: 900; }

/* ---------- Полное меню ---------- */

.shop-picker {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.shop-picker label { color: var(--muted); font-weight: 700; }
.shop-picker select {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    max-width: 100%;
}

.category-nav {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(40, 37, 25, 0.97);
    border-bottom: 1px solid var(--border);
    margin-top: 18px;
}

.category-nav-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.category-nav-row::-webkit-scrollbar { display: none; }

.category-nav a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 800;
    font-size: 13.5px;
    white-space: nowrap;
}
.category-nav a:hover { color: var(--text); border-color: var(--muted); }

.menu-section { scroll-margin-top: 130px; }
.menu-section h2 { margin-bottom: 14px; }

/* ---------- Точки ---------- */

.shops-map {
    height: 420px;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 22px;
    z-index: 1;
}

.map-pin { background: transparent; border: none; }
.map-pin-dot {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 6px;
    background: var(--accent);
    border: 2px solid #fff;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .4);
    overflow: hidden;
}

.map-pin-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.shop-card {
    background: var(--panel);
    border: 1px solid rgba(85, 70, 58, 0.45);
    border-radius: var(--radius);
    padding: 18px;
}

.shop-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.shop-address, .shop-hours { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.shop-desc { color: var(--muted); font-size: 13.5px; margin: 8px 0; }
.shop-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Плитки, баннеры, статистика ---------- */

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.tile {
    background: var(--panel);
    border: 1px solid rgba(85, 70, 58, 0.45);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .15s, border-color .15s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--muted); }
.tile-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.app-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, var(--button), #3d1a0e);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(22px, 4vw, 40px);
}
.app-band p { color: var(--muted); margin-top: 8px; max-width: 520px; }

.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 26px auto;
}
.stat {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
}
.stat-number { display: block; font-size: 34px; font-weight: 900; }
.stat-label { color: var(--muted); font-size: 14px; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.about-card {
    background: var(--panel);
    border: 1px solid rgba(85, 70, 58, 0.45);
    border-radius: var(--radius);
    padding: 22px;
}
.about-card p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }

.empty-state {
    background: var(--panel);
    border: 1px dashed var(--border);
    border-radius: 20px;
    padding: 46px 24px;
    text-align: center;
}
.empty-state p { color: var(--muted); margin-top: 10px; }

/* ---------- Подвал ---------- */

.site-footer {
    margin-top: 40px;
    background: var(--panel);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
    padding: 34px 16px;
}

.site-footer h4 { margin-bottom: 12px; font-size: 15px; }
.site-footer a, .site-footer p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.site-footer a:hover { color: var(--text); }

.footer-brand { margin-bottom: 12px; }
.footer-note { color: #8d7a70; font-size: 12.5px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px;
    color: #8d7a70;
    font-size: 13px;
}
