.header {
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    transition: top 0.3s ease-in-out;
}

.header.hidden {
    top: -100px;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.logo {
    text-decoration: none;
    display: inline-block;
    line-height: 1.2;
    flex-shrink: 0;
    z-index: 101;
}

.logo_main {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #ffae00;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo_sub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
    white-space: nowrap;
}

/* НАВИГАЦИЯ */
.nav {
    margin-left: auto;
}

.nav_list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav_link {
    display: inline-block;
    padding: 10px 0;
    margin: 0 14px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav_link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #e8b830;
    transition: width 0.3s ease;
}

.nav_link:hover {
    color: #e8b830;
}

.nav_link:hover::after {
    width: 100%;
}

.nav_link.nav_link--active {
    color: #fca400;
    font-weight: 600;
}

.nav_link.nav_link--active::after {
    width: 100%;
    background-color: #fca400;
    height: 3px;
}

/* Кнопка "Связаться" */
.nav_item--button {
    margin-left: 10px;
}

.nav_button {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, #f6b682 0%, #ff6200 100%);
    color: #ffffff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 97, 9, 0.3);
    white-space: nowrap;
}

.nav_button:hover {
    background: linear-gradient(135deg, #95795c 0%, #f34901 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 127, 2, 0.4);
    color: #ffffff;
}

.nav_button::after {
    display: none;
}

/* БУРГЕР-МЕНЮ */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
    padding: 5px;
    background: none;
    border: none;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffae00;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* АДАПТИВ */
@media (max-width: 1024px) {
    .nav_link {
        margin: 0 8px;
        font-size: 14px;
    }

    .nav_button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .logo_main {
        font-size: 22px;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 12px 0;
    }
    
    .header_inner {
        gap: 15px;
        padding: 0 16px;
    }

    .burger {
        display: flex;
        order: 3;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: #111111;
        padding: 80px 30px 30px;
        visibility: hidden;
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.active {
        right: 0;
        visibility: visible;
        transition: right 0.3s ease, visibility 0s;
    }

    .nav_list {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .nav_item {
        width: 100%;
    }

    .nav_link {
        display: block;
        padding: 14px 0;
        margin: 0;
        font-size: 16px;
    }

    .nav_link::after {
        display: none;
    }

    .nav_link.nav_link--active {
        color: #fca400;
    }

    .nav_item--button {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .nav_button {
        display: block;
        text-align: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* Оверлей */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 99;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Корзина в мобильной версии */
    .cart-icon {
        order: 2;
        margin-left: auto;
    }
    
    .logo_main {
        font-size: 20px;
    }
    
    .logo_sub {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 10px 0;
    }

    .header_inner {
        padding: 0 12px;
    }

    .logo_main {
        font-size: 18px;
    }

    .logo_sub {
        font-size: 9px;
    }

    .nav {
        width: 260px;
    }

    .nav_link {
        font-size: 15px;
        padding: 12px 0;
    }

    .nav_button {
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .logo_main {
        font-size: 16px;
    }

    .logo_sub {
        font-size: 8px;
    }

    .nav {
        width: 100%;
    }

    .header_inner {
        padding: 0 10px;
    }
    
    .cart-icon {
        padding: 6px 10px !important;
    }
}