header {
    height: 6.944rem;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0 5.556rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5;
}
header.scrolled-half {
    background: #3e55f8;
}
header .title {
    font-family: "Playfair Display";
    font-weight: 800;
    font-size: 3.333rem;
    cursor: pointer;
    color: #ffffff;
    margin-right: 11.424rem;
}
header .header_nav {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
header .listmenu {
    display: flex;
    gap: 2.778rem;
}
header .listmenu .listmenu_title,
header .listmenu .listmenu_title p {
    font-family: "Plus Jakarta Sans";
    font-size: 1.389rem;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.38rem;
    cursor: pointer;
    position: relative;
}
header .listmenu .listmenu_title .listmenu_title-icon {
    width: 1.2391rem;
    height: 0.83472rem;
}
header .btn_contact {
    cursor: pointer;
    margin-left: auto;
    height: 3.889rem;
    width: 15.139rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.389rem;
    background: #ffb930;
    font-weight: 600;
    font-size: 1.111rem;
    color: white;
}
header .listmenu .listmenu_title .popup-menu {
    display: none;
    position: absolute;
    z-index: 49;
    top: calc(100% + 0.1rem);
    left: 0;
    right: 0;
    background: #f6f6f6;
    border-radius: 0.556rem;
    flex-direction: column;
    gap: 0.278rem;
    overflow: hidden;
    transition: all 0.3s;
}
header .listmenu .listmenu_title .popup-menu.open {
    display: flex;
}
header .overlay_header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #00000085;
}
header .overlay_header.open {
    display: block;
}
header .listmenu .listmenu_title .popup-menu .popup-menu_title {
    background: #ffffff;
    height: 2.083rem;
    display: flex;
    align-items: center;
    justify-content: start;
    padding-left: 1.389rem;
    font-size: 0.972rem;
    color: #2a2a2af2;
    transition: all 0.5;
}
header .listmenu .listmenu_title .popup-menu .popup-menu_title:hover {
    background: #60abfb;
    color: white;
    height: 2.283rem;
}

/*
 * Below 1600px the root font-size is fluid (based on vw), so px is used
 * throughout these overrides instead of rem to keep touch targets and the
 * nav drawer a predictable, legible size at every tablet/mobile width.
 */
/* hamburger button (hidden on desktop) */
header .header_burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: transparent;
    z-index: 51;
    flex-shrink: 0;
}
header .header_burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}
header .header_burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
header .header_burger.open span:nth-child(2) {
    opacity: 0;
}
header .header_burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
    header {
        height: 72px;
        padding: 0 24px;
    }
    header .title {
        font-size: 28px;
        margin-right: 0;
    }
    header .header_burger {
        display: flex;
    }
    header .header_nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: #3e55f8;
        z-index: 50;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 20px;
        padding: 96px 24px 32px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    header .header_nav.open {
        transform: translateX(0);
    }
    header .listmenu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    header .listmenu .listmenu_title,
    header .listmenu .listmenu_title p {
        font-size: 16px;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    header .listmenu .listmenu_title .popup-menu {
        position: static;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.08);
    }
    header .listmenu .listmenu_title .popup-menu .popup-menu_title {
        background: transparent;
        color: #ffffffd9;
        height: auto;
        padding: 10px 16px;
        font-size: 15px;
    }
    header .listmenu .listmenu_title .popup-menu .popup-menu_title:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        height: auto;
    }
    header .btn_contact {
        margin-left: 0;
        width: 100%;
        height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 639.98px) {
    header {
        height: 64px;
        padding: 0 20px;
    }
    header .title {
        font-size: 22px;
    }
    header .header_nav {
        width: 100%;
    }
}
