/* CSS переменные */
:root {
    --header-height: 88px; /* Значение по умолчанию, будет обновляться JS */
    --header-height-menu: 88px; /* Высота хидера для мобильного меню */
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Play', sans-serif;
    background: linear-gradient(135deg, #1a1c22 0%, #0f1115 100%);
    color: #f8fafc;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 28, 34, 0.98);
    backdrop-filter: blur(15px);
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    padding: 0.6rem 0;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d6940d;
    transition: height 0.25s ease-out;
}

.header.scrolled::after {
    height: 1px;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 2px;
    color: #d6940d;
    position: relative;
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo::after {
    content: 'NATURERAGE';
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.logo:hover {
    transform: scale(1.08);
}

.logo:hover::after {
    animation: shineEffect 0.2s linear;
}

@keyframes shineEffect {
    0% {
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    }
    25% {
        clip-path: polygon(75% 0, 100% 0, 100% 100%, 75% 100%);
    }
    50% {
        clip-path: polygon(25% 0, 75% 0, 75% 100%, 25% 100%);
    }
    75% {
        clip-path: polygon(0 0, 25% 0, 25% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
}

/* Навигация */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-item {
    padding: 0.8rem 1.8rem;
    border-right: 1px solid rgba(214, 148, 13, 0.2);
}

.nav-item:last-child {
    border-right: none;
}

.nav-link {
    color: #c1c9d2;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-link:hover,
.nav-link.active {
    color: #d6940d;
}

.nav-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* Кнопка входа */
.btn-login {
    background: #d6940d;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-login:hover {
    background: #faa608;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 148, 13, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Контент для демонстрации */
.content {
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #d6940d;
    margin-bottom: 1rem;
}

.content p {
    color: #c1c9d2;
    font-size: 1.2rem;
}

/* === ГАМБУРГЕР МЕНЮ === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #d6940d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === МОБИЛЬНОЕ МЕНЮ === */
/* По умолчанию полностью скрыто */
.mobile-menu,
.mobile-overlay {
    display: none;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(214, 148, 13, 0.1);
}

.mobile-nav-link {
    color: #8b909a;
    text-decoration: none;
    font-family: 'Play', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #d6940d;
    padding-left: 1rem;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    flex-shrink: 0;
}

.mobile-btn-login {
    background: linear-gradient(135deg, #d6940d, #faa608);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Play', sans-serif;
    margin: 2rem auto 0;
    max-width: 300px;
}

.mobile-btn-login:hover {
    background: linear-gradient(135deg, #faa608, #d6940d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 148, 13, 0.4);
}

.mobile-btn-login .btn-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1365px) {
    .nav-menu,
    .btn-login {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    
    /* Включаем мобильное меню */
    .mobile-menu {
        display: block;
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: auto;
        background: linear-gradient(180deg, rgba(26, 28, 34, 0.98) 0%, rgba(15, 17, 21, 0.98) 100%);
        backdrop-filter: blur(20px);
        border-bottom: 2px solid rgba(152, 158, 161, 0.2);
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
        z-index: 999;
        transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 1rem 2rem 2rem;
        overflow-y: auto;
        max-height: calc(100vh - var(--header-height));
    }

    .mobile-menu.active {
        top: var(--header-height-menu);
        transition: top 0.25s ease-out;
    }
    
    .header.scrolled .mobile-menu.active {
        top: var(--header-height-menu);
    }
    
    .mobile-overlay {
        display: block;
        position: fixed;
        top: var(--header-height-menu);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
        pointer-events: none;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .logo {
        font-size: 1.8rem;
    }

    .header {
        padding: 1rem 0;
    }

    .header.scrolled {
        padding: 0.7rem 0;
    }
    
    .mobile-menu {
        max-height: calc(100vh - var(--header-height));
    }
}

@media (max-width: 768px) {
    .mobile-menu.active {
        top: var(--header-height-menu);
    }
    
    .header.scrolled .mobile-menu.active {
        top: var(--header-height-menu);
    }
    
    .mobile-overlay {
        top: var(--header-height-menu);
        height: calc(100vh - var(--header-height));
    }
    
    .mobile-menu {
        max-height: calc(100vh - var(--header-height));
    }

    .logo {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .header {
        padding: 0.8rem 0;
    }

    .header.scrolled {
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }

    .header {
        padding: 0.7rem 0;
    }

    .mobile-menu {
        padding: 1rem 1rem 2rem;
        max-height: calc(100vh - var(--header-height));
    }

    .mobile-menu.active {
        top: var(--header-height-menu);
    }
    
    .header.scrolled .mobile-menu.active {
        top: var(--header-height-menu);
    }

    .mobile-overlay {
        top: var(--header-height-menu);
        height: calc(100vh - var(--header-height));
    }
}
