.cat__block {
    width: 100%;
    padding: 20px 50px;
}

.cat__header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

/* поиск */
.cat__search-wrap {
    position: relative;
    width: 300px;
    flex-shrink: 0;
}

.cat__search-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.cat__search-input {
    width: 100%;
    padding: 7px 30px 7px 32px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.cat__search-input:focus {
    border-color: #2d7a4f;
}

.cat__search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.cat__search-clear:hover {
    color: #1a1a1a;
}

/* двухколоночный layout */
.cat__two {
    display: grid;
    grid-template-columns: 220px 1fr;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    min-height: 340px;
}

/* левая колонка */
.cat__left {
    border-right: 1px solid #ebebeb;
    background: #f7f7f7;
    overflow-y: auto;
    max-height: 440px;
}

.cat__left::-webkit-scrollbar {
    width: 3px;
}

.cat__left::-webkit-scrollbar-thumb {
    background: #2d7a4f;
    border-radius: 2px;
}

.cat__left-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #ebebeb;
    transition: background 0.1s, border-color 0.1s;
}

.cat__left-row:last-child {
    border-bottom: none;
}

.cat__left-row:hover,
.cat__left-row--active {
    background: #fff;
    border-left-color: #2d7a4f;
}

.cat__left-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
}

.cat__left-empty {
    padding: 1rem;
    font-size: 13px;
    color: #888;
}

/* правая панель */
.cat__right {
    background: #fff;
    padding: 16px;
}

.cat__right-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    font-size: 13px;
}

.cat__right-inner {
    height: 100%;
}

.cat__right-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebebeb;
}

.cat__right-title {
    font-size: 16px;
    font-weight: 500;
    color: #2d7a4f;
}

.cat__right-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.cat__right-match {
    font-size: 12px;
    color: #2d7a4f;
    font-style: italic;
    margin-top: 4px;
}

/* сетка групп */
.cat__right-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px;
}

.cat__chip {
    background: #f7f7f7;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 12px;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: border-color 0.12s, background 0.12s;
}

.cat__chip:hover,
.cat__chip--match {
    border-color: #2d7a4f;
    background: #f0f9f4;
}

.cat__chip-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

/* подсветка поиска */
.cat__hl {
    background: #c8ebd8;
    color: #1a5e35;
    border-radius: 2px;
    padding: 0 1px;
}