/* ---------- Header Variables ---------- */
:root {
    --color-accent: #ffbb00;
    --color-text: #ffffff;
}

/* ---------- Global link styles for nav ---------- */
nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
}
nav a:hover::after {
    width: 60%;
}

/* ---------- Header ---------- */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* ---------- Logo ---------- */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 2000;
}
.logo__icon img {
    height: 100px;
    width: auto;
    margin: 0;
}

/* ---------- Hamburger ---------- */
.hamb {
    display: none;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 35px;
    right: 25px;
    background: transparent;
    border: 1px solid var(--color-accent);
    z-index: 2050;
    cursor: pointer;
    padding: 0;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-accent);
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px,6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px,-6px);
}

/* ---------- Nav ---------- */
.nav {
    display: flex;
    gap: 1rem;
    margin: 50px 0;
    align-items: center;
    position: static;
}
.nav__list {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.nav__link {
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 23px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    position: relative;
}
.golov { display: none; }
.nav__link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
}
.nav__link:not(.active):hover::after { width: 60%; }
.nav__link.active::after,
.nav__link[aria-current="page"]::after { width: 100%; }

.nav__divider {
    width: 1px;
    height: 30px;
    background-color: var(--color-accent);
}

/* ---------- Nav Top Bar / Language ---------- */
.nav__top-bar {
    position: fixed;
    top: 40px;
    right: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px 10px;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 2000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav__top-bar:hover { border-color: var(--color-accent); }
.nav__top-bar::before {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 0px;
    border-bottom: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    opacity: 0;
    transition: opacity 0.3s;
}
.nav__top-bar::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 0px;
    height: 0px;
    border-top: 2px solid var(--color-accent);
    border-left: 2px solid var(--color-accent);
    opacity: 0;
    transition: all 0.3s;
}
.nav__top-bar:hover::after { width: 20px; height: 20px; opacity: 1; }
.nav__top-bar:hover::before { width: 20px; height: 20px; opacity: 1; }

.nav__lang-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

/* ---------- Overlay ---------- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s;
    z-index: 1990;
}
.nav.open ~ .nav-overlay,
.nav.open + .nav-overlay,
.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

 @media (max-width: 1489px) {
    .logo{display: none;}
    .golov { display: block; }

}
 @media (max-width: 1153px) {
    .nav__link {font-size: 18px;}
}
 @media (max-width: 993px) {
    .nav__top-bar{display: none;}
}

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
    .logo{display: block;}
    .golov { display: block; }
    .nav__divider { display: none; }
    .nav__lang-box {color: #000;}

    .hamb { display: flex; }

    .nav {
        position: fixed;
        opacity: 0;
        top: -150%;
        left: 0;
        width: 100%;
        height: 110dvh;
        background: #ffffff;
        z-index: 2000;
        padding: 60px 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: top 0.8s ease, opacity 0.4s ease;
        overflow-y: auto;
    }
    .nav.open { top: -10dvh; opacity: 1; }

    .nav__top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        position: absolute;
        top: 64.7px;
        left: 24px;
        border: 1px solid var(--color-accent);
        font-size: 1rem;
        z-index: 2000;
        width: 50px;
        height: 50px;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin-bottom: auto;
        margin-top: 15px;
    }
    .nav__link {
        font-family: 'Fira Sans Condensed', sans-serif;
        font-size: 32px;
        font-weight: 700;
        text-transform: uppercase;
        color: #000;
        text-decoration: none;
        letter-spacing: 0.5px;
        display: inline-block;
    }
    .nav__link.active-link { color: var(--color-accent); }
    .nav__footer-text {
        font-size: 14px;
        color: #000;
        font-family: 'Montserrat', sans-serif;
        margin-top: 30px;
    }

    .cross-icon { position: relative; width: 20px; height: 20px; }
    .cross-icon::before, .cross-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        background-color: var(--color-accent);
        top: 50%;
        left: 0;
    }
    .cross-icon::before { transform: rotate(45deg); }
    .cross-icon::after  { transform: rotate(-45deg); }
    .logo__icon img {
    height: 70px;
  }
  .logo {
    top: 10px;
    left: 0px;
  }
}
