/* --- ОБЩЕЕ --- */
.menu-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu-item {
    text-decoration: none;
    color: #4a2538;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 1.2rem;
}

.menu-item.active {
    background: #c0392b;
    color: #fff;
}

.menu-item:hover {
    background: #e0d9d7;
}

.menu-item.home {
    font-size: 22px;
    line-height: 1;
}

/* --- ОБЩИЕ ФОНЫ --- */
.menu-wrapper {
    background: #f7f7f7;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
}

.menu-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-placeholder.active {
    height: 60px;
}

/* --- ДЕСКТОПНОЕ МЕНЮ --- */
.desktop-menu .menu-inner {
    display: flex;
    justify-content: space-between;
}

.desktop-menu .menu-item {
    text-align: center;
}


/* --- МОБИЛЬНОЕ МЕНЮ --- */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu .home {
    padding: 0;
}

.mobile-menu.sticky .menu-inner {
    padding: 0 36px;
}

/* Анимация открытия */
.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mobile-nav.open {
    display: flex;
}

/* --- МЕДИА --- */
.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}

@media (max-width: 900px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
        padding-top: 10px;
    }
}