@import url('./global.css');

.header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 190px;

    z-index: 100;

    margin-bottom: 130px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    width: 100%;
    max-width: var(--content-max-width);
    padding: 0 24px;
}   

.header-logo {
    width: 250px;
    height: 130px;
}


/* navbar */
.navbar {
    display: flex;
    align-items: center;
    gap: 64px;


    background-color: white;
    border-radius: 50px;
    padding: 12px 40px;
    height: 54px;
}


.navbar-a {    
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
}

.navbar-a:hover {
    cursor: pointer;
    transform: scale(1.05);
    color: var(--violet-1);
}
/* ======= */

.button-buy .header-button-buy {
    display: flex;
}


/* Менюшка */
.mobile-menu-btn {
    display: none;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;

    font-size: 18px;
    background-color: var(--purple-2);
    color: var(--orange-0);
    border: none;
    border-radius: 70px;
    cursor: pointer;

    margin-bottom: 40px;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

.mobile-menu-btn-icon {
    width: 32px;
    height: 32px;
}

/* Popover стили */
.mobile-popover {
    position: fixed;
    margin: 0;
    border: none;
    border-radius: 0 0 32px 32px;
    background: var(--purple-0);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    width: auto;
}

.mobile-popover::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-popover-logo {
    width: 250px;
    height: 130px;
    margin: 0 auto;
    display: block;
    margin-bottom: 32px;
}

.popover-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-item {
    padding: 12px 16px;
    background-color: #ffffff;
    border-radius: 16px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.nav-item:hover {
    background-color: #e0e0e0;
}


@media (max-width: 1250px) { 
    .header-button-buy {
        display: none;
    }
}

@media (max-width: 990px) { 
    .navbar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header  {
        margin-bottom: 40px;
    }
}


@media (min-width: 991px) { 
    .mobile-menu-btn {
        display: none;
    }

    .mobile-popover {
        display: none;
    }
}



@media (max-width: 440px) { 

    .header {
        margin-bottom: 0px;
    }


    .header-logo {
        width: 230px;
        height: 190px;
    }

    .mobile-menu-btn {
        width: 50px;
        height: 50px;
    }

    .mobile-menu-btn-icon {
        width: 26px;
        height: 26px;
    }

    .header  {
        align-items: start;

    }

    .mobile-menu-btn {
        margin-bottom: 20px;
    }
}

@media (max-width: 360px) { 
    .header-logo {
        width: 200px;
        height: 160px;
    }
}