.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.book-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    z-index: 999;
    transition: left 0.5s ease-out;
}

.book-menu.active {
    left: 0;
    animation: bounce 0.8s ease-out;
}

@keyframes bounce {
    0% { transform: translateX(0); }
    20% { transform: translateX(25px); }
    40% { transform: translateX(-12px); }
    60% { transform: translateX(8px); }
    80% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.menu-page {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d7ccc8;
    border-right: 3px solid #5d4037;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    padding: 100px 40px 40px;
}

.close-menu {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: #3e2723;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
}

.book-menu.active .close-menu {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition-delay: 0.5s;
}

.close-menu:hover {
    background: #5d4037;
    transform: scale(1.1) rotate(90deg);
}

.close-menu::before,
.close-menu::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: #d7ccc8;
    border-radius: 2px;
}

.close-menu::before {
    transform: rotate(45deg);
}

.close-menu::after {
    transform: rotate(-45deg);
}

.menu-page-1 {
    z-index: 3;
    transform: translateX(0);
}

.menu-page-2 {
    z-index: 2;
    transform: translateX(15px);
    background: #c9bcb8;
}

.menu-page-3 {
    z-index: 1;
    transform: translateX(30px);
    background: #bfb2ad;
}

.book-menu.active .menu-page-1 {
    transform: translateX(0);
}

.book-menu.active .menu-page-2 {
    transform: translateX(15px);
}

.book-menu.active .menu-page-3 {
    transform: translateX(30px);
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-link {
    font-size: 2em;
    color: #3e2723;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transform: translateX(50px);
    opacity: 0;
    font-family: 'BritannicBold';
}

.book-menu.active .menu-link {
    transform: translateX(0);
    opacity: 1;
}

.book-menu.active .menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.book-menu.active .menu-link:nth-child(2) {
    transition-delay: 0.2s;
}

.book-menu.active .menu-link:nth-child(3) {
    transition-delay: 0.3s;
}

.book-menu.active .menu-link:nth-child(4) {
    transition-delay: 0.4s;
}

.menu-link:hover {
    color: #5d4037;
    border-bottom-color: #5d4037;
    transform: translateX(-10px);
}

.menu-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid #5d4037;
}

.menu-social {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.menu-social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.menu-social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.menu-social-link:hover img {
    filter: brightness(0) saturate(100%) brightness(0.7);
}

.book-menu.active .menu-social-link {
    opacity: 1;
    transform: scale(1);
}

.book-menu.active .menu-social-link:nth-child(1) {
    transition-delay: 0.5s;
}

.book-menu.active .menu-social-link:nth-child(2) {
    transition-delay: 0.6s;
}

.menu-instagram-icon {
    width: 50px;
    height: 50px;
}

@media (max-width: 768px) {
    .book-menu {
        width: 90%;
    }
}


.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin-right: 20px;
    z-index: 1001;
}

.burger-menu span {
    height: 4px;
    background: #3e2723;
    border-radius: 2px;
    width: 100%;
    transition: all 0.3s ease;
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger-menu.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-links,
    .nav-facebook {
        display: none; 
    }
}