
/* ========== ШРИФТЫ ========== */
@font-face {
    font-family: 'Tilda Sans';
    src: url('fonts/TildaSans-VF.woff2') format('woff2-variations');
    font-weight: 300,400,700,500;
    font-style: normal;
    font-display: swap;
}

:root {
    --sticky-tabs-height: 0px;
}

.section-title {
    scroll-margin-top: var(--sticky-tabs-height);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body {
    background-color: #0c0c0c;
    font-family: 'Tilda Sans', 'Inter', system-ui, sans-serif;
    color: #f0f0f0;
    line-height: 1.4;
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== ХЕДЕР ========== */
.header {
    background-color: #000000;
    padding: 18px 0;
    border-bottom: 1px solid #2a2a2a;

    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area img {
    max-height: 54px;
    width: auto;
    display: block;
}

.contact-info {
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(255,255,255,0.03);
    padding: 8px 16px;
    border-radius: 48px;
}

.contact-info a {
    color: #f0f0f0;
    text-decoration: none;
}
.contact-info a:hover { color: #e0a82b; }

/* ========== ТАБЫ ========== */
.tabs-container {
    background: #000000;
    position: sticky;
    z-index: 1000;
    top: 0;
    padding-top: 20px;
    overflow-x: auto;
    white-space: nowrap;
}
.tabs {
    
    display: inline-flex;
    gap: 12px;
    padding-bottom: 12px;
}
.tab-btn {
    background: #ffffff;
    border: none;
    color: #000000;
    font-family: 'Tilda Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s;
}
.tab-btn:hover { background: #e0e0e0; }
.tab-btn.active { background: #e0a82b; color: #0c0c0c; }

.tab-content {
    display: none;
    animation: fade 0.25s ease; 
    }
.tab-content.active-content { 
    display: block; 
    }
@keyframes fade {
    from { opacity: 0; transform: translateY(6px);}
    to { opacity: 1; transform: translateY(0);}
}
/* ========== ПОДТАБЫ (второй уровень) ========== */
.sub-tabs-container {
    background: #000000;
    position: sticky;
    top: 60px; 
    z-index: 999; 
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
}
.sub-tabs {
    display: inline-flex;
    gap: 8px;
}
.sub-tab-btn {
    background: #2a2a2a;
    color: #e0e0e0;
    font-family: 'Tilda Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;      /* базовый уменьшенный шрифт */
    text-transform: uppercase;
    padding: 6px 14px;      /* компактные отступы */
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s;
    border: 1px solid #3a3a3a;
    white-space: nowrap;
}
.sub-tab-btn:hover {
    background: #3a3a3a;
}
.sub-tab-btn.active {
    background: #e0a82b;
    color: #0c0c0c;
    border-color: #e0a82b;
}

/* Для больших экранов делаем кнопки ещё компактнее, если нужно */
@media (min-width: 1024px) {
    .sub-tab-btn {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    .sub-tabs {
        gap: 6px;
    }
}

/* ========== СЕКЦИИ И КАРТОЧКИ ========== */
.white-decor-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 30%, rgba(255,255,255,0.5) 70%, rgba(255,255,255,0) 100%);
    margin: 48px 0 32px;
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 32px;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #bbbbbb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    border-left: 4px solid #e0a82b;
    padding-left: 20px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.menu-card {
    background-color: #171717;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.6);
    border-color: #3a3a3a;
}
.menu-card.no-image {
    padding: 20px 16px;
    justify-content: center;
}
.menu-card.no-image .card-content {
    padding: 0;
}
.card-img {
    width: 100%;
    aspect-ratio: 1 / 1;  
    object-fit: cover;
    object-position: center;  
    display: block;
}
.card-content {
    padding: 14px 12px 16px;
}
.dish-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    word-break: normal;
}
.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 4px 0;
}
.dish-price {
    font-size: 1rem;
    font-weight: 600;
    color: #e0a82b;
}
.dish-weight {
    display: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #b0b0b0;
    background: #2a2a2a;
    padding: 2px 8px;
    border-radius: 30px;
}
.dish-description {
    font-size: 0.8rem;
    color: #b0b0b0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Модалка */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container {
    background: #121212;
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    border-radius: 32px;
    border: 1px solid #333;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s;
    display: flex;
    flex-direction: column;
}
.active .modal-container { transform: scale(1); }
.modal-img { 
    width: 100%; 
    aspect-ratio: 1 / 1;  
    object-fit: cover;
    object-position: center;  
}
.modal-content { 
    padding: 24px 28px 32px; 
    position: relative; 
    overflow-y: auto;
    flex: 1;
}
.modal-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 12px; 
    padding-right: 30px; 
    word-break: normal;
}
.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.modal-price { font-size: 1.4rem; color: #e0a82b; font-weight: 600; }
.modal-weight {
    font-size: 1.1rem;
    color: #b0b0b0;
    background: #2a2a2a;
    padding: 4px 14px;
    border-radius: 40px;
}
.modal-description { 
    font-size: 1rem; 
    line-height: 1.5; 
    color: #cdcdcd; 
    white-space: pre-wrap; 
    word-break: normal;
}
.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.1);
    border: none;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.close-modal:hover { background: #e0a82b; color: #0c0c0c; transform: rotate(90deg); }

/* Кнопка наверх */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #e0a82b;
    color: #0c0c0c;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    z-index: 99;
}
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    background: #f0c04a;
}

/* Контакты и подвал */
.contacts-block {
    background: #0a0a0a;
    border-radius: 32px;
    padding: 48px 32px;
    margin: 60px 0 30px;
    border: 1px solid #282828;
}
.contacts-title {
    font-size: 1.9rem;
    text-align: center;
    background: linear-gradient(120deg, #e0a82b, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 28px;
}
.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.contact-item {
    flex: 1;
    min-width: 200px;
    background: #121212;
    padding: 22px 18px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid #2a2a2a;
}
.contact-item:hover { border-color: #e0a82b; }
.contact-label { font-weight: 600; color: #e0a82b; margin-bottom: 8px; }
.footer {
    background-color: #030303;
    padding: 28px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #7a7a7a;
    border-top: 1px solid #202020;
}

/* Адаптив */
@media (min-width: 640px) { 
    .cards-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px;
    }
    .dish-weight {
        display: inline-block;
    }
    .dish-title {
        font-size: 1.25rem;
    }
    .card-content {
        padding: 18px 16px 20px;
    }
    .dish-description {
        -webkit-line-clamp: 3;
    }
}

@media (min-width: 1024px) { 
    .cards-grid { 
        grid-template-columns: repeat(5, 1fr); 
        gap: 24px;
    }
}
@media (max-width: 640px) {
    .header .container { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
    .contact-info { text-align: center; width: 100%; background: transparent; padding: 0; }
    .section-title { font-size: 1.7rem; }
    .tab-btn { padding: 8px 18px; font-size: 0.8rem; }
    .container { padding: 0 12px; }
}
.tabs-container,
.sub-tabs-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и старый Edge */
}

.tabs-container::-webkit-scrollbar,
.sub-tabs-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
/* Плашка NEW на карточке */
.menu-card {
position: relative;
}
.new-badge {
position: absolute;
top: 12px;
right: 12px;
background: #e0a82b;
color: #0c0c0c;
font-size: 0.75rem;
font-weight: 700;
padding: 4px 12px;
border-radius: 20px;
letter-spacing: 1px;
z-index: 2;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
