/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100dvh;
    background-color: #f9fafc;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    text-transform: uppercase;
    position: relative;
}

/* Контейнер для основного контента */
.container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Стили для логотипа */
.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
    width: calc(100vw - 80px);
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Половины экрана */
.half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.left-half {
    left: 0;
}

.right-half {
    right: 0;
}

/* Контейнеры для медиа */
.media-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-container video,
.media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    /* opacity: 0; */
    transition: opacity 0.5s ease-in-out;
}

.media-container video.active,
.media-container img.active {
    opacity: 1;
}

/* Адрес и инстаграм */
.address-container {
    position: fixed;
    bottom: 24px;
    left: 40px;
    pointer-events: auto;
    font-weight: 500;
    font-size: 20px;
    color:#307fe2;
}

.address-link, .menu-footer a {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #307fe2;
    text-decoration: none;
    transition: opacity 0.3s;
}

.address-link:hover, .menu-footer a:hover {
    opacity: 0.7;
}

/* Кнопка меню */
.menu-button {
    position: fixed;
    top: 24px;
    right: 40px;
    z-index: 100;
    background: none;
    border: none;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #307fe2;
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 0px;
}

.menu-button:hover {
    opacity: 0.7;
}

/* Стили для меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9fafc;
    z-index: 150;
    
    /* transform: translateY(-100%); */
    /* transition: transform 0.5s ease-in-out; */
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-container {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    overflow-y: scroll;
}

/* Половины меню */
.menu-half {
    width: 50%;
    height: 100%;
    padding: 24px 40px;
    position: relative;
}

/* Фон для разделов меню */
.menu-bg-mobile {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100%;
    z-index: 1;
}

.menu-bg-mobile img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    vertical-align: bottom;
}

.food-bg {
    /* Можно добавить фоновое изображение для еды при необходимости */
}

.drinks-bg {
    background-image: url('Layer10.png');
}

/* Заголовки разделов меню */
.menu-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.menu-header h2 {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #307fe2;
}

/* Стили для элементов меню */
.menu-items {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
}

/* Убираем отступы для групп элементов */
.menu-group {
    display: flex;
    flex-direction: column;
}

.menu-group .menu-item {
    padding-top: 0;
}

.menu-group .menu-item:first-child {
    padding-top: 12px;
}

.menu-group .menu-item:not(:last-child) {
    padding-bottom: 4px;
}

.item-info {
    flex: 1;
}

.item-name {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #307fe2;
}

.item-description {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #307fe2;
    text-transform: initial;
    opacity: 0.8;
    max-width: 370px;
}

.item-price {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #307fe2;
}

/* Кнопка закрытия меню */
.close-menu-button {
    position: fixed;
    top: 24px;
    right: 40px;
    z-index: 300;
    background: none;
    border: none;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #307fe2;
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 0px;
}

.close-menu-button:hover {
    opacity: 0.7;
}


/* Добавьте в конец файла style.css */

/* Стиль для пустого фона */
.media-container:empty {
    background-color: transparent;
}

/* Если нужно, чтобы пустая область была видимой */
.half {
    background-color: #f9fafc; /* Цвет фона страницы */
}

/* Улучшенные переходы для медиа */
.media-container {
    transition: background-color 0.5s ease-in-out;
}

.menu-category-title {
    display: none;
}

.menu-content-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px 40px;
    width: 100%;
    gap: 80px;
    overflow-y: auto;
}

.menu-content-mobile::-webkit-scrollbar {
    width: 0px;
}

.menu-footer {
    /* display: none; */
    font-weight: 500;
    font-size: 20px;
    color:#307fe2;
}
.menu-footer span {
    font-size: 20px;
    color:#307fe2;
    font-weight: 500;

}

.menu-section-title {
    font-size: 20px;
    color:#307fe2;
    position: relative;
    z-index: 200;
    font-weight: 500;
    margin-bottom: 50px;
}


/* Мобильная адаптация */
@media (max-width: 768px) {
   
    body {
        width: 100vw;
        height: 100dvh;
        overflow: hidden;
    }
    
    .container {
        padding: 24px 20px;
        width: 100vw;
        height: 100dvh;
    }
    
    /* Скрываем десктопные половины */
    .half {
        display: none;
    }
    
    /* Полноэкранный медиа-контейнер */
    .media-fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Отступ для адреса и кнопки меню */
        z-index: 50;
    }
    
    .media-container {
        width: 100%;
        height: 100%;
        border-radius: 0px;
        overflow: hidden;
    }
    
    .media-container video,
    .media-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Логотип */
    .logo-container {
        position: fixed;
        top: 50%;
        left: 20px;
        right: 20px;
        transform: translateY(-50%);
        z-index: 100;
        width: calc(100vw - 40px);
    }
    

    .address-container span,
    .menu-footer span {
        display: none;
    }
    
    .address-link {
        font-size: 16px;
        line-height: 20px;
        width: 100%;
    }
    
    /* Кнопка меню */
    .menu-button {
        position: fixed;
        top: 24px;
        right: 20px;
        font-size: 18px;
        line-height: 22px;
        z-index: 200;
        font-size: 16px;
    }
    
    /* Меню для мобильной версии */
    .menu-overlay {
        padding: 24px 0px 0px;
        transition: none;
    }
    
    .menu-container {
        width: 100%;
        min-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .menu-content-mobile {
        display: block;
        width: 100%;
        position: relative;
        padding: 0px;
        padding-bottom: 0px; /* Отступ для футера */
    }
    
    .menu-category-title {
        font-family: 'Helvetica Neue', sans-serif;
        font-weight: 500;
        font-size: 18px;
        line-height: 22px;
        color: #307fe2;
        margin-bottom: 35px;
        text-transform: uppercase;
        padding: 0px 20px;
        display: block;
    }
    
    .menu-section {
        margin-bottom: 35px;
        padding: 0px 20px;
    }
    
    .menu-section:last-child {
        margin-bottom: 0;
    }
    
    .menu-section-title {
        font-family: 'Helvetica Neue', sans-serif;
        font-weight: 500;
        font-size: 18px;
        line-height: 22px;
        color: #307fe2;
        margin-bottom: 30px;
        text-transform: uppercase;

        display: none;
    }

    .menu-overlay {
        z-index: 200;
    }
    
    .menu-item {
        padding: 12px 0;
    }
    
    .item-name {
        font-size: 18px;
        line-height: 22px;
    }
    
    .item-description {
        font-size: 16px;
        line-height: 20px;
    }
    
    .item-price {
        font-size: 18px;
        line-height: 22px;
    }
    
    /* Фон меню */
    .menu-bg-mobile {
        width: 100%;
        height: auto;
        margin-top: 35px;
        position: static;
    }
    .menu-bg-mobile img {
        width: 100%;
        vertical-align: bottom;
    }
    
    /* Футер меню */
    .menu-footer {
        display: block;
        transform: translateY(-100%);
        padding: 24px 20px;
        font-size: 16px;
    }
    
    .menu-address-link {
        font-family: 'Helvetica Neue', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
        color: #307fe2;
        text-decoration: none;
    }
    
    /* Кнопка закрытия меню */
    .close-menu-button {
        position: absolute;
        top: 0px;
        right: 20px;
        font-size: 16px;
        line-height: 22px;
        z-index: 201;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .menu-category-title {
        font-size: 16px;
        line-height: 20px;
    }
    
    .menu-section-title {
        font-size: 16px;
        line-height: 20px;
    }
    
    .item-name {
        font-size: 16px;
        line-height: 20px;
    }
    
    .item-description {
        font-size: 14px;
        line-height: 18px;
    }
    
    .item-price {
        font-size: 16px;
        line-height: 20px;
    }
    
    .address-link,
    .menu-address-link {
        font-size: 14px;
        line-height: 18px;
    }
}