/* ============================================
   HEADER — Navigation and Mobile Menu
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 91px;
    z-index: 1000;
    background-color: var(--color-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__inner {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 40px 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* ── Logo Area ── */
.header__logo-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header__logo-img {
    height: 40px;
    width: auto;
}

.header__logo-text {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 11px;
    margin-top: 6px;
    margin-left: -4px;
    line-height: 1.2;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    text-transform: uppercase;
}

/* ── Center Navigation ── */
.header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
    text-align: center;
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.header__link::after {
    content: attr(data-text);
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    font-weight: 700;
}

.header__link:hover,
.header__link.active {
    font-weight: 700;
    color: var(--color-accent);
}

/* ── Actions Area ── */
.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__action-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.header__action-text:hover {
    color: var(--color-accent);
}

.header__social-wrap {
    display: flex;
    gap: 10px;
}

.header__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.3s, opacity 0.3s;
}

.header__social:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.header__social svg {
    width: 100%;
    height: 100%;
}

/* ── Burger Button ── */
.header__burger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Поверх мобильного меню */
}

.header__burger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    left: 0;
    transition: 0.3s ease-in-out;
}

.header__burger span:nth-child(1) {
    top: 0;
}

.header__burger span:nth-child(2) {
    top: 9px;
}

.header__burger span:nth-child(3) {
    bottom: 0;
}

.header__burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.mobile-menu__link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 18px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu__link::after {
    content: attr(data-text);
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    font-weight: 700;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
    font-weight: 700;
    color: var(--color-accent);
}

.mobile-menu__socials {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    width: 100%;
}

.mobile-menu__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.mobile-menu__social svg {
    width: 50px;
    height: 50px;
}

.mobile-menu__social:hover {
    transform: scale(1.1);
}

.mobile-menu__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-menu__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.mobile-menu__logo img {
    height: auto;
    width: auto;
    max-width: 200px;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .header {
        height: 55px;
    }

    .header__inner {
        align-items: center;
        padding: 0 12px 0 20px; /* Shift icons closer to right edge */
    }

    .header__nav {
        display: none;
    }

    .header__action-text {
        display: none;
    }

    .header__actions {
        gap: 12px;
    }

    .header__burger {
        display: block;
        margin-left: 10px;
    }

    .header__logo-img {
        height: 23px;
    }

    .header__logo-text {
        font-size: 8px;
    }
}