:root {
    --header-height: 72px;
    --header-ink: #172026;
    --header-muted: #5b6670;
    --header-line: rgba(23, 32, 38, 0.12);
    --header-surface: rgba(255, 255, 255, 0.9);
    --header-accent: #007f73;
    --header-cta: #24313a;
}

body.menu-open {
    overflow: hidden;
}

.blur-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 32, 38, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index: 998;
}

body.menu-open .blur-overlay {
    opacity: 1;
    visibility: visible;
}

.nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: var(--header-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--header-line);
    z-index: 999;
    transition: transform 180ms ease;
}

.nav-container {
    width: min(1120px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--header-ink);
    font-family: Inter, Assistant, system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    width: 122px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.logo span {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 8px;
    color: var(--header-muted);
    font-family: Inter, Assistant, system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover {
    color: var(--header-ink);
    background: rgba(0, 127, 115, 0.08);
}

.nav-link:focus-visible,
.nav-cta:focus-visible,
.language-toggle:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid rgba(0, 127, 115, 0.32);
    outline-offset: 3px;
}

.nav-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--header-cta);
    color: #ffffff;
    font-family: Inter, Assistant, system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(36, 49, 58, 0.2);
}

.language-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--header-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--header-muted);
    font-family: Inter, Assistant, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    direction: ltr;
    cursor: pointer;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.language-toggle:hover {
    color: var(--header-ink);
    border-color: rgba(0, 127, 115, 0.28);
    background: rgba(0, 127, 115, 0.08);
}

.language-toggle [data-lang-option] {
    opacity: 0.55;
}

.language-toggle [data-lang-option].active {
    color: var(--header-accent);
    opacity: 1;
}

.language-toggle-divider {
    opacity: 0.35;
}

.language-toggle-header {
    display: none;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--header-line);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--header-ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
    .nav-header-actions {
        display: flex;
    }

    .language-toggle-header {
        min-height: 42px;
        display: inline-flex;
        padding: 0 10px;
    }

    .language-toggle-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: 12px;
        left: 12px;
        display: grid;
        gap: 12px;
        padding: 14px;
        border: 1px solid var(--header-line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 22px 55px rgba(23, 32, 38, 0.18);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(8px);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: grid;
        gap: 6px;
        order: 3;
    }

    .nav-link,
    .nav-cta {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 0 14px;
    }

    .nav-cta {
        order: 1;
        justify-content: center;
        box-shadow: 0 12px 28px rgba(36, 49, 58, 0.18);
    }

    .language-toggle {
        order: 2;
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo img {
        width: 108px;
    }
}
