*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --site-nav-height: clamp(72px, 8.8vh, 92px);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

nav {
    height: var(--site-nav-height) !important;
}

#header {
    position: relative;
    height: calc(100vh - var(--site-nav-height)) !important;
    margin-top: var(--site-nav-height);
    overflow: hidden;
}

#header .video-background {
    width: 100%;
    height: 100%;
    padding-top: 0 !important;
    object-fit: cover;
}

#header .header-textContainer {
    top: 0;
    height: 100%;
}

#footer,
.footer_content,
.footer_waves {
    overflow: hidden;
}

@media only screen and (max-width: 768px) {
    :root {
        --mobile-nav-height: 76px;
        --mobile-page-padding: clamp(16px, 4vw, 24px);
    }

    nav {
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        padding-inline: var(--mobile-page-padding);
    }

    .nav-item-list {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        align-items: center;
        gap: 12px;
        justify-content: initial;
    }

    .nav-item-list li {
        min-width: 0;
        font-size: clamp(1rem, 4.5vw, 1.4rem) !important;
        line-height: 1.1;
        text-align: center;
    }

    .nav-item-list li:nth-child(1),
    .nav-item-list li:nth-child(3) {
        width: auto;
    }

    .nav-item-list li:nth-child(1) a,
    .nav-item-list li:nth-child(3) a {
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .nav-item-list li:nth-child(2) {
        padding-inline: 4px;
    }

    .back-icon {
        width: 26px;
        height: 26px;
    }

    .undg-logo {
        width: auto;
        height: 42px;
    }

    #header {
        display: block !important;
        position: relative;
        height: min(72vh, 540px);
        min-height: 360px;
        margin-top: var(--mobile-nav-height);
        overflow: hidden;
    }

    #header .video-background {
        width: 100%;
        height: 100%;
        padding-top: 0 !important;
        object-fit: cover;
    }

    #header .header-textContainer {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0 var(--mobile-page-padding);
        background: linear-gradient(180deg, rgba(4, 31, 41, 0.62) 0%, rgba(4, 31, 41, 0.28) 100%);
        mix-blend-mode: normal;
        font-size: clamp(1rem, 4.2vw, 1.55rem) !important;
        text-align: center;
    }

    #header .header-textBackground,
    #header .header-textContainer:hover > .header-textBackground {
        width: min(100%, 32rem);
        height: auto;
        padding: 0.9rem 1.1rem;
        background-color: rgba(4, 31, 41, 0.56);
        backdrop-filter: blur(3px);
    }

    #header .header-textContainer:hover {
        background: linear-gradient(180deg, rgba(4, 31, 41, 0.62) 0%, rgba(4, 31, 41, 0.28) 100%);
    }

    #header-mobile {
        display: none !important;
    }

    #footer {
        height: auto !important;
    }

    .footer_content {
        padding: 18px 12px 24px !important;
    }

    .footer_flex {
        justify-content: center;
        gap: 10px 18px;
    }

    .footer_flex.main {
        display: flex;
        justify-content: space-evenly;
        gap: 0;
        width: 100%;
        align-items: start;
    }

    .footer_content_div {
        width: auto !important;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 6px 4px !important;
        text-align: center;
    }

    .footer_flex.main .footer_content_div {
        width: auto !important;
        min-width: 0;
        padding: 6px 0 !important;
        display: flex;
        justify-content: center;
        flex: 0 0 auto;
    }

    .footer_content_text_active,
    .footer_content_text {
        display: inline-block;
        max-width: 100%;
        font-size: clamp(1.1rem, 4.05vw, 1.26rem) !important;
        line-height: 1.2;
        letter-spacing: -0.01em;
        padding: 0 !important;
        white-space: nowrap;
    }
}
