@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --qb-font: "Plus Jakarta Sans", "Poppins", "Segoe UI", sans-serif;
    --qb-topbar-height: 2.6rem;
    --qb-mainbar-height: 5.25rem;
    --qb-surface: #ffffff;
    --qb-ink: #102030;
    --qb-muted: #5b6978;
    --qb-primary: #0d4f9f;
    --qb-primary-2: #0a2f63;
    --qb-accent: #15b8a6;
    --qb-radius: 1rem;
    --qb-shadow-soft: 0 14px 36px rgba(10, 28, 52, 0.14);
    --qb-shadow-card: 0 16px 28px rgba(7, 24, 46, 0.14);
}

#qb-global-header-root {
    position: relative;
    z-index: 1400;
    font-family: var(--qb-font);
}

.qb-site-header,
.qb-site-header * {
    box-sizing: border-box;
}

.qb-site-header {
    position: sticky;
    top: 0;
    z-index: 1400;
}

.qb-container {
    width: min(1160px, calc(100% - 2rem));
    margin-inline: auto;
}

.qb-topbar {
    height: var(--qb-topbar-height);
    background: #f7f9fc;
    border-bottom: 1px solid rgba(20, 43, 71, 0.08);
    backdrop-filter: saturate(1.15) blur(4px);
}

.qb-topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.qb-topbar-contacts {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.qb-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--qb-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 160ms ease;
}

.qb-topbar-link:hover,
.qb-topbar-link:focus-visible {
    color: var(--qb-primary);
}

.qb-topbar-link svg {
    width: 0.98rem;
    height: 0.98rem;
    flex: 0 0 0.98rem;
}

.qb-mainbar {
    position: relative;
    min-height: var(--qb-mainbar-height);
    background: linear-gradient(115deg, rgba(5, 28, 56, 0.95) 0%, rgba(13, 79, 159, 0.94) 56%, rgba(27, 98, 149, 0.94) 100%);
    box-shadow: var(--qb-shadow-soft);
    overflow: visible;
}

.qb-mainbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(140% 120% at 88% -20%, rgba(255, 255, 255, 0.2), transparent 42%),
        radial-gradient(120% 100% at -12% 0%, rgba(21, 184, 166, 0.2), transparent 36%);
    pointer-events: none;
}

.qb-mainbar-inner {
    position: relative;
    min-height: var(--qb-mainbar-height);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.65rem, 2vw, 1.6rem);
}

.qb-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transform: translateZ(0);
}

.qb-brand img {
    display: block;
    width: auto;
    height: clamp(44px, 5vw, 62px);
}

.qb-nav {
    justify-self: center;
    width: 100%;
    max-width: 760px;
}

.qb-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.16rem;
}

.qb-nav-item {
    position: relative;
}

.qb-nav-link,
.qb-nav-trigger {
    border: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #eef5ff;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 0.66rem 0.76rem;
    border-radius: 0.7rem;
    transition: color 180ms ease, background-color 180ms ease;
}

.qb-nav-link:focus-visible,
.qb-nav-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.78);
    outline-offset: 2px;
}

.qb-nav-link:hover,
.qb-nav-link:focus-visible,
.qb-nav-trigger:hover,
.qb-nav-trigger:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

.qb-nav-link.qb-active,
.qb-nav-trigger.qb-active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.qb-nav-trigger svg {
    width: 0.86rem;
    height: 0.86rem;
    transition: transform 180ms ease;
}

.qb-nav-item--mega.qb-open .qb-nav-trigger svg {
    transform: rotate(180deg);
}

.qb-mega {
    position: absolute;
    top: calc(100% + 0.56rem);
    left: 50%;
    width: min(980px, 94vw);
    max-height: min(76vh, 620px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1.08rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(12, 32, 59, 0.1);
    border-radius: 1.1rem;
    box-shadow: var(--qb-shadow-card);
    transform: translate(-50%, 10px) scale(0.985);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms;
}

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

.qb-nav-item--mega.qb-open .qb-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.qb-mega::-webkit-scrollbar {
    width: 10px;
}

.qb-mega::-webkit-scrollbar-thumb {
    background: #c4d6ea;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.98);
}

.qb-mega::-webkit-scrollbar-track {
    background: transparent;
}

.qb-mega-grid {
    display: grid;
    grid-template-columns: repeat(var(--qb-mega-cols, 3), minmax(0, 1fr));
    gap: 0.95rem;
}

.qb-mega-col {
    padding: 0.75rem;
    border-radius: 0.9rem;
    background: #f7fbff;
    border: 1px solid rgba(28, 70, 111, 0.08);
}

.qb-mega-title {
    margin: 0 0 0.72rem;
    color: #0d3d7b;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.qb-mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.qb-mega-link {
    display: inline-flex;
    align-items: center;
    color: #223242;
    text-decoration: none;
    border-radius: 0.64rem;
    padding: 0.42rem 0.56rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.qb-mega-link:hover,
.qb-mega-link:focus-visible {
    color: #0d4f9f;
    background: rgba(13, 79, 159, 0.09);
    transform: translateX(3px);
}

.qb-mega-link:focus-visible {
    outline: 2px solid rgba(13, 79, 159, 0.34);
    outline-offset: 1px;
}

.qb-mega-link.qb-active {
    color: #0d4f9f;
    background: rgba(13, 79, 159, 0.12);
}

.qb-featured {
    background: linear-gradient(145deg, #102a4c 0%, #0d4f9f 72%);
    color: #f8fbff;
    min-height: 100%;
}

.qb-featured-media {
    width: 100%;
    height: 140px;
    border-radius: 0.7rem;
    object-fit: cover;
    margin-bottom: 0.68rem;
}

.qb-featured-eyebrow {
    margin: 0 0 0.28rem;
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #a5f6ec;
}

.qb-featured-title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 800;
}

.qb-featured-copy {
    margin: 0 0 0.72rem;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #e3f1ff;
}

.qb-featured-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.62rem;
    padding: 0.52rem 0.72rem;
    background: #f8fdff;
    color: #0d3d7b;
    font-size: 0.86rem;
    font-weight: 800;
}

.qb-actions {
    position: relative;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
}

.qb-lang {
    position: relative;
}

.qb-lang-button {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.54rem 0.68rem;
    border-radius: 0.68rem;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.qb-lang-button svg {
    width: 0.78rem;
    height: 0.78rem;
    transition: transform 150ms ease;
}

.qb-lang.qb-open .qb-lang-button svg {
    transform: rotate(180deg);
}

.qb-lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.7rem);
    width: min(210px, calc(100vw - 1.5rem));
    padding: 0.52rem;
    border-radius: 0.84rem;
    background: #ffffff;
    border: 1px solid rgba(12, 32, 59, 0.12);
    box-shadow: 0 14px 32px rgba(10, 28, 52, 0.17);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.qb-lang.qb-open .qb-lang-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.qb-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.48rem 0.56rem;
    border-radius: 0.56rem;
    color: #1b2f45;
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.qb-lang-option:hover,
.qb-lang-option:focus-visible {
    background: #f0f7ff;
    color: #0d4f9f;
}

.qb-lang-option.qb-current {
    background: #e5f2ff;
    color: #0d4f9f;
}

.qb-menu-toggle {
    display: none;
    border: 0;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    align-items: center;
    justify-content: center;
}

.qb-menu-toggle svg,
.qb-drawer-close svg {
    width: 1.05rem;
    height: 1.05rem;
}

.qb-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 12, 25, 0.46);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms;
}

.qb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(390px, 92vw);
    height: 100dvh;
    background: #ffffff;
    transform: translateX(105%);
    transition: transform 210ms ease;
    box-shadow: -18px 0 38px rgba(8, 24, 44, 0.24);
    display: flex;
    flex-direction: column;
}

.qb-site-header.qb-drawer-open .qb-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.qb-site-header.qb-drawer-open .qb-drawer {
    transform: translateX(0);
}

.qb-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.02rem 1.08rem;
    border-bottom: 1px solid rgba(20, 43, 71, 0.1);
}

.qb-drawer-title {
    margin: 0;
    font-size: 1rem;
    color: #122131;
    font-weight: 800;
}

.qb-drawer-close {
    border: 0;
    cursor: pointer;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.56rem;
    background: #eff5fc;
    color: #233649;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qb-drawer-body {
    padding: 0.86rem 1.05rem 1.3rem;
    overflow: auto;
}

.qb-drawer-lang-list {
    list-style: none;
    margin: 0 0 0.86rem;
    padding: 0.55rem;
    border-radius: 0.85rem;
    background: #f6faff;
    border: 1px solid #e5edf8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.qb-drawer-lang-list .qb-lang-option {
    justify-content: center;
    font-size: 0.84rem;
    padding: 0.45rem;
    border: 1px solid transparent;
    background: #ffffff;
}

.qb-drawer-nav {
    display: grid;
    gap: 0.4rem;
}

.qb-drawer-link {
    display: block;
    color: #15293e;
    text-decoration: none;
    border-radius: 0.67rem;
    padding: 0.74rem 0.78rem;
    font-size: 0.94rem;
    font-weight: 700;
    border: 1px solid #e8eef7;
    background: #ffffff;
}

.qb-drawer-link.qb-active {
    border-color: rgba(13, 79, 159, 0.25);
    background: #eaf4ff;
    color: #0d4f9f;
}

.qb-drawer-link.qb-cta {
    margin-top: 0.35rem;
    text-align: center;
    border: 0;
    background: linear-gradient(125deg, #0d4f9f 0%, #1d7dc2 100%);
    color: #ffffff;
}

.qb-drawer-accordion {
    border-radius: 0.74rem;
    border: 1px solid #e8eef7;
    overflow: hidden;
}

.qb-drawer-accordion-button {
    width: 100%;
    border: 0;
    background: #f8fbff;
    color: #15293e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.78rem 0.78rem;
    font-size: 0.94rem;
    font-weight: 800;
    text-align: left;
}

.qb-drawer-accordion-button svg {
    width: 0.92rem;
    height: 0.92rem;
    transition: transform 150ms ease;
}

.qb-drawer-accordion.qb-open .qb-drawer-accordion-button svg {
    transform: rotate(180deg);
}

.qb-drawer-accordion-panel {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 220ms ease;
}

.qb-drawer-accordion.qb-open .qb-drawer-accordion-panel {
    max-height: 1200px;
}

.qb-drawer-group {
    padding: 0.46rem 0.78rem 0.72rem;
    border-top: 1px solid #edf2f9;
}

.qb-drawer-group-title {
    margin: 0.35rem 0 0.42rem;
    color: #4d6178;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.qb-drawer-sub-link {
    display: block;
    padding: 0.43rem 0;
    color: #223242;
    text-decoration: none;
    font-size: 0.89rem;
    font-weight: 600;
}

.qb-drawer-sub-link.qb-active {
    color: #0d4f9f;
}

.qb-drawer-featured {
    margin-top: 0.4rem;
    border-radius: 0.78rem;
    overflow: hidden;
    border: 1px solid #d8e9fb;
    background: #f5f9ff;
}

.qb-drawer-featured img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    display: block;
}

.qb-drawer-featured-body {
    padding: 0.62rem;
}

.qb-drawer-featured-title {
    margin: 0 0 0.25rem;
    font-size: 0.89rem;
    color: #0d3d7b;
    font-weight: 800;
}

.qb-drawer-featured-copy {
    margin: 0;
    font-size: 0.8rem;
    color: #4b6075;
    line-height: 1.35;
}

body.qb-lock-scroll {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .qb-topbar-inner {
        justify-content: flex-end;
    }

    .qb-topbar-contacts {
        gap: 0.68rem;
    }

    .qb-topbar-link {
        width: 1.9rem;
        height: 1.9rem;
        justify-content: center;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid #dbe6f3;
    }

    .qb-topbar-link span {
        display: none;
    }

    .qb-nav {
        display: none;
    }

    .qb-menu-toggle {
        display: inline-flex;
    }

    .qb-mainbar-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .qb-brand img {
        height: 46px;
    }
}

@media (max-width: 580px) {
    :root {
        --qb-mainbar-height: 4.55rem;
    }

    .qb-container {
        width: min(1160px, calc(100% - 1.15rem));
    }

    .qb-lang-button {
        padding: 0.5rem 0.58rem;
        font-size: 0.8rem;
    }

    .qb-lang-button .qb-lang-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qb-site-header *,
    .qb-site-header *::before,
    .qb-site-header *::after {
        animation: none !important;
        transition: none !important;
    }
}
