/* Стили для страницы меню кухни паба */

.hero-wrapper_2 {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    isolation: isolate;
}

.hero-wrapper_2::before {
    content: "";
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('/static/image/fon_pub_food.png') center/cover no-repeat;
    transform: translate(var(--px, 0), var(--py, 0)) scale(1.08);
    will-change: transform;
    transition: transform .06s linear;
    z-index: -1;
}

.hero-wrapper_2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .75);
    z-index: -1;
}

.main-hero_2 {
    position: relative;
    padding: 150px 0px 60px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 100%;
}

.hero-content_2 {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.hero-logo {
    height: clamp(140px, 26vw, 320px);
    width: auto;
    margin-bottom: 20px;
}

.hero-tit {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(48px, 9vw, 120px);
    margin: 0;
    letter-spacing: .02em;
    color: rgba(190, 190, 190, .76);
}

.hero-op {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(18px, 3vw, 30px);
    color: #fff;
    opacity: .9;
    margin: 0;
}

.menu-section {
    padding: 60px 320px;
    background: #473724; 
    min-height: 100vh;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-category {
    margin-bottom: 60px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    color: #d9d9d9;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c4b65e;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.food-items {
    margin-top: 30px;
}

.food-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    gap: 30px;
    border-bottom: 1px solid rgba(196, 182, 94, 0.2);
}

.food-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.food-item.reverse {
    flex-direction: row-reverse;
}

.food-item.no-photo {
    padding-left: 0;
}

.food-photo {
    flex: 0 0 280px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid rgba(196, 182, 94, 0.3);
}

.food-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.food-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    gap: 15px;
    width: 100%;
}

.food-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #e5e4c9;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.food-price {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #c4b65e;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.food-desc {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #b8b5a0;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
}

.food-portion-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.food-portion {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #b8b5a0;
    font-weight: 300;
    line-height: 1.5;
}

.food-composition-link {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #c4b65e;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}


.food-separator {
    color: #e7d865;
    margin: 0 4px;
}

.food-composition-link:hover {
    color: #d9d9d9;
}

.composition-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.composition-popup.active {
    display: flex;
    opacity: 1;
}

.composition-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.composition-popup-content {
    position: relative;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    background: #473724;
    border-radius: 12px;
    border: 2px solid #c4b65e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    overflow-x: hidden;
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.composition-popup.active .composition-popup-content {
    transform: scale(1);
}

.composition-popup-close {
    position: absolute;
    top: 15px;
    right: 17px;
    width: 35px;
    height: 35px;
    background: rgba(196, 182, 94, 0.2);
    border: 2px solid #c4b65e;
    border-radius: 50%;
    color: #c4b65e;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.composition-popup-close:hover {
    background: #c4b65e;
    color: #473724;
    transform: rotate(90deg);
}

.composition-popup-body {
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.composition-image-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid rgba(196, 182, 94, 0.3);
    display: none;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.composition-image-container.has-image {
    display: block;
}

.composition-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.composition-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #e5e4c9;
    margin: 0 0 25px 0;
    text-align: center;
}

.composition-content {
    color: #b8b5a0;
}

.composition-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: #c4b65e;
    margin: 0 0 20px 0;
}

.composition-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.composition-list li {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 2;
    color: #b8b5a0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(196, 182, 94, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.composition-list li:last-child {
    border-bottom: none;
}

.composition-list li span:first-child {
    flex: 1;
    margin-right: 15px;
}

.composition-list li span:last-child {
    color: #c4b65e;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .menu-section {
        padding: 40px 15px;
    }

    .hero-wrapper_2::before {
        transform: translate(0, 0) scale(1.08) !important;
        transition: none !important;
    }

    .category-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .food-item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .food-item.reverse {
        flex-direction: column;
    }

    .food-photo {
        flex: 0 0 100%;
        height: 180px;
    }

    .food-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .food-name {
        font-size: 22px;
        flex: 1;
        min-width: 0;
        margin-right: 15px;
    }

    .food-price {
        font-size: 22px;
        flex-shrink: 0;
        white-space: nowrap;
        margin-left: auto;
    }

    .food-desc {
        font-size: 16px;
    }
    .food-portion {
        font-size: 16px;
    }

    .food-composition-link {
        font-size: 14px;
    }
    .composition-popup-close {
        position: absolute;
        top: 10px;
        right: 7px;
        width: 30px;
        height: 30px;
    }

    .composition-popup-content {
        width: 90%;
        max-height: 80vh;
    }

    .composition-popup-body {
        padding: 30px 20px;
    }

    .composition-title {
        font-size: 26px;
    }

    .composition-subtitle {
        font-size: 18px;
    }

    .composition-list li {
        font-size: 18px;
        gap: 4px;
    }

    .composition-list li span:last-child {
        margin-left: 0;
    }

    .composition-image-container {
        height: 200px;
    }

    .composition-image-container img {
        height: 100%;
    }
}

/* Адаптивность для планшетов */
@media (min-width: 768px) and (max-width: 1194px) {
    .menu-section {
        padding: 50px 40px;
    }

    .hero-wrapper_2::before {
        transform: translate(0, 0) scale(1.08) !important;
        transition: none !important;
    }

    .category-title {
        font-size: 36px;
        margin-bottom: 35px;
    }

    .food-item {
        gap: 25px;
        margin-bottom: 35px;
        padding-bottom: 35px;
    }

    .food-photo {
        flex: 0 0 250px;
        height: 190px;
    }

    .food-name {
        font-size: 25px;
    }

    .food-price {
        font-size: 24px;
    }

    .food-desc {
        font-size: 17px;
    }
}