@media (max-width: 835px) {
    .header-nav {
        display: none;
    }

    /* === БАЗОВЫЕ СТИЛИ КНОПКИ === */
    .menu {
        font-weight: 600;
        color: #1c1c1c;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 10px 18px;
        border-radius: 14px;
        border: 1px solid rgba(113, 167, 226, 0.2);
        box-shadow: 0 4px 16px rgba(113, 167, 226, 0.1);
        display: flex;
        align-items: center;
        height: 44px;
        width: auto;
        min-width: 120px;
        position: relative;
        cursor: pointer;
        justify-content: space-between;
        user-select: none;
        transition: all 0.3s ease;
        z-index: 9999;
        overflow: visible;
    }

    .menu:hover {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 6px 20px rgba(113, 167, 226, 0.18);
        transform: translateY(-1px);
    }

    .menu-text {
        font-size: 14px;
        letter-spacing: 0.3px;
        background: linear-gradient(135deg, #71A7E2, #4A90E2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .menu>.inp {
        display: none;
    }

    /* === ИКОНКА БУРГЕРА === */
    .bar {
        display: flex;
        height: 16px;
        width: 22px;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }

    .bar-list {
        display: block;
        height: 2.5px;
        border-radius: 50px;
        background: linear-gradient(90deg, #71A7E2, #4A90E2);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
            opacity 0.3s ease,
            width 0.3s ease;
        transform-origin: center;
    }

    .bar-list.top {
        width: 100%;
    }

    .bar-list.middle {
        width: 70%;
    }

    .bar-list.bottom {
        width: 85%;
    }

    .inp:checked~.bar .top {
        transform: translateY(6.75px) rotate(45deg);
        width: 100%;
    }

    .inp:checked~.bar .middle {
        opacity: 0;
        transform: scaleX(0);
    }

    .inp:checked~.bar .bottom {
        transform: translateY(-6.75px) rotate(-45deg);
        width: 100%;
    }

    .menu:hover .bar-list {
        width: 100%;
    }

    /* === КОНТЕЙНЕР МЕНЮ === */
    .menu-container-mobile {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(113, 167, 226, 0.15);
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(74, 144, 226, 0.15);
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        padding: 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.35s ease,
            transform 0.35s ease;
    }

    .inp:checked~.menu-container-mobile {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    /* === ПУНКТЫ МЕНЮ === */
    .menu-container-mobile a {
        text-decoration: none;
        display: block;
    }

    .menu-list {
        display: block;
        padding: 14px 20px;
        border-radius: 12px;
        color: #1c1c1c;
        font-size: 15px;
        font-weight: 500;
        position: relative;
        transform: translateY(-8px);
        opacity: 0;
        transition: transform 0.4s ease,
            opacity 0.4s ease,
            background-color 0.25s ease,
            color 0.25s ease;
    }

    .inp:checked~.menu-container-mobile a .menu-list {
        transform: translateY(0);
        opacity: 1;
    }

    /* Каскадная анимация */
    .inp:checked~.menu-container-mobile a:nth-child(1) .menu-list {
        transition-delay: 0.06s;
    }

    .inp:checked~.menu-container-mobile a:nth-child(2) .menu-list {
        transition-delay: 0.12s;
    }

    .inp:checked~.menu-container-mobile a:nth-child(3) .menu-list {
        transition-delay: 0.18s;
    }

    .inp:checked~.menu-container-mobile a:nth-child(4) .menu-list {
        transition-delay: 0.24s;
    }

    .inp:checked~.menu-container-mobile a:nth-child(5) .menu-list {
        transition-delay: 0.30s;
    }

    .inp:checked~.menu-container-mobile a:nth-child(6) .menu-list {
        transition-delay: 0.36s;
    }

    .menu-label {
        flex: 1;
    }



    /* Hover-эффект */
    .menu-list:hover,
    .menu-list:active {
        background: linear-gradient(135deg, rgba(113, 167, 226, 0.08), rgba(74, 144, 226, 0.08));
    }

    .menu-list:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    .menu-list:hover .menu-label {
        color: #4A90E2;
    }

    /* Активный пункт меню */
    .menu-list.active {
        background: linear-gradient(135deg, rgba(113, 167, 226, 0.12), rgba(74, 144, 226, 0.12));
        color: #4A90E2;
        font-weight: 600;
    }

    .menu-container-mobile {
        width: 355%;
        left: -38%;
    }
}

@media (max-width: 576px) {
    .menu {
        min-width: 44px;
        width: 44px;
        padding: 10px;
        justify-content: center;
    }

    .menu-text {
        display: none;
    }

    .menu-container-mobile {
        width: 355%;
        left: -265%;
    }
}