.subnav {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 28px;
    margin: 34px 0 42px;
    padding: 0 0 0 22px;
    list-style: none;

    position: relative;
}

.subnav::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;
    background: #9f358b;
}

.subnav li {
    flex: 1;
    margin: 0;
    padding: 0;
}

.subnav a,
.subnav span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    min-height: 42px;
    padding: 8px 0;

    color: #444;
    background: transparent;

    text-decoration: none;
    text-align: left;
    font-size: 15px;
    line-height: 1.3;

    transition: color 0.2s ease;
}

.subnav a::after,
.subnav span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;
    background: #e5f7ff;

    transition: background 0.2s ease;
}

.subnav a:hover {
    color: #9f358b;
}

.subnav a:hover::after {
    background: #9f358b;
}

.subnav .active > a,
.subnav .active > span,
.subnav .trail > a {
    color: #9f358b;
    font-weight: 600;
}

.subnav .active > a::after,
.subnav .active > span::after,
.subnav .trail > a::after {
    background: #9f358b;
}

@media (max-width: 900px) {
    .subnav {
        flex-wrap: wrap;
        gap: 18px 24px;
    }

    .subnav li {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .subnav {
        gap: 12px;
        padding-left: 18px;
    }

    .subnav li {
        flex: 0 0 100%;
    }
}