:root {
    --nd-bg: #070a0d;
    --nd-surface: #0e1318;
    --nd-text: #ffffff;
    --nd-muted: #a6aab0;
    --nd-accent: #d4a23e;
    --nd-border: rgba(255,255,255,.10);
    --nd-container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--nd-bg);
    color: var(--nd-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.nd-menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.nd-container { width: min(var(--nd-container), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.nd-site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(7,10,13,.78), rgba(7,10,13,.42));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nd-site-header.is-scrolled {
    background: rgba(7,10,13,.88);
    border-color: var(--nd-border);
    box-shadow: 0 12px 40px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
}
.nd-site-header__inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;
    gap: 34px;
}
.nd-brand { display: flex; align-items: center; }
.nd-brand .custom-logo-link { display: inline-flex; }
.nd-brand .custom-logo { width: auto; max-height: 58px; }
.nd-brand__text { text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.nd-primary-nav__menu,
.nd-mobile-drawer__menu,
.nd-footer-nav__menu { list-style: none; margin: 0; padding: 0; }
.nd-primary-nav__menu { display: flex; justify-content: center; gap: 10px; }
.nd-primary-nav__menu a {
    position: relative;
    display: inline-flex;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
}
.nd-primary-nav__menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--nd-accent);
    transform: translateX(-50%);
    transition: width .2s ease;
}
.nd-primary-nav__menu .current-menu-item > a,
.nd-primary-nav__menu a:hover { color: var(--nd-accent); background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.07); }
.nd-primary-nav__menu .current-menu-item > a::after,
.nd-primary-nav__menu a:hover::after { width: 24px; }
.nd-header-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid var(--nd-accent);
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .7rem;
    font-weight: 800;
}
.nd-header-cta:hover { background: var(--nd-accent); color: #070a0d; }
.nd-menu-toggle { display: none; width: 46px; height: 46px; place-content: center; gap: 5px; border: 1px solid var(--nd-border); border-radius: 14px; background: rgba(255,255,255,.03); }
.nd-menu-toggle span:not(.screen-reader-text) { display: block; width: 20px; height: 2px; background: #fff; }
.nd-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1001;
    padding: 24px;
    background: radial-gradient(circle at 85% 15%, rgba(212,162,62,.14), transparent 28%), #080b0e;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.nd-mobile-drawer.is-open { transform: translateX(0); }
.nd-mobile-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.nd-mobile-drawer__close { width: 46px; height: 46px; border: 1px solid var(--nd-border); border-radius: 50%; background: rgba(255,255,255,.03); color: #fff; font-size: 2rem; }
.nd-mobile-drawer__menu { margin-top: 52px; }
.nd-mobile-drawer__menu li { border-bottom: 1px solid var(--nd-border); }
.nd-mobile-drawer__menu a { display: block; padding: 17px 0; text-decoration: none; text-transform: uppercase; font-size: clamp(1.5rem,7vw,2.1rem); font-weight: 800; }
.nd-mobile-drawer__cta { margin-top: 32px; display: flex; justify-content: space-between; padding: 18px 20px; border: 1px solid var(--nd-accent); border-radius: 10px; text-decoration: none; text-transform: uppercase; font-weight: 800; }
.nd-main { min-height: 70vh; }
.nd-page { padding: 150px 0 90px; }
.nd-page__title { font-size: clamp(2.4rem,6vw,5rem); }
.nd-page-content { padding-block: 80px; }
.nd-site-footer { border-top: 1px solid var(--nd-border); padding: 44px 0; }
.nd-site-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nd-footer-nav__menu { display: flex; gap: 20px; }
.nd-footer-nav__menu a { text-decoration: none; color: var(--nd-muted); }
.nd-site-footer__copyright { margin: 0; justify-self: end; color: var(--nd-muted); font-size: .85rem; }

@media (min-width: 901px) {
    .nd-site-header {
        inset: 0 auto 0 0;
        width: 260px;
        background: linear-gradient(180deg, rgba(17,20,24,.96), rgba(8,10,13,.98));
        border-right: 1px solid rgba(255,255,255,.08);
        border-bottom: 0;
        box-shadow: 18px 0 70px rgba(0,0,0,.38);
    }
    .nd-site-header.is-scrolled {
        background: linear-gradient(180deg, rgba(17,20,24,.98), rgba(8,10,13,.99));
        border-color: rgba(255,255,255,.08);
        box-shadow: 18px 0 70px rgba(0,0,0,.38);
    }
    .nd-site-header__inner {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 34px;
        padding: 28px 18px 34px;
    }
    .nd-brand { justify-content: center; min-height: 78px; }
    .nd-brand .custom-logo { max-height: 64px; max-width: 190px; }
    .nd-primary-nav { width: 100%; }
    .nd-primary-nav__menu {
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
    }
    .nd-primary-nav__menu a {
        width: 100%;
        min-height: 58px;
        align-items: center;
        gap: 14px;
        padding: 0 18px 0 54px;
        border-radius: 0 14px 14px 0;
        color: rgba(255,255,255,.78);
        background: transparent;
    }
    .nd-primary-nav__menu a::before {
        content: "□";
        position: absolute;
        left: 18px;
        display: inline-grid;
        place-items: center;
        width: 22px;
        height: 22px;
        border: 0;
        opacity: .82;
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1;
    }
    .nd-primary-nav__menu li:nth-child(1) > a::before { content: "⌂"; }
    .nd-primary-nav__menu li:nth-child(2) > a::before { content: "◇"; }
    .nd-primary-nav__menu li:nth-child(3) > a::before { content: "⚙"; }
    .nd-primary-nav__menu li:nth-child(4) > a::before { content: "▣"; }
    .nd-primary-nav__menu li:nth-child(5) > a::before { content: "♡"; }
    .nd-primary-nav__menu li:nth-child(6) > a::before { content: "✎"; }
    .nd-primary-nav__menu li:nth-child(7) > a::before { content: "✉"; }
    .nd-primary-nav__menu a::after {
        left: 0;
        top: 12px;
        bottom: 12px;
        width: 3px;
        height: auto;
        border-radius: 999px;
        transform: none;
        opacity: 0;
    }
    .nd-primary-nav__menu .current-menu-item > a,
    .nd-primary-nav__menu a:hover {
        color: var(--nd-accent);
        background: linear-gradient(90deg, rgba(212,162,62,.16), rgba(255,255,255,.035));
        border-color: rgba(255,255,255,.06);
    }
    .nd-primary-nav__menu .current-menu-item > a::after,
    .nd-primary-nav__menu a:hover::after { width: 3px; opacity: 1; }
    .nd-header-cta {
        justify-content: space-between;
        justify-self: auto;
        width: 100%;
        margin-top: auto;
        min-height: 58px;
        padding: 0 20px;
        border-radius: 12px;
    }
    .nd-mobile-drawer {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }
    .nd-main,
    .nd-site-footer { margin-left: 260px; }
}

@media (max-width: 900px) {
    .nd-site-header__inner { min-height: 76px; display: flex; justify-content: space-between; }
    .nd-primary-nav, .nd-header-cta { display: none; }
    .nd-menu-toggle { display: grid; }
    .nd-brand .custom-logo { max-height: 52px; max-width: 170px; }
}
@media (max-width: 782px) {
    .nd-container { width: min(100% - 32px, 760px); }
    .nd-site-footer__inner { grid-template-columns: 1fr; text-align: center; }
    .nd-footer-nav__menu { justify-content: center; flex-wrap: wrap; }
    .nd-site-footer__copyright { justify-self: center; }
}
