:root {
    --navy: #072d42;
    --navy-dark: #042233;
    --blue: #1964e8;
    --blue-dark: #0f4fc0;
    --blue-soft: #edf4ff;
    --text: #12243d;
    --muted: #68788f;
    --border: #dfe6ef;
    --background: #f7f9fc;
    --white: #ffffff;
    --container: 1180px;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

body,
button,
input,
textarea,
select {
    font-family: "Outfit", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(223, 230, 239, 0.8);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 210px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav > a,
.nav-dropdown__button {
    position: relative;
    padding: 28px 0;
    color: #40516a;
    font-size: 15px;
    font-weight: 400;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.nav-dropdown__button:hover,
.nav-dropdown.is-current .nav-dropdown__button {
    color: var(--blue);
}

.site-nav > a.is-active::after,
.nav-dropdown.is-current .nav-dropdown__button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 2px;
    background: var(--blue);
}

.nav-analysis {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px !important;
    border-radius: 9px;
    background: var(--blue);
    color: var(--white) !important;
    transition: 0.2s ease;
}

.nav-analysis:hover {
    background: var(--blue-dark);
}

.nav-analysis::after {
    display: none;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    display: grid;
    width: 235px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(16, 35, 63, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown__menu a {
    padding: 12px 13px;
    border-radius: 8px;
    color: #475871;
    font-size: 15px;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active {
    background: var(--blue-soft);
    color: var(--blue);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--navy);
}

/* Footer */

.site-footer {
    margin-top: 90px;
    background: var(--navy-dark);
    color: var(--white);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 55px;
    padding-top: 65px;
    padding-bottom: 55px;
}

.site-logo--footer {
    color: var(--white);
}

.site-footer__brand p {
    max-width: 360px;
    margin-top: 22px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.75;
}

.site-footer__column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__column h3 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 17px;
}

.site-footer__column a,
.site-footer__column span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
}

.site-footer__column a {
    transition: 0.2s ease;
}

.site-footer__column a:hover {
    color: var(--white);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.site-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-footer__bottom-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    transition: 0.2s ease;
}

.site-footer__bottom-links a:hover {
    color: var(--white);
}

/* Tablet */

@media (max-width: 960px) {
    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 78px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding: 15px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--white);
        box-shadow: 0 18px 45px rgba(16, 35, 63, 0.12);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav > a,
    .nav-dropdown__button {
        width: 100%;
        padding: 13px;
        text-align: left;
    }

    .site-nav > a.is-active::after,
    .nav-dropdown.is-current .nav-dropdown__button::after {
        display: none;
    }

    .site-nav > a.is-active,
    .nav-dropdown.is-current .nav-dropdown__button {
        border-radius: 8px;
        background: var(--blue-soft);
        color: var(--blue);
    }

    .nav-analysis {
        justify-content: center;
        margin-top: 8px;
        text-align: center !important;
    }

    .nav-dropdown__menu {
        position: static;
        display: none;
        width: 100%;
        padding: 4px 0 8px 15px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown:hover .nav-dropdown__menu {
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        display: grid;
        transform: none;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header__inner {
        min-height: 68px;
    }

    .site-logo img {
        height: 40px;
        max-width: 175px;
    }

    .site-nav {
        top: 68px;
        right: 14px;
        left: 14px;
    }

    .site-footer {
        margin-top: 65px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 45px;
        padding-bottom: 40px;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .site-footer__bottom-links {
        flex-wrap: wrap;
    }
}