.main {
    background-color: #f5f5f5;
    padding-top: 50px;
    padding-bottom: 50px;
}

h2.section-title {
    font-size: 25px;
    margin-bottom: 28px;
}

.group-list {
    display: flex;
    flex-wrap: wrap;
    margin-right: -20px;
}

.group {
    margin-right: 20px;
    width: calc(25% - 20px);
    flex: 0 0 auto;
    margin-bottom: 30px;
    background-color: #fafafa;
    border-top: 3px solid #ff0000;
    position: relative;
    z-index: 240;
}

.group.active {
    z-index: 280;
}

.group-title {
    padding-left: 20px;
    line-height: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #fff;
    font-size: 18px;
}

.group-catalogs {
    font-size: 14px;
    min-height: 250px;
    padding-top: 6px;
    padding-bottom: 20px;
}

.group-catalog {
    position: relative;
    cursor: pointer;
    padding-left: 20px;
    padding-right: 20px;
}

.group-catalog-text {
    line-height: 23px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
    display: block;
    padding-right: 8px;
}

.group-catalog:hover .group-catalog-text:not(.not-hover),
.group-catalog.active .group-catalog-text:not(.not-hover) {
    color: #ff0000;
}

.group-catalog-text:not(.not-hover)::after {
    content: "";
    width: 6px;
    height: 10px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 0;
    background: url("../images/icons/angle_right.svg") center/contain no-repeat;
}

.group-catalog:hover .group-catalog-text::after,
.group-catalog.active .group-catalog-text::after {
    background-image: url("../images/icons/angle_right_red.svg");
}

.group-links {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    min-width: 140px;
    display: none;
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    padding: 8px 12px;
}

.group-links::before {
    content: "";
    border-right: 8px solid rgba(0, 0, 0, .8);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    position: absolute;
    top: 0;
    left: -8px;
    bottom: 0;
    margin: auto;
    height: 0;
    width: 0;
}

.group-links a {
    display: block;
    padding-left: 14px;
    position: relative;
    line-height: 24px;
}

.group-links a::before {
    content: "";
    border-left: 6px solid #9c9c9c;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    height: 0;
    width: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.group-links.show {
    display: block;
}

.btn-close {
    position: absolute;
    width: 11px;
    height: 11px;
    background: url("../images/icons/btn_file_close.png") center/contain no-repeat;
    cursor: pointer;
    right: 5px;
    top: 5px;
}

.main .select-dialog .section-title {
    margin-bottom: 30px;
}

.no-file:hover {
    cursor: default;
    color: #fff;
}

.group:nth-of-type(4n) .group-links {
    left: auto;
    right: 100%;
}

.group:nth-of-type(4n) .group-links::before {
    border-left: 8px solid rgba(0, 0, 0, .8);
    border-right: none;
    left: auto;
    right: -8px;
}