/* Стили для страницы меню */
.menu-page {
    background-color: #ede6db;
    min-height: 100vh;
}

/* Hero секция меню */
.menu-hero {
    background-image: url(../images/header__bg.jpg);
    background-image: image-set(
        '../images/header__bg.avif' type('image/avif'),
        '../images/header__bg.webp' type('image/webp'),
        '../images/header__bg.jpg' type('image/jpeg')
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 100px;
    position: relative;
    margin-bottom: 60px;
}

.menu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.menu-hero .conteiner {
    position: relative;
    z-index: 1;
}

.menu-hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    text-align: center;
    color: #ffd500;
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-hero-desc {
    text-align: center;
    color: #f5f5f5;
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* PDF контейнер */
.pdf-container {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.pdf-wrapper {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* При наведении - увеличиваем и поднимаем тень */
.pdf-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.pdf-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.pdf-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Лёгкое увеличение картинки внутри */
.pdf-wrapper:hover .pdf-preview img {
    transform: scale(1.01);
}

.pdf-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 10px;
}

.pdf-label span:first-child {
    font-size: 18px;
    font-weight: 500;
    color: #3e3125;
}

.pdf-label span:last-child {
    color: #ffd500;
    font-size: 14px;
    background: rgba(62, 49, 37, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

/* Модальное окно для увеличенного PDF */
.pdf-modal {
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.9);
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.pdf-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.pdf-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #2a2a2a;
    color: white;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
}

.pdf-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.pdf-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pdf-embed {
    flex: 1;
    width: 100%;
    height: calc(100% - 70px);
    border: none;
}

/* Фиксированная кнопка "Назад" слева вверху */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 213, 0, 0.3);
    border-radius: 50px;
    color: #ffd500;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background: rgba(255, 213, 0, 0.9);
    color: #3e3125;
    transform: translateX(-3px);
    border-color: #ffd500;
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}














@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .menu-hero-title {
        font-size: 40px;
    }
    
    .menu-hero-desc {
        font-size: 16px;
    }
    
    .pdf-container {
        padding: 0 16px;
    }
    
    .pdf-wrapper {
        padding: 12px;
    }
    
    .pdf-label span:first-child {
        font-size: 14px;
    }
    
    .pdf-modal {
        width: 95vw;
        height: 95vh;
    }
    
    .back-button {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .menu-hero-title {
        font-size: 32px;
    }
    
    .back-button {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .back-button span {
        display: none;
    }
    
    .back-button svg {
        width: 20px;
        height: 20px;
    }
}