.soho-seo-footers {
    position: relative;
    width: 100%;
    padding: 34px 0 40px;
    border-top: 1px solid rgba(63, 76, 86, .12);
    background: #efefef;
    color: #222;
}

.soho-seo-footers,
.soho-seo-footers * {
    box-sizing: border-box;
}

.soho-seo-footers__inner {
    padding: 24px 28px 28px;
    border-radius: 4px;
   
}

.soho-seo-footers__primary-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.soho-seo-footers__primary-tab {
    min-height: 40px;
    padding: 8px 22px;
    border: 1px solid #3f4c56;
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
    color: #3f4c56;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

.soho-seo-footers__primary-tab:hover,
.soho-seo-footers__primary-tab:focus-visible,
.soho-seo-footers__primary-tab.is-active {
    border-color: #3f4c56;
    background: #6A7275;
    color: #fff;
    outline: none;
}

.soho-seo-footers__primary-panel[hidden],
.soho-seo-footers__category-panel[hidden] {
    display: none;
}

.soho-seo-footers__menu {
    display: grid;
    grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
    height: 260px;
    min-height: 0;
}

.soho-seo-footers__category-tabs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    height: 100%;
    overflow-y: auto;
    padding: 0 28px 0 0;
    border-right: 1px solid #d2d2d2;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.soho-seo-footers__category-tabs::-webkit-scrollbar,
.soho-seo-footers__category-panels::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.soho-seo-footers__category-tab {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 9px 12px 9px 16px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
    color: #3f4c56;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    transition: background-color .2s ease, color .2s ease;
}

.soho-seo-footers__category-tab::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    border-radius: 2px;
    background: transparent;
    content: "";
}

.soho-seo-footers__category-tab:hover,
.soho-seo-footers__category-tab:focus-visible {
    background: #fff;
    color: #111;
    outline: none;
}

.soho-seo-footers__category-tab.is-active {
   
    color: #111;
    font-weight: 600;
}

.soho-seo-footers__category-tab.is-active::before {
    background: #6A7275;
}

.soho-seo-footers__category-panels {
    height: 100%;
    min-width: 0;
    overflow-y: auto;
    padding-left: 34px;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.soho-seo-footers__menu-list,
.soho-seo-footers__query-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 38px;
    row-gap: 12px;
    margin: 0;
    padding: 7px 0 0;
    list-style: none;
}

.soho-seo-footers__menu-item,
.soho-seo-footers__query-item {
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.45;
}

.soho-seo-footers__menu-item a,
.soho-seo-footers__query-item a {
    color: #5f6670;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.soho-seo-footers__menu-item a:hover,
.soho-seo-footers__menu-item a:focus,
.soho-seo-footers__query-item a:hover,
.soho-seo-footers__query-item a:focus {
    color: #111;
    text-decoration: none;
}

.soho-seo-footers__query-list {
    min-height: 180px;
    align-content: start;
    padding-top: 8px;
}

@media (max-width: 1199px) {
    .soho-seo-footers__menu {
        grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    }

    .soho-seo-footers__category-tabs {
        padding-right: 22px;
    }

    .soho-seo-footers__category-panels {
        padding-left: 26px;
    }

    .soho-seo-footers__menu-list,
    .soho-seo-footers__query-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }
}

@media (max-width: 767px) {
    .soho-seo-footers {
        padding: 26px 0 30px;
    }

    .soho-seo-footers__inner {
        width: calc(100% - 24px);
        padding: 18px 16px 20px;
    }

    .soho-seo-footers__primary-tabs {
        margin-bottom: 16px;
    }

    .soho-seo-footers__primary-tab {
        flex: 1 1 calc(50% - 5px);
        padding-right: 12px;
        padding-left: 12px;
        font-size: 13px;
    }

    .soho-seo-footers__menu {
        display: block;
        height: auto;
    }

    .soho-seo-footers__category-tabs {
        flex-direction: row;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        margin: 0 -4px 16px;
        padding: 0 4px 8px;
        border: 0;
        border-bottom: 1px solid #d2d2d2;
    }

    .soho-seo-footers__category-tab {
        flex: 0 0 auto;
        width: auto;
        max-width: 230px;
        padding: 8px 12px;
        border: 1px solid #d9d9d9;
        background: #fff;
        font-size: 14px;
    }

    .soho-seo-footers__category-tab::before {
        display: none;
    }

    .soho-seo-footers__category-tab.is-active {
        border-color: #3f4c56;
        background: #6A7275;
        color: #fff;
    }

    .soho-seo-footers__category-panels {
        height: 300px;
        overflow-y: auto;
        padding-left: 0;
    }

    .soho-seo-footers__menu-list,
    .soho-seo-footers__query-list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
        padding-top: 0;
    }

    .soho-seo-footers__query-list {
        min-height: 0;
        max-height: 320px;
        overflow-y: auto;
    }

    .soho-seo-footers__menu-item,
    .soho-seo-footers__query-item {
        font-size: 14px;
    }
}
