/* ================= ROOT ================= */

:root {
    --header-height: 115px;
    --blue: #113D96;
    --blue-light: #0471E3;
}

body {
    margin: 0;
    background-color: #113d9619;
}

main.container {
    padding-top: var(--header-height);
}



.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ================= HEADER ================= */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    padding: 10px 0;
    z-index: 1000;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
    background-color: rgb(255, 255, 255);
}

    .header.scrolled {
        background: rgba(242,242,242,.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(0,0,0,.05);
    }

.header-top {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.logo img {
    height: 48px;
}

/* ================= SEARCH (DESKTOP) ================= */

.search {
    position: relative;
    display: flex;
    align-items: center;
}

    .search input {
        width: 0;
        opacity: 0;
        padding: 8px 0;
        margin-left: 0;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,.2);
        outline: none;
        font-size: 14px;
        background: transparent;
        transition: all 0.3s ease;
    }

    /* Когда активно */
    .search.active input {
        width: 180px;
        opacity: 1;
        margin-left: 10px;
    }

.search-btn {
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.search.active .search-btn {
    transform: rotate(90deg);
}

/* ================= NAV DESKTOP ================= */

.nav {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-chip {
    font-family: sans-serif;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    color: #191919;
    text-decoration: none;
    transition: 0.3s;
}

    .nav-chip:hover {
        background-color: var(--blue);
        color: white;
    }

/* ================= BURGER ================= */
.burger {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    z-index: 200;
}

    .burger span,
    .burger span::before,
    .burger span::after {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--blue);
        position: relative;
        transition: .3s;
    }

        .burger span::before {
            content: '';
            position: absolute;
            top: -7px;
        }

        .burger span::after {
            content: '';
            position: absolute;
            top: 7px;
        }

    .burger.active span {
        background: transparent;
    }

        .burger.active span::before {
            top: 0;
            transform: rotate(45deg);
        }

        .burger.active span::after {
            top: 0;
            transform: rotate(-45deg);
        }


.nav-search {
    position: relative;
    max-width: 420px;
    width: 100%;
    margin-bottom: 20px;
}

    .nav-search input {
        width: 100%;
        height: 48px;
        padding: 0 18px;
        border-radius: 99px;
        border: 1px solid rgba(17, 61, 150, 0.15);
        background: #fff;
        font-size: 15px;
        color: #113D96;
        transition: all 0.25s ease;
        outline: none;
        box-shadow: 0 4px 14px rgba(17, 61, 150, 0.127);
    }

        .nav-search input::placeholder {
            color: rgba(17, 61, 150, 0.555);
        }

    .nav-search:focus {
        border-color: var(--blue-light);
        box-shadow: 0 0 0 4px rgba(4, 113, 227, 0.15);
    }


/* ===== MOBILE NAV PANEL ===== */
/* ================= MOBILE CLEAN ================= */

@media (max-width: 768px) {

    :root {
        --header-height: 72px;
    }

    /* HEADER */
    .header {
        z-index: 1000;
    }

    .nav-header img {
        width: 40%;
        margin-bottom: 20px;
    }

    .burger {
        display: block;
        position: relative;
        z-index: 1300;
    }

    /* OVERLAY */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(17, 61, 150, 0.25);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
        z-index: 1100;
    }

        .menu-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

    /* NAV PANEL */
    .nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 100dvh;
        background: #fff;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform .4s cubic-bezier(.2,.8,.2,1);
        display: block;
        z-index: 1200;
        padding: 0px 20px;
        text-align: center;
        padding-top: calc(10px + env(safe-area-inset-top, 30px));
    }

        .nav.open {
            transform: translateY(0);
        }

    .header-bottom {
        display: none;
    }

    .search {
        display: none;
    }

    .header {
        height: auto;
    }
}



.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 61, 150, 0.25);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 150;
}






/* ================= FOOTER ================= */

.footer {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    color: var(--blue);
    padding: 30px 0;
    position: relative;
}

    .footer::before {
        content: "";
        position: absolute;
        top: -40px;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to top, rgba(0,0,0,0.04), transparent);
    }

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* TOP */

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
}

.footer-logo h3 {
    margin: 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .footer-nav a {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        color: var(--blue);
        background: transparent;
        transition: all 0.25s ease;
        border: 1px solid rgba(17, 61, 150, 0.1);
    }

        .footer-nav a:hover {
            transform: translateY(-2px);
            background: var(--blue);
            color: white;
            border-color: var(--blue);
        }


.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(17, 61, 150, 0.05);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}


    .social-link svg {
        width: 22px;
        height: 22px;
        fill: var(--blue);
        transition: 0.3s ease;
    }

    .social-link:hover {
        background: var(--blue);
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(4, 113, 227, 0.25);
    }

        .social-link:hover svg {
            fill: #ffffff;
        }

    .social-link:active {
        transform: scale(0.92);
    }


.footer-socials a {
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
}



/* BOTTOM */

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(17, 61, 150, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    font-size: 13px;
    opacity: 0.85;
}

.footer-policy a,
.footer-email a {
    color: var(--blue);
    text-decoration: none;
    transition: 0.3s ease;
}

    .footer-policy a:hover,
    .footer-email a:hover {
        color: var(--blue-light);
    }

.footer-dev {
    text-align: center;
    font-weight: 500;
}


.footer-email {
    text-align: right;
}


@media (max-width: 900px) {

    .footer {
        padding: 25px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .footer-email {
        text-align: center;
    }

    .footer-bottom {
        border-top: 0;
    }

    .footer-container {
        gap: 0;
    }
}
