/* Nity Pro — shared header and footer */

/* Accessibility */
.np-skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 10000;
    padding: 12px 18px;
    border-radius: 0 0 8px 8px;
    background: #ffca0a;
    color: #101828;
    font-weight: 800;
}

.np-skip-link:focus {
    top: 0;
}

/* Header */
.np-header {
    position: fixed;
    z-index: 1000;
    top: 15px;
    right: 0;
    left: 0;
    padding: 0 16px;
    transition: top .3s ease;
}

.np-header__inner {
    position: relative;
    display: flex;
    width: min(100%, 1500px);
    min-height: 86px;
    align-items: center;
    margin: 0 auto;
    padding: 0 14px 0 24px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 17px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 44px rgba(16,24,40,.11);
    backdrop-filter: blur(18px);
    transition: min-height .3s ease, box-shadow .3s ease, border-radius .3s ease;
}

.np-header.is-scrolled {
    top: 8px;
}

.np-header.is-scrolled .np-header__inner {
    min-height: 72px;
    border-radius: 14px;
    box-shadow: 0 12px 38px rgba(16,24,40,.15);
}

.np-header__logo {
    display: block;
    flex: 0 0 auto;
}

.np-header__logo img {
    display: block;
    width: 174px;
    height: auto;
}

.np-header__nav {
    align-self: stretch;
    margin: 0 auto;
}

.np-header__nav > ul {
    display: flex;
    height: 100%;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.np-nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.np-nav-item > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    color: #222b3d;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.np-nav-item > a::after {
    position: absolute;
    right: 16px;
    bottom: 18px;
    left: 16px;
    height: 2px;
    border-radius: 10px;
    background: #3448c5;
    content: "";
    opacity: 0;
    transform: scaleX(.3);
    transition: opacity .25s ease, transform .25s ease;
}

.np-nav-item > a:hover,
.np-nav-item:focus-within > a {
    color: #3448c5;
}

.np-nav-item > a:hover::after,
.np-nav-item:focus-within > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.np-nav-item > a i {
    color: #9299a8;
    font-size: 9px;
    transition: transform .25s ease;
}

.np-nav-item:hover > a i,
.np-nav-item:focus-within > a i {
    transform: rotate(180deg);
}

.np-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.np-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.np-header__phone i {
    display: flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f2ff;
    color: #3448c5;
    font-size: 13px;
}

.np-header__phone:hover {
    color: #3448c5;
}

.np-header__cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 19px;
    border-radius: 9px;
    background: #ffca0a;
    color: #101828;
    font-size: 13px;
    font-weight: 850;
}

.np-header__cta:hover {
    background: #111b38;
    color: #fff;
    transform: translateY(-2px);
}

.np-header__cta i {
    font-size: 11px;
}

.np-header__toggle {
    display: none;
    width: 47px;
    height: 47px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    background: #111b38;
}

.np-header__toggle span {
    width: 20px;
    height: 2px;
    border-radius: 5px;
    background: #fff;
}

/* Mega menus */
.np-mega-menu {
    position: absolute;
    top: calc(100% + 13px);
    z-index: 10;
    visibility: hidden;
    border: 1px solid #e4e8f0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16,24,40,.17);
    opacity: 0;
    transform: translateY(10px);
    transition: visibility .2s ease, opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.np-mega-menu::before {
    position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
    content: "";
}

.np-nav-item:hover > .np-mega-menu,
.np-nav-item:focus-within > .np-mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.np-mega-menu--services {
    left: 50%;
    display: grid;
    width: min(900px, calc(100vw - 40px));
    grid-template-columns: 250px 1fr;
    padding: 11px;
    transform: translate(-32%, 10px);
}

.np-nav-item:hover > .np-mega-menu--services,
.np-nav-item:focus-within > .np-mega-menu--services {
    transform: translate(-32%, 0);
}

.np-mega-menu__intro {
    padding: 28px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 15% 85%, rgba(255,202,10,.15), transparent 27%),
        #111b38;
}

.np-mega-menu__intro > span,
.np-mega-menu__label {
    display: block;
    margin-bottom: 11px;
    color: #3448c5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.np-mega-menu__intro > span {
    color: #ffca0a;
}

.np-mega-menu__intro > strong {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
}

.np-mega-menu__intro > p {
    margin-bottom: 25px;
    color: rgba(255,255,255,.63);
    font-size: 12px;
    line-height: 1.65;
}

.np-mega-menu__intro > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.np-mega-menu__intro > a:hover {
    color: #ffca0a;
}

.np-mega-menu__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    align-content: start;
    gap: 3px;
    padding: 12px;
}

.np-mega-menu__links > a {
    display: flex;
    min-height: 47px;
    align-items: center;
    gap: 11px;
    padding: 7px 10px;
    border-radius: 9px;
    color: #344054;
    font-size: 12px;
    font-weight: 720;
}

.np-mega-menu__links > a:hover {
    background: #f4f6fb;
    color: #3448c5;
    transform: translateX(2px);
}

.np-mega-menu__links > a > span {
    display: flex;
    flex: 0 0 33px;
    width: 33px;
    height: 33px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f0f2ff;
    color: #3448c5;
}

.np-mega-menu--agency {
    left: 50%;
    display: grid;
    width: 620px;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    padding: 18px;
    transform: translate(-30%, 10px);
}

.np-nav-item:hover > .np-mega-menu--agency,
.np-nav-item:focus-within > .np-mega-menu--agency {
    transform: translate(-30%, 0);
}

.np-mega-menu--agency > div {
    padding: 10px;
}

.np-mega-menu--agency a {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.np-mega-menu--agency a:hover {
    background: #f4f6fb;
    color: #3448c5;
}

.np-mega-menu--agency a i {
    width: 18px;
    color: #3448c5;
    text-align: center;
}

.np-mega-menu--agency a small {
    margin-left: auto;
    color: #98a2b3;
    font-size: 9px;
}

.np-mega-menu--agency .np-mega-menu__all {
    margin-top: 6px;
    color: #3448c5;
}

.np-mega-menu--compact {
    right: 0;
    width: 380px;
    padding: 10px;
}

.np-mega-menu--compact > a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border-radius: 10px;
}

.np-mega-menu--compact > a:hover {
    background: #f4f6fb;
}

.np-mega-menu--compact > a > span {
    display: flex;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #111b38;
    color: #ffca0a;
}

.np-mega-menu--compact strong,
.np-mega-menu--compact small {
    display: block;
}

.np-mega-menu--compact strong {
    margin-bottom: 3px;
    color: #101828;
    font-size: 13px;
}

.np-mega-menu--compact small {
    color: #667085;
    font-size: 10px;
}

/* Mobile navigation */
.np-mobile-backdrop {
    position: fixed;
    z-index: 1100;
    inset: 0;
    visibility: hidden;
    background: rgba(8,14,31,.62);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: visibility .3s ease, opacity .3s ease;
}

.np-mobile-menu {
    position: fixed;
    z-index: 1101;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(420px, 92vw);
    flex-direction: column;
    padding: 25px;
    background: #fff;
    box-shadow: -25px 0 70px rgba(16,24,40,.18);
    transform: translateX(105%);
    transition: transform .35s ease;
}

.np-menu-open {
    overflow: hidden;
}

.np-menu-open .np-mobile-backdrop {
    visibility: visible;
    opacity: 1;
}

.np-menu-open .np-mobile-menu {
    transform: translateX(0);
}

.np-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid #e6e9f0;
}

.np-mobile-menu__top img {
    width: 150px;
}

.np-mobile-menu__close {
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f1f3f8;
    color: #101828;
    font-size: 18px;
}

.np-mobile-menu nav {
    overflow-y: auto;
    flex: 1;
    padding: 20px 0;
}

.np-mobile-menu nav > a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f4;
    color: #1d2738;
    font-size: 15px;
    font-weight: 750;
}

.np-mobile-menu nav > a:hover {
    padding-left: 5px;
    color: #3448c5;
}

.np-mobile-menu nav > a span {
    display: inline-flex;
    min-width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0f2ff;
    color: #3448c5;
    font-size: 10px;
}

.np-mobile-menu__bottom {
    padding: 22px;
    border-radius: 15px;
    background: #111b38;
}

.np-mobile-menu__bottom p {
    margin-bottom: 12px;
    color: rgba(255,255,255,.65);
    font-size: 12px;
}

.np-mobile-menu__cta {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    background: #ffca0a;
    color: #101828;
    font-size: 13px;
    font-weight: 850;
}

.np-mobile-menu__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
}

/* Footer */
.np-footer {
    position: relative;
    overflow: hidden;
    padding: 0 0 25px;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        #0c142d;
    background-size: 54px 54px;
    color: #fff;
}

.np-footer::after {
    position: absolute;
    right: -220px;
    bottom: -300px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.np-footer .container {
    position: relative;
    z-index: 1;
}

.np-footer__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    padding: 54px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.np-footer__cta > div:first-child > span {
    display: block;
    margin-bottom: 8px;
    color: #ffca0a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.np-footer__cta h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.np-footer__cta p {
    margin: 0;
    color: rgba(255,255,255,.58);
}

.np-footer__cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 11px;
}

.np-footer__cta-actions a {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.np-footer__cta-actions a:first-child {
    background: #ffca0a;
    color: #101828;
}

.np-footer__cta-actions a:first-child:hover {
    background: #fff;
    transform: translateY(-2px);
}

.np-footer__cta-actions a:last-child {
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
}

.np-footer__cta-actions a:last-child:hover {
    border-color: rgba(255,255,255,.5);
    color: #ffca0a;
}

.np-footer__main {
    display: grid;
    grid-template-columns: 1.45fr .9fr .8fr 1.1fr;
    gap: 55px;
    padding: 68px 0 58px;
}

.np-footer__logo {
    display: inline-block;
    margin-bottom: 23px;
}

.np-footer__logo img {
    width: 180px;
}

.np-footer__brand > p {
    max-width: 390px;
    margin-bottom: 25px;
    color: rgba(255,255,255,.58);
    font-size: 14px;
    line-height: 1.75;
}

.np-footer__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 25px;
}

.np-footer__trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.68);
    font-size: 10px;
    font-weight: 700;
}

.np-footer__trust i {
    color: #ffca0a;
}

.np-footer__socials {
    display: flex;
    gap: 9px;
}

.np-footer__socials a {
    display: flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: #fff;
}

.np-footer__socials a:hover {
    border-color: #ffca0a;
    background: #ffca0a;
    color: #101828;
    transform: translateY(-3px);
}

.np-footer__column h3 {
    margin: 5px 0 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.np-footer__column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.np-footer__column li {
    margin-bottom: 11px;
}

.np-footer__column li a {
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.5;
}

.np-footer__column li a:hover {
    color: #fff;
    transform: translateX(3px);
}

.np-footer__column li .np-footer__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #ffca0a;
    font-weight: 800;
}

.np-footer__contact > a,
.np-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.np-footer__contact > a > span,
.np-footer__contact-item > span {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,202,10,.1);
    color: #ffca0a;
    font-size: 13px;
}

.np-footer__contact small,
.np-footer__contact strong {
    display: block;
}

.np-footer__contact small {
    margin-bottom: 2px;
    color: rgba(255,255,255,.42);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.np-footer__contact strong {
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.np-footer__contact > a:hover strong {
    color: #ffca0a;
}

.np-footer__bottom {
    display: flex;
    min-height: 65px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.np-footer__bottom p {
    margin: 0;
    color: rgba(255,255,255,.42);
    font-size: 10px;
}

.np-footer__bottom > div {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.np-footer__bottom a {
    color: rgba(255,255,255,.5);
    font-size: 10px;
}

.np-footer__bottom a:hover {
    color: #ffca0a;
}

.np-scroll-top {
    position: fixed;
    z-index: 900;
    right: 22px;
    bottom: 22px;
    display: flex;
    visibility: hidden;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #ffca0a;
    color: #101828;
    box-shadow: 0 14px 35px rgba(16,24,40,.18);
    opacity: 0;
    transform: translateY(12px);
    transition: visibility .25s ease, opacity .25s ease, transform .25s ease;
}

.np-scroll-top.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.np-scroll-top:hover {
    background: #111b38;
    color: #fff;
}

@media (max-width: 1280px) {
    .np-nav-item > a {
        padding-right: 11px;
        padding-left: 11px;
        font-size: 12px;
    }

    .np-header__phone span {
        display: none;
    }

    .np-mega-menu--services {
        transform: translate(-26%, 10px);
    }

    .np-nav-item:hover > .np-mega-menu--services,
    .np-nav-item:focus-within > .np-mega-menu--services {
        transform: translate(-26%, 0);
    }
}

@media (max-width: 1050px) {
    .np-header {
        top: 10px;
        padding: 0 10px;
    }

    .np-header__inner {
        min-height: 74px;
        padding: 0 10px 0 17px;
    }

    .np-header__logo img {
        width: 150px;
    }

    .np-header__nav,
    .np-header__phone {
        display: none;
    }

    .np-header__actions {
        margin-left: auto;
    }

    .np-header__toggle {
        display: flex;
    }

    .np-footer__main {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 40px;
    }

    .np-footer__contact {
        grid-column: 2 / 4;
    }
}

@media (max-width: 767px) {
    .np-header__inner {
        min-height: 68px;
        border-radius: 13px;
    }

    .np-header.is-scrolled .np-header__inner {
        min-height: 64px;
    }

    .np-header__logo img {
        width: 137px;
    }

    .np-header__cta {
        display: none;
    }

    .np-header__toggle {
        width: 44px;
        height: 44px;
    }

    .np-mobile-menu {
        padding: 20px;
    }

    .np-footer__cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        padding: 45px 0;
    }

    .np-footer__cta-actions {
        width: 100%;
    }

    .np-footer__cta-actions a {
        flex: 1;
    }

    .np-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 45px 28px;
        padding: 55px 0 45px;
    }

    .np-footer__brand {
        grid-column: 1 / -1;
    }

    .np-footer__contact {
        grid-column: 1 / -1;
    }

    .np-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 0 5px;
    }
}

@media (max-width: 480px) {
    .np-footer__cta-actions {
        flex-direction: column;
    }

    .np-footer__main {
        grid-template-columns: 1fr;
    }

    .np-footer__brand,
    .np-footer__contact {
        grid-column: auto;
    }

    .np-footer__column h3 {
        margin-bottom: 18px;
    }

    .np-scroll-top {
        right: 14px;
        bottom: 14px;
        width: 43px;
        height: 43px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .np-header,
    .np-header__inner,
    .np-mega-menu,
    .np-mobile-menu,
    .np-mobile-backdrop,
    .np-scroll-top {
        transition: none;
    }
}
