:root {
    --brand-blue: rgb(55, 106, 172);
    --header-height: 82px;
    --page-gutter: clamp(16px, 4vw, 72px);
    --content-max: 1440px;
}

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

html {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    color: #1f2937;
    background: #fff;
}

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

a {
    color: inherit;
}

header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

#header {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(150px, 220px);
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

#Logo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    padding: 10px 20px;
}

#Logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#Logo img {
    display: block;
    width: clamp(118px, 9vw, 158px);
    height: auto;
}

#Navbar {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#Navbar ul,
#Socials ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#Navbar ul {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.5vw, 28px);
}

#Navbar li {
    min-width: 0;
}

#Navbar a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    text-decoration: none;
    font-size: clamp(0.8rem, 0.86vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#Navbar a:hover,
#Navbar a:focus-visible {
    color: rgb(0, 145, 255);
}

#Socials {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0 18px;
}

#Socials ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 0.8vw, 14px);
}

#Socials li,
#Socials a {
    display: flex;
    align-items: center;
    justify-content: center;
}

#Socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

#Socials img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 4px;
    background: #1f2937;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    flex: 1 0 auto;
    min-width: 0;
    margin-top: var(--header-height);
}

footer {
    width: 100%;
    margin-top: auto;
}

#Footer {
    width: 100%;
}

#ContactUs {
    min-height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px max(var(--page-gutter), calc((100vw - var(--content-max)) / 2));
    background-image: linear-gradient(rgba(18, 31, 49, 0.22), rgba(18, 31, 49, 0.22)), url("../Image/cucits2.6a8b5870ce71.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#Text {
    min-width: 0;
    color: #fff;
}

#Text b {
    display: block;
    font-size: clamp(1.45rem, 2vw, 2.15rem);
    line-height: 1.15;
}

#Text p {
    margin: 8px 0 0;
    font-size: clamp(0.95rem, 1.05vw, 1.15rem);
    line-height: 1.5;
}

#Button {
    flex: 0 0 auto;
}

#Button a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 5px;
    background: var(--brand-blue);
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.88rem, 1vw, 1.05rem);
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

#Button a:hover,
#Button a:focus-visible {
    transform: translateY(-2px);
    background: rgb(43, 90, 151);
}

#Copyright {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    text-align: center;
}

#Copyright p {
    margin: 0;
    padding: 10px var(--page-gutter);
    color: #8b8b8b;
    font-size: 0.9rem;
}

#wip {
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    position: fixed;
    top: 32vh;
    left: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(0, 0, 0, 0.65);
    text-align: center;
    font-size: clamp(3rem, 9vw, 9rem);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1100px) {
    #header {
        grid-template-columns: minmax(135px, 175px) minmax(0, 1fr) minmax(125px, 155px);
    }

    #Navbar ul {
        gap: 4px;
    }

    #Navbar a {
        padding-inline: 5px;
        font-size: 0.75rem;
    }

    #Socials {
        padding-inline: 10px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 72px;
    }

    #header {
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 0 10px 0 16px;
    }

    #Logo {
        justify-content: flex-start;
        border-right: 0;
        padding: 8px 0;
    }

    #Logo img {
        width: clamp(112px, 30vw, 145px);
    }

    #Socials {
        border-left: 0;
        padding: 0 4px;
    }

    #Socials a {
        width: 34px;
        height: 34px;
    }

    #Socials img {
        width: 23px;
        height: 23px;
    }

    .menu-toggle {
        display: block;
        margin-left: 4px;
    }

    #Navbar {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        height: auto;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        padding: 10px 16px 18px;
        background: rgba(255, 255, 255, 0.985);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, visibility 0s linear 0.2s, transform 0.2s ease;
    }

    #Navbar.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    #Navbar ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    #Navbar a {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        padding: 0 14px;
        border-radius: 8px;
        font-size: 0.95rem;
    }

    #Navbar a:hover,
    #Navbar a:focus-visible {
        background: #f4f7fb;
    }

    body.nav-open {
        overflow: hidden;
    }

    #ContactUs {
        min-height: 180px;
        padding-block: 28px;
    }
}

@media (max-width: 560px) {
    #header {
        padding-left: 12px;
        padding-right: 6px;
    }

    #Socials ul {
        gap: 3px;
    }

    #Socials a {
        width: 30px;
        height: 32px;
    }

    #Socials img {
        width: 21px;
        height: 21px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    #ContactUs {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        min-height: 210px;
    }

    #Button,
    #Button a {
        width: 100%;
    }

    #Button a {
        min-height: 48px;
    }

    #wip {
        top: 34vh;
        font-size: clamp(2.6rem, 13vw, 4.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
