.seoCategoryMenu {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    color: #06182e;
    background: #e7f5ff;
    border-radius: 16px;
}

.seoCategoryMenu__intro {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.seoCategoryMenu__intro strong {
    font-size: 16px;
    font-weight: 700;
}

.seoCategoryMenu__intro span,
.seoCategoryMenu__trigger,
.seoCategoryMenu__links a {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

.seoCategoryMenu__groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.seoCategoryMenu__group {
    position: relative;
}

.seoCategoryMenu__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 39px;
    padding: 8px 10px;
    color: #06182e;
    background: #fff;
    border: 1px solid #e7f5ff;
    border-radius: 300px;
    cursor: pointer;
    white-space: nowrap;
}

.seoCategoryMenu__trigger > svg,
.seoCategoryMenu__panelHeader svg {
    width: 16px;
    height: 16px;
    color: #7186a3;
}

.seoCategoryMenu__trigger .seoCategoryMenu__chevron {
    width: 16px;
    height: 16px;
    color: #06182e;
    transition: transform .2s ease;
}

.seoCategoryMenu__group.is-open .seoCategoryMenu__chevron {
    transform: rotate(180deg);
}

.seoCategoryMenu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    display: none;
    width: max-content;
    min-width: 250px;
    max-width: 360px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ebeff2;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(6, 24, 46, .14);
}

.seoCategoryMenu__group.is-open .seoCategoryMenu__panel {
    display: block;
}

.seoCategoryMenu__panelHeader {
    display: none;
}

.seoCategoryMenu__links {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-color: #ccd1d5 transparent;
    scrollbar-width: thin;
}

.seoCategoryMenu__links a {
    display: block;
    padding: 8px 10px;
    color: #06182e;
    text-decoration: none;
    border-radius: 8px;
}

.seoCategoryMenu__links a:hover,
.seoCategoryMenu__links a:focus-visible {
    background: #e7f5ff;
}

.seoCategoryMenu__backdrop {
    display: none;
}

@media (max-width: 1200px) and (min-width: 768px) {
    .seoCategoryMenu {
        align-items: flex-start;
    }

    .seoCategoryMenu__groups {
        gap: 6px;
    }
}

@media (max-width: 767px) {
    body.seo-category-menu-open {
        overflow: hidden;
    }

    .seoCategoryMenu {
        z-index: 100000;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 24px;
        padding: 16px;
    }

    .seoCategoryMenu__groups {
        justify-content: flex-start;
        gap: 4px;
    }

    .seoCategoryMenu__trigger {
        min-height: 38px;
        padding: 8px 13px 8px 10px;
    }

    .seoCategoryMenu__chevron {
        display: none;
    }

    .seoCategoryMenu__panel {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100002;
        width: 100%;
        max-width: none;
        padding: 24px 16px 16px;
        border: 0;
        border-radius: 16px 16px 0 0;
        box-shadow: none;
    }

    .seoCategoryMenu__panelHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 33px;
        padding: 0 4px 12px;
        border-bottom: 1px solid #ebeff2;
        font-size: 18px;
        line-height: 21px;
    }

    .seoCategoryMenu__panelHeader > span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .seoCategoryMenu__panelHeader svg {
        width: 20px;
        height: 20px;
    }

    .seoCategoryMenu__close {
        width: 32px;
        height: 32px;
        padding: 0;
        color: #06182e;
        background: transparent;
        border: 0;
        font-size: 28px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
    }

    .seoCategoryMenu__links {
        max-height: min(283px, calc(100dvh - 120px));
        padding-top: 4px;
    }

    .seoCategoryMenu__links a {
        min-height: 40px;
        padding: 9px 2px;
    }

    .seoCategoryMenu__backdrop {
        position: fixed;
        inset: 0;
        z-index: 100001;
        display: none;
        padding: 0;
        background: rgba(0, 0, 0, .1);
        border: 0;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .seoCategoryMenu.has-open-panel .seoCategoryMenu__backdrop {
        display: block;
    }
}
