.subnav {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 76px;
    margin: 0;
    padding: 0 max(24px, calc((100% - 1440px)/2));
    background: #f7f8f9;
    border-bottom: 1px solid #e3e6e9;
    overflow-x: auto;
    scrollbar-width: none
}

.subnav::-webkit-scrollbar {
    display: none
}

.subnav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 136px;
    margin: 0 !important;
    padding: 0 30px !important;
    color: #747a82;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid #e3e6e9 !important;
    font-size: 15px !important;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    transition: color .22s ease, background-color .22s ease
}

.subnav a:first-child {
    border-left: 1px solid #e3e6e9 !important
}

.subnav a:after {
    content: '';
    position: absolute;
    right: 30px;
    bottom: 0;
    left: 30px;
    height: 2px;
    background: #171a1d;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s cubic-bezier(.2, .72, .2, 1)
}

.subnav a:hover {
    color: #25292e;
    background: #fff !important
}

.subnav a.active {
    color: #171a1d;
    background: #fff !important;
    font-weight: 700
}

.subnav a.active:after {
    transform: scaleX(1)
}

@media(max-width:999px) {
    .subnav {
       
        min-height: 58px;
        padding: 0 16px;
        background: #fff;
        scroll-snap-type: x proximity
    }

    .subnav a {
        min-width: auto;
        padding: 0 18px !important;
        border-color: #eef0f2 !important;
        font-size: 14px !important;
        scroll-snap-align: start
    }

    .subnav a:first-child {
        border-left: 0 !important
    }

    .subnav a:after {
        right: 18px;
        left: 18px
    }

    .subnav a:hover {
        background: transparent !important
    }

    .subnav a.active {
        background: #f7f8f9 !important
    }
}

@media(prefers-reduced-motion:reduce) {

    .subnav a,
    .subnav a:after {
        transition: none !important
    }
}