/* Современное мобильное меню - Mobile First */

:root {
    --menu-bg: #faf8f5;
    --menu-card: #ffffff;
    --menu-text: #2c1810;
    --menu-text-light: #6b5d4f;
    --menu-accent: #d4af37;
    --menu-border: #e8e0d6;
}

/* Заголовок */
.menu-header {
    background: linear-gradient(135deg, var(--wood-dark) 0%, var(--wood-medium) 100%);
    padding: 80px 0 30px;
    margin-top: 70px;
    text-align: center;
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-light);
    margin: 0 0 0.5rem 0;
}

.menu-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Переключатель */
.menu-switcher {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--menu-border);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.switcher-buttons {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
    background: var(--menu-bg);
    padding: 6px;
    border-radius: 50px;
}

.switcher-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--menu-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.switcher-btn.active {
    background: linear-gradient(135deg, var(--menu-accent) 0%, #f4d03f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.switcher-btn span:first-child {
    font-size: 1.2rem;
}

/* Поиск */
.menu-search {
    background: var(--menu-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--menu-border);
}

.search-wrapper {
    position: relative;
    max-width: 100%;
}

#search-input {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid var(--menu-border);
    border-radius: 50px;
    font-size: 0.95rem;
    background: white;
    color: var(--menu-text);
    font-family: 'Inter', sans-serif;
}

#search-input:focus {
    outline: none;
    border-color: var(--menu-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--menu-border);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--menu-text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: var(--menu-accent);
    color: white;
}

/* Фильтры */
.menu-filters {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--menu-border);
}

.filters-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--menu-border);
    border-radius: 50px;
    background: var(--menu-bg);
    color: var(--menu-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.filter-btn:hover {
    border-color: var(--menu-accent);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--menu-accent) 0%, #f4d03f 100%);
    color: white;
    border-color: var(--menu-accent);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Контент меню - стиль страниц книги */
.menu-main {
    padding: 2rem 0;
    background: var(--menu-bg);
    min-height: 50vh;
}

.menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--menu-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.menu-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(107, 78, 61, 0.2) 10%, 
        rgba(107, 78, 61, 0.2) 90%, 
        transparent 100%);
    z-index: 1;
}

.menu-column {
    padding: 2rem 2rem;
    position: relative;
}

.menu-column:first-child {
    border-right: 1px solid rgba(107, 78, 61, 0.1);
}

.menu-item {
    padding: 0.8rem 0;
    border-bottom: 1px dotted rgba(107, 78, 61, 0.15);
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item.hidden {
    display: none;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.4rem;
    position: relative;
}

.item-name-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--menu-text);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.item-name::after {
    content: '';
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 2px,
        rgba(107, 78, 61, 0.2) 2px,
        rgba(107, 78, 61, 0.2) 4px
    );
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    min-width: 20px;
}

.alcohol-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.item-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--menu-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.item-composition {
    color: var(--menu-text-light);
    font-size: 0.9rem;
    margin: 0.3rem 0 0.2rem 0;
    line-height: 1.6;
    font-style: italic;
}

.item-weight {
    color: var(--menu-text-light);
    font-size: 0.8rem;
    margin: 0.2rem 0 0 0;
    opacity: 0.7;
}

/* Сообщение о пустом результате */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--menu-text-light);
}

.no-results p {
    font-size: 1rem;
    margin: 0;
}

/* Схема зала */
.hall-scheme {
    padding: 2rem 0;
    background: white;
    border-top: 1px solid var(--menu-border);
}

.scheme-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-align: center;
    color: var(--menu-text);
    margin-bottom: 1.5rem;
}

.scheme-image-wrapper {
    text-align: center;
}

.scheme-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--menu-border);
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .menu-content {
        grid-template-columns: 1fr;
    }

    .menu-content::before {
        display: none;
    }

    .menu-column {
        padding: 2rem 1.5rem;
    }

    .menu-column:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(107, 78, 61, 0.1);
    }

    .item-name::after {
        display: none;
    }

    .item-header {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }

    .item-price {
        flex-shrink: 0;
    }
}

/* Планшеты */
@media (min-width: 768px) {
    .menu-title {
        font-size: 3rem;
    }

    .menu-subtitle {
        font-size: 1.1rem;
    }

    .switcher-buttons {
        max-width: 500px;
    }

    .switcher-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    #search-input {
        font-size: 1rem;
        padding: 1rem 2.5rem 1rem 1rem;
    }

    .filters-scroll {
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .menu-main {
        padding: 2rem 0;
    }

    .menu-column {
        padding: 3rem 2.5rem;
    }

    .item-name {
        font-size: 1.2rem;
    }

    .item-price {
        font-size: 1.2rem;
    }
}

/* Десктоп */
@media (min-width: 1024px) {
    .menu-header {
        padding: 100px 0 40px;
    }

    .menu-title {
        font-size: 4rem;
    }

    .menu-subtitle {
        font-size: 1.2rem;
    }

    .menu-main {
        padding: 3rem 0;
    }

    .menu-content {
        gap: 2rem;
    }

    .menu-item {
        padding: 1.75rem;
    }

    .item-name {
        font-size: 1.3rem;
    }

    .item-price {
        font-size: 1.6rem;
    }
}
