.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-inline: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.brand_logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav_toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
}

.nav_toggle span {
    width: 100%;
    height: 2px;
    background-color: #2a1b17;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav_toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav_toggle.open span:nth-child(2) { opacity: 0; }
.nav_toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    display: none;
    list-style: none;
    margin: 0;
}

.links.active {
    display: flex;
    border-top: 1px solid #eee;
}

.links a {
    text-decoration: none;
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1;
    color: #6b544b;
}

.kontakt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-base);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    background: var(--color-light);
    color: #2a1b17;
    box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 3px 12px rgba(0,0,0,.08);
    transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

@media (min-width: 1024px) {

    .nav {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        column-gap: clamp(8px, 1vw, 16px);
        min-height: clamp(104px, 14svh, 180px);
        height: auto;
        padding-inline: clamp(36px, 4vw, 96px);
        padding-block: clamp(12px, 2.2vh, 28px);
    }

    .nav_toggle {
        display: none;
    }

    .brand_logo {
        height: clamp(90px, 16svh, 200px);
    }

    .links {
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border: none;
        grid-column: 3;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(24px, 3.2vw, 56px);
    }

    .links a {
        font-size: clamp(16px, 1.2vw, 20px);
    }

    .kontakt {
        font-size: clamp(16px, 1.1vw, 18px);
    }
}
