.preload {
    visibility: hidden;
}

/* ——— Анимация для смены текста ——— */
.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade.show {
    opacity: 1;
}

/* ——— базовая стилизация ——— */
body {
    margin: 0;
    padding-top: 60px;
    font-family: Arial, sans-serif;
    color: #fff;
    height: 100%;
    background: #000;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    background-image: url('../img/menu.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: -1;
}


/* ——— топ-бар с флагом и названием ——— */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown button {
    border: none;
    background: transparent;
    cursor: pointer;
}

.lang-dropdown button img {
    width: 32px;
    height: 24px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    margin: 8px 0 0;
    padding: 5px 0;
    border-radius: 4px;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.lang-menu.show {
    display: block;
}

.lang-menu li {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    cursor: pointer;
    transition: background .2s;
}

.lang-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-menu li img {
    width: 24px;
    height: 18px;
    margin-right: 8px;
}

/* название по центру */
.brand-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Great Vibes', cursive;
    /* font-family: 'Bebas Neue', sans-serif; */
    font-size: 2em;
    pointer-events: auto;
}

/* сам блок меню */
.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh-60px);
}

.menu {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

h1 {
    text-align: center;
    margin: 0 0 20px;
}

.section-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.3em;
    margin: 20px 0 10px;
}

.section-header svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-right: 10px;
}

/* списки секций */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .6s ease, opacity .6s ease;
}

ul.show {
    max-height: 8000px;
    opacity: 1;
    margin-bottom: 20px;
}

li {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    cursor: pointer;
}

/* блюда и описание */
.dish-main {
    display: flex;
    justify-content: space-between;
}

.dish-details {
    display: flex;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height .6s ease, padding .3s ease, opacity .4s ease;
    opacity: 0;
    padding-top: 0;
}

.dish-details.show {
    max-height: 350px;
    padding-top: 8px;
    opacity: 1;
}

.dish-details img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 12px;
    cursor: pointer;
}

.dish-details p {
    margin: 0;
    font-size: .9em;
    color: #ddd;
    font-style: italic;
}

/* оверлей */
.img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s;
    z-index: 20;
}

.img-overlay.show {
    visibility: visible;
    opacity: 1;
}

.img-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.7);
}

.x-wrapper {
    position: relative;
    display: inline-block;
}

.x-wrapper>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}


/* медиазапрос */
@media(min-width:768px) {
    .menu {
        margin: auto;
    }

}

@media (max-width: 600px) {
    .background {
        /* разделяем свойства, чтобы шортехенд не «перебивал» */
        background-color: black;
        background-image: url('../img/menu.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        /* вот это точно сработает */
        background-position: 70% 30%;
    }
}

.price-wrap {
    white-space: nowrap;
}