* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
}

/* Красный баннер сверху (универсально для любого тега/класса шапки) */
header,
.header,
.top-banner,
.navbar,
.banner {
    background: linear-gradient(135deg, #c80019 0%, #e10600 50%, #a80014 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(214, 0, 28, 0.35);
    text-align: center;
}

/* Логотип слева в шапке */
header img,
.header img,
.top-banner img,
.banner img,
.logo {
    position: absolute;
    left: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

header h1,
.header h1,
.top-banner h1,
.banner h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

header p,
.header p,
.top-banner p,
.banner p {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

/* Если заголовок и подзаголовок обёрнуты в div */
header > div,
.header > div,
.top-banner > div,
.banner > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Панель вкладок категорий */
.tabs-wrapper,
.categories-bar,
.tabs-container {
    background-color: #141414;
    padding: 16px;
    border-bottom: 1px solid #262626;
    position: sticky;
    top: 0;
    z-index: 100;
}

#category-tabs {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tab-btn {
    background-color: #202020;
    color: #cccccc;
    border: 1px solid #303030;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #d6001c;
}

.tab-btn.active {
    background-color: #d6001c;
    color: #ffffff;
    border-color: #d6001c;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(214, 0, 28, 0.4);
}

/* Основной контейнер меню */
#menu-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 16px 60px;
}

.category-section {
    margin-bottom: 44px;
}

.category-heading {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #d6001c;
    color: #ffffff;
}

/* Сетка карточек (ПК) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Карточка блюда */
.card {
    background-color: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #d6001c;
    box-shadow: 0 8px 24px rgba(214, 0, 28, 0.15);
}

/* Квадратный блок под полное фото 1:1 без обрезки */
.card-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-img-placeholder {
    color: #666666;
    font-size: 14px;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-desc {
    font-size: 13px;
    color: #9e9e9e;
    line-height: 1.4;
    margin-bottom: 14px;
    flex-grow: 1;
}

.card-price {
    display: inline-block;
    align-self: flex-start;
    background-color: #222222;
    border: 1px solid #d6001c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Планшеты */
@media (max-width: 900px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Телефоны */
@media (max-width: 560px) {
    header,
    .header,
    .top-banner,
    .navbar,
    .banner {
        padding: 16px;
        justify-content: center;
    }

    header img,
    .header img,
    .top-banner img,
    .banner img,
    .logo {
        position: static;
        margin-right: 12px;
        width: 40px;
        height: 40px;
    }

    header h1,
    .header h1,
    .top-banner h1,
    .banner h1 {
        font-size: 24px;
    }

    #category-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #category-tabs::-webkit-scrollbar {
        display: none;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-desc {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .card-price {
        font-size: 13px;
        padding: 5px 11px;
    }
}

/* Подвал сайта */
footer {
    max-width: 1140px;
    margin: 0 auto 36px;
    padding: 20px 24px;
    background: linear-gradient(180deg, rgba(28, 12, 14, 0.92) 0%, #161616 100%);
    border: 1px solid #2a2a2a;
    border-top: 2px solid #d6001c;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

footer p {
    font-size: 13px;
    color: #d4d4d4;
    line-height: 1.5;
}

footer span {
    color: #ff6b7d;
    font-weight: 600;
}

footer .ai-disclaimer {
    margin-top: 8px;
    font-size: 12px;
    color: #8f8f8f;
    line-height: 1.45;
}

@media (max-width: 560px) {
    footer {
        margin: 0 12px 24px;
        padding: 16px 14px;
        border-radius: 12px;
    }

    footer p {
        font-size: 12px;
    }

    footer .ai-disclaimer {
        font-size: 11px;
    }
}