/* Шапка сайта */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 20px 100px;
    /* background-color: rgba(0, 0, 0, 0.7); */
    backdrop-filter: blur(10px);
    z-index: 1000;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.header-logo {
    font-size: 18px;
    font-weight: 300;
    color: #aaa;
}

.header-logo span {
    font-size: 18px;
    color: #ff6a00;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-elem {
    color: #aaa;
    font-size: 10px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    /* letter-spacing: 1px; */
}

.nav-elem:hover {
    color: #ff6a00;
}

.header-login {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-weight: 300;
    font-size: 10px;
}

.header-login div {
    padding: 8px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-login div:first-child {
    color: #aaa;
    /* border: 1px solid #aaa; */
}

.header-login div:last-child {
    background: #ff6a00;
    color: #000;
    font-weight: 600;
}

.header-login div:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.9);
    /* border: 5px solid #ff6a00; */
}

@media (max-width: 768px) {
    .header {
        grid-template-columns: auto 1fr; /* Лого слева, бургер справа */
        justify-items: start; /* Выравниваем содержимое по левому краю */
        padding: 15px 20px;
    }

    /* Сдвигаем бургер левее */
    .burger-btn {
        margin-right: 10px; /* Прижимает к левому краю */
        margin-left: auto;
    }

    .nav {
        display: none; /* Скрываем навигацию (можно заменить на бургер) */
    }

    .header-login {
        display: none; /* Скрываем кнопки входа (или оставляем одну) */
    }

    .header-logo {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* Показываем навигацию при открытом бургере */
    .nav.mobile-visible {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        padding: 80px 20px 20px;
        gap: 20px;
        z-index: 1000;
    }

    .nav-elem {
        font-size: 18px !important;
        color: #fff !important;
        padding: 10px;
    }
}

/* Сначала скрываем бургер на десктопе */
.burger-btn {
    display: none; /* По умолчанию скрыт */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff; /* Белый цвет полосок */
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Показываем только на мобильных */
@media (max-width: 768px) {
    .burger-btn {
        display: block; /* Показываем бургер */
    }
    
    /* Анимация при открытии */
    .burger-btn.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .burger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav.mobile-visible + .header-login {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 50%;
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 20px;
        z-index: 1001;
    }
}