:root {
    --global-header-height: 72px;
    --global-header-bg: rgba(12, 12, 17, .94);
    --global-header-line: rgba(255, 255, 255, .09);
    --global-header-text: #f5f5f8;
    --global-header-muted: #a7a7b2;
    --global-header-accent: #ff0877;
}

.global-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--global-header-line);
    background: var(--global-header-bg);
    color: var(--global-header-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.global-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(22px, 3vw, 44px);
    width: min(100% - 40px, 1240px);
    min-height: var(--global-header-height);
    margin: 0 auto;
}

.global-header-brand,
.global-header-link,
.global-header-action,
.global-header-lang-button,
.global-header-menu-button,
.global-header-mobile-link {
    -webkit-tap-highlight-color: transparent;
}

.global-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
    color: #fff;
    text-decoration: none;
}

.global-header-brand img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.global-header-brand span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.global-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 31px);
    min-width: 0;
}

.global-header-link {
    position: relative;
    padding: 25px 0 23px;
    color: var(--global-header-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.global-header-link::after {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff0877, #bd2de2);
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .2s ease, transform .2s ease;
}

.global-header-link:hover,
.global-header-link[aria-current="page"] { color: #fff; }
.global-header-link:hover::after,
.global-header-link[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

.global-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.global-header-lang {
    position: relative;
}

.global-header-lang-button,
.global-header-action,
.global-header-menu-button {
    box-sizing: border-box;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    color: var(--global-header-text);
    background: rgba(255,255,255,.025);
    font: inherit;
}

.global-header-lang-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    cursor: pointer;
}

.global-header-lang-code {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.global-header-lang-name { color: #d9d9df; font-size: 12px; }
.global-header-chevron { width: 12px; height: 12px; color: #858591; transition: transform .2s ease; }
.global-header-lang.is-open .global-header-chevron { transform: rotate(180deg); }

.global-header-lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: 190px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px;
    background: #17171e;
    box-shadow: 0 22px 60px rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity .18s ease, transform .18s ease;
}

.global-header-lang.is-open .global-header-lang-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.global-header-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    color: #b9b9c2;
    font-size: 12px;
    text-decoration: none;
}

.global-header-lang-option:hover,
.global-header-lang-option[aria-current="true"] { color: #fff; background: rgba(255,255,255,.065); }
.global-header-lang-option[aria-current="true"]::after { color: var(--global-header-accent); content: "●"; font-size: 8px; }

.global-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    color: #e8e8ed;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.global-header-action:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.065); transform: translateY(-1px); }

.global-header-action--primary {
    min-width: 112px;
    border-color: transparent;
    background: linear-gradient(112deg, #ff0877 0%, #e91e8f 55%, #bd2de2 100%);
    box-shadow: 0 10px 28px rgba(255,8,119,.18);
    color: #fff;
}

.global-header-action--primary:hover {
    border-color: transparent;
    background: linear-gradient(112deg, #ff2489 0%, #f02a9a 55%, #c83aeb 100%);
    box-shadow: 0 13px 32px rgba(255,8,119,.28);
}

.global-header-menu-button {
    display: none;
    place-items: center;
    width: 42px;
    padding: 0;
    cursor: pointer;
}

.global-header-menu-button span,
.global-header-menu-button::before,
.global-header-menu-button::after {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 99px;
    background: #fff;
    content: "";
    transition: transform .2s ease, opacity .2s ease;
}

.global-header-menu-button span { margin: 4px 0; }
.global-site-header.is-menu-open .global-header-menu-button::before { transform: translateY(5.5px) rotate(45deg); }
.global-site-header.is-menu-open .global-header-menu-button span { opacity: 0; }
.global-site-header.is-menu-open .global-header-menu-button::after { transform: translateY(-5.5px) rotate(-45deg); }

.global-header-mobile-panel {
    display: none;
    border-top: 1px solid rgba(255,255,255,.07);
    background: #111117;
}

.global-header-mobile-inner {
    display: grid;
    gap: 3px;
    width: min(100% - 32px, 700px);
    margin: 0 auto;
    padding: 13px 0 18px;
}

.global-header-mobile-link {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 0 13px;
    border-radius: 10px;
    color: #d5d5dc;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.global-header-mobile-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.global-header-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.global-header-mobile-actions .global-header-action { min-height: 46px; }

/* One clear button system for article catalogs. */
.load-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 170px !important;
    min-height: 48px !important;
    padding: 0 21px !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 13px !important;
    color: #f7f7fa !important;
    background: rgba(255,255,255,.045) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.load-more::after { content: "↓"; color: #ff2686; font-size: 15px; line-height: 1; }
.load-more:hover { border-color: rgba(255,38,134,.48) !important; background: rgba(255,255,255,.075) !important; transform: translateY(-1px) !important; }

@media (max-width: 1320px) {
    .global-header-nav { gap: 20px; }
    .global-header-link[data-secondary="true"] { display: none; }
    .global-header-lang-name { display: none; }
}

@media (max-width: 900px) {
    :root { --global-header-height: 64px; }
    .global-header-inner { grid-template-columns: auto 1fr auto; width: min(100% - 28px, 760px); gap: 12px; }
    .global-header-nav { display: none; }
    .global-header-actions { grid-column: 3; }
    .global-header-action--cabinet { display: none; }
    .global-header-menu-button { display: grid; }
    .global-site-header.is-menu-open .global-header-mobile-panel { display: block; }
}

@media (max-width: 560px) {
    .global-header-brand span { display: none; }
    .global-header-brand img { width: 36px; height: 36px; }
    .global-header-action--primary { min-width: 96px; padding: 0 13px; }
    .global-header-lang-button { width: 42px; padding: 0; justify-content: center; }
    .global-header-lang-name,
    .global-header-lang-button .global-header-chevron { display: none; }
    .global-header-lang-menu { position: fixed; top: 62px; right: 14px; }
}

@media (max-width: 390px) {
    .global-header-inner { width: min(100% - 20px, 760px); }
    .global-header-actions > .global-header-action--primary { display: none; }
    .global-header-mobile-actions { grid-template-columns: 1fr; }
    .global-header-mobile-actions .global-header-action--primary { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
    .global-site-header *,
    .global-site-header *::before,
    .global-site-header *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
