/* custom.css - ФИНАЛЬНЫЙ С 3 КОЛОНКАМИ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #F5F5DC;
    color: #333;
}

/* ===== САЙДБАР ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: #1A1A1A;
    color: #F5F5DC;
    z-index: 1000;
    border-right: 2px solid #8B4513;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #F5F5DC;
    text-decoration: none;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #8B4513;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #8B4513;
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-size: 1rem;
}

.sidebar-contacts {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #AAA;
    margin-top: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* Основной контейнер */
.main-container {
    margin-left: 240px;
    min-height: 100vh;
}

.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.home-main {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.home-logo-img {
    width: 100%;
    max-height: 320px;
    height: auto;
    object-fit: contain;
}

.menu-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

.menu-btn-vertical {
    display: block;
    padding: 16px 24px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid;
    border-radius: 6px;
    background: white;
    text-align: center;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.menu-btn-vertical.btn-kitchen { border-color: #364632; color: #364632; }
.menu-btn-vertical.btn-bar { border-color: #81443E; color: #81443E; }
.menu-btn-vertical.btn-lunch { border-color: #51504E; color: #51504E; }
.menu-btn-vertical.btn-special { border-color: #81443E; color: #81443E; }

.menu-btn-vertical:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== СТРАНИЦЫ МЕНЮ (3 КОЛОНКИ) ===== */
.menu-section {
    padding: 20px 0 30px;
}

.section-header {
    text-align: center;
    padding: 20px 0 25px;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
}

.category-block {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #E0E0E0;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

/* СЕТКА 3 КОЛОНКИ */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.menu-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    transition: all 0.2s ease;
    height: 100%;
}

.menu-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.item-photo {
    width: 100%;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #E0E0E0;
}

.item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.item-photo:hover img {
    transform: scale(1.05);
}

.item-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.item-weight {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.03);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #EEE;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    margin-bottom: 10px;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
    margin-top: auto;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.item-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.discount-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.empty-category {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
    border: 2px dashed #E0E0E0;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #1A1A1A;
    color: #F5F5DC;
    padding: 25px 0 15px;
    border-top: 2px solid #8B4513;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 8px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #CCC;
}

.contact-line i {
    color: #8B4513;
    width: 16px;
    font-size: 0.9rem;
}

.contact-line a {
    color: #CCC;
    text-decoration: none;
}

.contact-line a:hover {
    color: #8B4513;
}

.footer-social {
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #F5F5DC;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: #8B4513;
    color: #000;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.85rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 0;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-container {
        margin-left: 0;
    }
    
    .mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 1001;
        background: #1A1A1A;
        padding: 15px 20px;
        border-bottom: 2px solid #8B4513;
        align-items: center;
        gap: 15px;
    }
    
    .sidebar-toggle {
        background: none;
        border: none;
        color: #8B4513;
        font-size: 1.4rem;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-logo {
        font-weight: 600;
        color: #8B4513;
        font-size: 1.2rem;
        flex: 1;
        text-align: center;
    }
    
    .mobile-overlay.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }
    
    .home-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .home-logo-img {
        max-height: 220px;
    }
    
    .menu-buttons-vertical {
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .item-photo {
        height: 200px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .menu-btn-vertical {
        padding: 14px 20px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .home-main {
        padding: 15px;
    }
    
    .home-logo-img {
        max-height: 180px;
    }
    
    .menu-buttons-vertical {
        gap: 10px;
    }
    
    .menu-btn-vertical {
        padding: 12px 16px;
        font-size: 1.1rem;
    }
    
    .sidebar {
        width: 240px;
    }
    
    .nav-item {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 20px 0 10px;
    }
    
    .item-photo {
        height: 150px;
    }
}