/* Header block (BEM: header__element--modifier) */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--color-bg-primary);
    border-bottom: 1px solid rgba(241, 244, 244, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
}

.header__logo img { height: 32px; width: auto; }

.header__nav { display: none; }
.header__nav-list { display: flex; align-items: center; gap: 1.75rem; }
.header__nav-link {
    color: var(--color-text-main);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    padding-block: 0.5rem;
    position: relative;
}
.header__nav-link:hover,
.header__nav-link--active { color: var(--color-white); }
.header__nav-link--active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--color-heading-gold);
    border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 0.6rem; }
.header__login { display: none; padding: 0.6rem 1.1rem; }
.header__register { display: none; padding: 0.6rem 1.1rem; }
.header__flag { display: none; font-size: 1.3rem; line-height: 1; }

.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
}
.header__burger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header__mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.25rem var(--container-padding) 1.75rem;
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(241, 244, 244, 0.08);
}
.header__mobile-menu.is-open { display: flex; }
.header__mobile-list { display: grid; gap: 0.25rem; }
.header__mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-main);
    font-weight: var(--font-weight-medium);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(241, 244, 244, 0.06);
}
.header__mobile-link--active,
.header__mobile-link:hover { color: var(--color-heading-gold); }
.header__mobile-actions { display: grid; gap: 0.75rem; }

@media (min-width: 768px) {
    .header__login, .header__register, .header__flag { display: inline-flex; }
    .header__flag { display: inline-flex; align-items: center; }
}

@media (min-width: 1024px) {
    .header__nav { display: block; }
    .header__burger { display: none; }
    .header__mobile-menu,
    .header__mobile-menu.is-open { display: none; }
}
