@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

body,
.header,
.header * {
    font-family: "Open Sans", sans-serif;
}

body {
    transition: overflow 0.25s ease;
}

.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #A2BC4D;
    z-index: 1000;
    box-sizing: border-box;
}

.header_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.header_logo {
    display: none;
    font-family: "DIN Pro Condensed", sans-serif;
}

.header_nav {
    display: flex;
    gap: 48px;
}

.header_nav a {
    text-decoration: none;
    font-size: 1.125rem;
    line-height: 1.5rem;
    color: #333333;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-shadow: 0 0 0 transparent;
    transition:
        color 0.2s ease,
        text-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.header_nav a.active {
    font-weight: 700;
}

.header_nav a:hover {
    color: #000;
    text-shadow:
        0.35px 0 0 currentColor,
        -0.35px 0 0 currentColor;
}

.header_actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.header_login,
.header_account,
.header_logout {
    padding: 8px 20px;
    text-decoration: none;
    color: #111;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.5rem;
    text-shadow: 0 0 0 transparent;
    transition:
        color 0.2s ease,
        text-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-align: center;
}

.header_login:hover,
.header_account:hover,
.header_logout:hover {
    color: #000;
    text-shadow:
        0.35px 0 0 currentColor,
        -0.35px 0 0 currentColor;
}

.header_login.active,
.header_account.active,
.header_logout.active {
    font-weight: 700;
}

.header_account,
.header_logout {
    font-weight: 500;
}

.header_lang_container {
    position: relative;
}

.header_lang {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header_translate_icon {
    width: 25px;
    height: auto;
}

.header_lang_dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #a2bc4d;
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0 0;
    border-radius: 6px;
    z-index: 1001;
}

.header_lang_dropdown li {
    border: none;
}

.header_lang_dropdown button {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: #111;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}

.header_burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.header_burger span {
    width: 24px;
    height: 3px;
    background: #111;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .header_container {
        justify-content: space-between;
        padding: 15px 20px;
        min-height: 60px;
    }

    .header_logo {
        display: block;
        font-size: 24px;
        font-weight: 700;
        text-decoration: none;
        color: #111;
        font-family: "DIN Pro Condensed", sans-serif;
    }

    .header_nav,
    .header_login,
    .header_account,
    .header_logout,
    .header_lang_container {
        display: none;
    }

    .header_burger {
        display: flex;
        position: relative;
        z-index: 1001;
    }
}


.mobile_menu {
    position: fixed;
    inset: 0;
    background: #D1DEA6;
    display: flex;
    flex-direction: column;
    padding: 60px 28px 40px 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 2000;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile_menu.active {
    transform: translateX(0);
}

.mobile_menu_header {
    display: flex;
    justify-content: flex-end;
    background: #A2BC4D;
    align-items: center;
    min-height: 60px;
    padding: 0 16px;
    margin: -60px -28px 0 -28px;
}

.mobile_menu_close {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile_menu_close span {
    width: 26px;
    height: 3px;
    background: #111;
}


.mobile_menu_nav {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: flex-end;
    text-align: right;
    font-family: "DIN Pro Condensed", sans-serif;
}

.mobile_menu_bottom {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
    text-align: right;
    font-family: "DIN Pro Condensed", sans-serif;
}

.mobile_menu_nav a {
    font-size: 2.25rem;
    font-weight: 700;
    text-decoration: none;
    color: #111;
    text-align: right;
}

.mobile_menu_bottom a {
    font-size: 2.25rem;
    font-weight: 700;
    text-decoration: none;
    color: #111;
    text-align: right;
}
.mobile_menu_bottom a.lang {
    text-transform: uppercase;
}

@media (min-width: 1025px) {
    .header_lang .lang-code {
        display: none;
    }

    .header_lang_container {
        position: relative;
    }

    .header_login {
        text-shadow: 0 0 0 transparent;
        transition:
                color 0.25s ease,
                text-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .header_login:hover {
        text-shadow:
                0.35px 0 0 currentColor,
                -0.35px 0 0 currentColor;
    }

    .header_lang_container::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 12px;
        background: transparent;
    }

    .header_lang_dropdown {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(10px);
        transition:
                opacity 0.25s ease,
                transform 0.25s ease,
                visibility 0s linear 0.25s;
    }

    .header_lang_container:hover .header_lang_dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        transition-delay: 0s;
    }
}

@media (min-width: 1920px) {
    .header_container {
        max-width: 1920px;
        padding: 30px 80px;
    }

    .header_nav a {
        font-size: 1.25rem;
    }

    .header_login,
    .header_account,
    .header_logout {
        font-size: 1.25rem;
        font-family: "Open Sans", sans-serif;
        padding: 10px 24px;
    }
}

@media (min-width: 2560px) {
    .header_container {
        max-width: 2560px;
        padding: 40px 120px;
    }

    .header_nav a {
        font-size: 1.5rem;
    }

    .header_login,
    .header_account,
    .header_logout {
        font-size: 1.5rem;
        padding: 12px 30px;
    }
}
