/**
 * Header — original screenshot reference
 */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
    --nk-accent: #1e88ff;
    --nk-accent-hover: #1976d2;
    --nk-text: #0b1220;
    --nk-page-bg: #f6f8fc;
}

.nk-site-header .logo-sos-badge,
.nk-site-header .logo-brand .logo-sos-badge {
    display: none !important;
}

.nk-site-header {
    background: #ffffff;
}

.nk-site-header .navbar-bottom {
    background: #ffffff !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    border-bottom: none !important;
}

.nk-site-header .navbar-bottom > .container {
    max-width: 1320px;
    padding-left: clamp(20px, 3vw, 48px) !important;
    padding-right: clamp(20px, 3vw, 48px) !important;
}

.nk-header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 72px;
    padding: 12px 0;
    gap: 0;
}

/* Лого вляво, далеч от центъра */
.nk-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    padding-right: 2rem;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 2;
}

.nk-header-brand__hex {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: block;
}

.nk-header-brand__img--uploaded {
    height: 38px;
    width: auto;
    max-width: min(240px, 38vw);
    object-fit: contain;
}

.nk-header-brand__name {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--nk-text);
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    margin-top: 1px;
}

/* Навигация — истински център на viewport (desktop) */
.nk-site-header {
    position: relative;
}

.nk-header-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    padding: 0 !important;
    width: max-content;
    max-width: calc(100% - 420px);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    z-index: 1;
}

.nk-header-menu__head {
    display: none;
}

.nk-header-menu__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nk-header-menu__list li {
    margin: 0 !important;
}

.nk-header-menu__list li a {
    display: inline-block;
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--nk-text) !important;
    text-decoration: none;
    white-space: nowrap;
}

.nk-site-header .navbar-bottom-wrapper .menu.nk-header-menu .nk-header-menu__list li a:hover,
.nk-header-menu__list li a:hover {
    color: var(--nk-accent) !important;
}

.nk-site-header .navbar-bottom-wrapper .menu.nk-header-menu .nk-header-menu__list li a.active,
.nk-header-menu__list li a.active {
    color: var(--nk-accent) !important;
}

.nk-header-menu__list li a.active {
    position: relative;
}

.nk-header-menu__list li a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 1px;
    background: var(--nk-accent);
}

/* CTA — pill като референцията */
.nk-header-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    margin-left: auto;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    background: var(--nk-accent) !important;
    color: #ffffff !important;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    border: none !important;
    box-shadow: 0 2px 8px rgba(22, 136, 255, 0.28) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.nk-header-cta:hover,
.nk-header-cta:focus {
    color: #ffffff !important;
    background: var(--nk-accent-hover) !important;
    box-shadow: 0 4px 12px rgba(22, 136, 255, 0.35) !important;
    transform: none !important;
}

.nk-header-cta i {
    font-size: 0.95rem;
    order: -1;
}

.nk-site-header .nav-toggle,
.nk-site-header .nk-header-toggle {
    z-index: 2;
}

@media (min-width: 992px) {
    .nk-header-toggle,
    .nk-mobile-nav-backdrop,
    .nk-header-menu__head {
        display: none !important;
    }

    .nk-site-header .navbar-bottom {
        position: relative;
    }

    .nk-site-header .nk-header-menu {
        position: absolute;
        left: 50%;
        top: 0;
        right: auto;
        width: max-content;
        max-width: calc(100% - 420px);
        height: 72px;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateX(-50%) !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: flex !important;
        align-items: center;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        border: none;
    }
}

@media (max-width: 1199px) {
    .nk-header-menu {
        max-width: calc(100% - 360px);
    }

    .nk-header-menu li a {
        padding: 8px 10px !important;
        font-size: 0.8125rem !important;
    }
}

@media (max-width: 991px) {
    .nk-header-brand {
        padding-right: 0;
    }
}

@media (max-width: 575px) {
    .nk-header-brand__name {
        font-size: 1.05rem;
    }

    .nk-header-brand__hex {
        width: 34px;
        height: 34px;
    }
}
