.nav {
    display: flex;
    height: 50px;
    left: 50%;
    margin: 30px 0 0 0;
    max-width: min(1240px, 94vw);
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    padding: 0 8px;
}

.nav .link-home {
    display: none;
}
  
.nav > .nav-header {
    display: inline;
    position: relative;
}
  
.nav .logo {
    background-image: url(/static/img/logo-inverted.png);
    background-position: center left;
    background-repeat: no-repeat;
    background-size: contain;
    height: 50px;
    width: 125px;
}

.nav > .nav-btn {
    display: none;
}
  
.nav > .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 20px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.2;
    margin: auto 0 auto auto;
    max-width: calc(100% - 140px);
}
  
.nav > .nav-links > a {
    color: var(--white);
    display: inline-block;
    font-weight: 400;
    padding: 4px 2px;
    margin: 0;
    text-decoration: none;
    white-space: nowrap;
}
  
.nav > .nav-links > a:hover {
    opacity: 0.7;
}
  
.nav > #nav-check {
    display: none;
}

.nav .exit {
    display: none;
}

/* Language switch */
.nav .switch {
    display: inline-block;
    margin: 0 0 0 4px;
    position: relative;
    flex-shrink: 0;
}
  
.nav .switch > span {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
    position: absolute;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    text-transform: uppercase;
    top: 14px;
    width: 50%;
}
  
.nav  input.check-toggle-round-flat:checked ~ .off {
    color: var(--indigo-dye);;
}
  
.nav input.check-toggle-round-flat:checked ~ .on {
    color: var(--white);
}
  
.nav  .switch > span.on {
    color: var(--indigo-dye);
    left: 0;
    padding-left: 2px;
}
  
.nav .switch > span.off {
    color: var(--white);
    padding-right: 4px;
    right: 0;
}
  
.nav .check-toggle {
    margin-left: -9999px;
    position: absolute;
    visibility: hidden;
}

.nav .check-toggle + label {
    cursor: pointer;
    display: block;
    outline: none;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
  
.nav input.check-toggle-round-flat + label {
    background-color: var(--indigo-dye);
    height: 35px;
    padding: 2px;
    width: 97px;
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
}

.nav input.check-toggle-round-flat + label:before, .nav input.check-toggle-round-flat + label:after {
    display: block;
    position: absolute;
    content: "";
}
  
.nav  input.check-toggle-round-flat + label:before {
    background-color: var(--indigo-dye);
    bottom: 2px;
    left: 2px;
    right: 2px;
    top: 2px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
}

.nav input.check-toggle-round-flat + label:after {
    background-color: var(--white);
    bottom: 4px;
    left: 4px;
    top: 4px;
    width: 48px;
    -webkit-border-radius: 52px;
    -moz-border-radius: 52px;
    -ms-border-radius: 52px;
    -o-border-radius: 52px;
    border-radius: 52px;
    -webkit-transition: margin 0.2s;
    -moz-transition: margin 0.2s;
    -o-transition: margin 0.2s;
    transition: margin 0.2s;
}
  
.nav input.check-toggle-round-flat:checked + label:after {
    margin-left: 44px;
}

@media (max-width: 1550px) {
    .nav > .nav-links {
        gap: 6px 16px;
    }
}

@media (max-width: 1410px) {
    .nav > .nav-links {
        gap: 6px 12px;
        font-size: 15px;
    }

    .nav .logo {
        width: 85px;
    }
}

@media (max-width: 1200px) {
    .nav > .nav-links {
        gap: 4px 10px;
        font-size: 14px;
        max-width: calc(100% - 120px);
    }

    .nav > .nav-links > a {
        padding: 4px 1px;
    }

    .nav .switch {
        margin-left: 2px;
    }
}

@media (max-width: 1050px) { 
    .nav > .nav-links > a:first-of-type {
        display: none;
    }
}

@media (max-width: 1000px) {
    .nav {
        left: 0;
        margin: 0;
        min-width: 100%;
        overflow: hidden;
        transform: unset;
        width: 100%;
    }

    .nav .link-home {
        display: block;
    }

    .nav .logo {
        height: 30px;
        margin: 18px 0 0 18px;
        width: 200px;
    }

    .nav > .nav-btn {
        display: inline-block;
        position: absolute;
        right: 0px;
        top: 0px;
        text-align: right;
        width: 50%;
    }

    .nav > .nav-btn > label {
        display: inline-block;
        height: 27px;
        padding: 18px;
        width: 25px;
    }

    .nav > .nav-btn > label > span {
        border-top: 2px solid #eee;
        display: block;
        height: 8px;
        width: 25px;
    }

    .nav > .nav-links {
        background-color: var(--prussian-blue);
        display: block;
        height: 0px;
        left: 0px;
        overflow: hidden;
        position: fixed;
        top: 50px;
        width: 100%;
    }

    .nav > .nav-links > a {
        display: block;
        padding: 18px;
        width: 100%;
        white-space: normal;
    }

    .nav > .nav-links > a:hover {
        color: var(--isabelline);
    }

    .nav > #nav-check:not(:checked) ~ .nav-links {
        height: 0px;
    }

    .nav > #nav-check:checked ~ .nav-btn {
        width: 100%;
    }

    .nav > #nav-check:checked ~ .nav-links {
        height: 100%;
        overflow-y: auto;
        padding: 0;
    }

    .nav > #nav-check:checked ~ .nav-btn {
        background: var(--prussian-blue);
        padding-right: 3px;
    }

    .nav > #nav-check:checked ~ .nav-btn span:first-of-type {
        display: none;
    }

    .nav > #nav-check:checked ~ .nav-btn span {
        transform: rotate(45deg);
        position: absolute;
        top: 27px;
    }

    .nav > #nav-check:checked ~ .nav-btn span:last-of-type {
        transform: rotate(-45deg);
        right: 15px;
    }

    .nav .switch {
        margin: 18px 0 0 18px; 
    }
}