/* Metaloteka — one clean, responsive header. Horizontal logo left, menu right. */
#metaloteka-header,
#metaloteka-header * {
    box-sizing: border-box;
}

#metaloteka-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #e7edf1;
    color: #233b4d;
    font-family: inherit;
}

#metaloteka-header .mtl-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: calc(100% - 64px);
    max-width: 1360px;
    min-height: 84px;
    margin: 0 auto;
}

#metaloteka-header .mtl-header__brand {
    display: inline-flex;
    flex: 0 0 214px;
    align-items: center;
    width: 214px;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

#metaloteka-header .mtl-header__logo-image {
    display: block;
    width: 100%;
    max-width: 214px;
    max-height: 48px;
    height: auto;
    margin: 0;
    object-fit: contain;
    object-position: left center;
}

#metaloteka-header .mtl-header__wordmark {
    color: #15364b;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.04em;
}

#metaloteka-header .mtl-header__desktop {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    margin-left: auto;
}

#metaloteka-header .mtl-menu-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(17px, 1.75vw, 25px);
    margin: 0;
    padding: 0;
    list-style: none;
}

#metaloteka-header .mtl-menu-list > li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

#metaloteka-header .mtl-menu-list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0;
    color: #263d4f;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease;
}

#metaloteka-header .mtl-header__desktop .mtl-menu-list > li:not(.menu-item-phone):not(.menu-item-quote) > a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: #087fae;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease;
}

#metaloteka-header .mtl-header__desktop .mtl-menu-list > li:not(.menu-item-phone):not(.menu-item-quote) > a:hover::after,
#metaloteka-header .mtl-header__desktop .mtl-menu-list > li.current-menu-item:not(.menu-item-phone):not(.menu-item-quote) > a::after,
#metaloteka-header .mtl-header__desktop .mtl-menu-list > li.current_page_item:not(.menu-item-phone):not(.menu-item-quote) > a::after {
    transform: scaleX(1);
}

#metaloteka-header .mtl-menu-list > li > a:hover,
#metaloteka-header .mtl-menu-list > li.current-menu-item > a,
#metaloteka-header .mtl-menu-list > li.current_page_item > a {
    color: #087fae;
}

#metaloteka-header .mtl-header__desktop .menu-item-phone {
    margin-left: 5px;
    padding-left: 20px;
    border-left: 1px solid #dfe7ec;
}

#metaloteka-header .mtl-header__desktop .menu-item-phone > a {
    color: #17384e;
    font-size: 12.5px;
    font-weight: 750;
}

#metaloteka-header .mtl-header__desktop .menu-item-quote {
    margin-left: 1px;
}

#metaloteka-header .mtl-header__desktop .menu-item-quote > a {
    display: inline-flex;
    justify-content: center;
    min-height: 43px;
    padding: 0 17px;
    border: 1px solid #087fae;
    border-radius: 4px;
    background: #087fae;
    color: #fff;
    font-size: 12.5px;
    font-weight: 750;
    box-shadow: 0 3px 10px rgba(8, 127, 174, .11);
    transition: background .18s ease, border-color .18s ease;
}

#metaloteka-header .mtl-header__desktop .menu-item-quote > a:hover {
    border-color: #066d96;
    background: #066d96;
    color: #fff;
}

#metaloteka-header .mtl-header__mobile {
    display: none;
}

#metaloteka-header a:focus-visible,
#metaloteka-header summary:focus-visible {
    outline: 3px solid #23a9d2;
    outline-offset: 3px;
    border-radius: 3px;
}

#metaloteka-header .sub-menu {
    display: none;
}

.mtl-skip-link {
    position: absolute;
    top: 8px;
    left: -9999px;
    z-index: 100000;
    padding: 10px 14px;
    background: #fff;
    color: #15364b;
}

.mtl-skip-link:focus {
    left: 8px;
}

@media (max-width: 1080px) {
    #metaloteka-header .mtl-header__inner {
        width: calc(100% - 48px);
        min-height: 76px;
    }

    #metaloteka-header .mtl-header__desktop {
        display: none;
    }

    #metaloteka-header .mtl-header__mobile {
        position: relative;
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
    }

    #metaloteka-header .mtl-header__mobile > summary {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 46px;
        height: 46px;
        margin: 0;
        padding: 0;
        border: 1px solid #dce5eb;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
        list-style: none;
    }

    #metaloteka-header .mtl-header__mobile > summary::-webkit-details-marker {
        display: none;
    }

    #metaloteka-header .mtl-header__mobile > summary::marker {
        content: "";
    }

    #metaloteka-header .mtl-header__mobile > summary span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 2px;
        background: #17384e;
    }

    #metaloteka-header .mtl-header__mobile-panel {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        z-index: 1100;
        display: none;
        width: min(360px, calc(100vw - 32px));
        max-height: calc(100vh - 105px);
        overflow: auto;
        padding: 9px;
        border: 1px solid #e0e8ed;
        border-radius: 5px;
        background: #fff;
        box-shadow: 0 16px 38px rgba(16, 43, 64, .16);
    }

    #metaloteka-header .mtl-header__mobile[open] .mtl-header__mobile-panel {
        display: block;
    }

    #metaloteka-header .mtl-menu-list--mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
    }

    #metaloteka-header .mtl-menu-list--mobile > li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #edf1f4;
    }

    #metaloteka-header .mtl-menu-list--mobile > li > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 47px;
        padding: 12px 11px;
        color: #263d4f;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.35;
        white-space: normal;
    }

    #metaloteka-header .mtl-menu-list--mobile > li.menu-item-phone {
        margin: 0;
        padding: 0;
        border-left: 0;
    }

    #metaloteka-header .mtl-menu-list--mobile > li.menu-item-phone > a {
        color: #087fae;
    }

    #metaloteka-header .mtl-menu-list--mobile > li.menu-item-quote {
        margin: 9px 0 0;
        padding: 0;
        border-bottom: 0;
    }

    #metaloteka-header .mtl-menu-list--mobile > li.menu-item-quote > a {
        justify-content: center;
        min-height: 46px;
        padding: 12px;
        border: 1px solid #087fae;
        border-radius: 4px;
        background: #087fae;
        color: #fff;
        text-align: center;
        font-weight: 750;
    }

    #metaloteka-header .mtl-menu-list--mobile > li.menu-item-quote > a:hover {
        background: #066d96;
        color: #fff;
    }
}

@media (max-width: 480px) {
    #metaloteka-header .mtl-header__inner {
        width: calc(100% - 32px);
        min-height: 68px;
        gap: 16px;
    }

    #metaloteka-header .mtl-header__brand {
        flex-basis: 184px;
        width: 184px;
        max-width: 184px;
    }

    #metaloteka-header .mtl-header__logo-image {
        max-width: 184px;
        max-height: 41px;
    }

    #metaloteka-header .mtl-header__mobile > summary {
        width: 43px;
        height: 43px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #metaloteka-header * {
        transition: none !important;
    }
}
