.rmUIprojects--hero {
    display: flex;
    flex-direction: column;
}

.rmUIprojects--hero__content {
    display: flex;
    flex-direction: column;
    padding: 0px 25px;
    margin-bottom: 100px;
}

.rmUItitle--hero__projects {
    text-align: left;
    margin-bottom: -25px;
}

.rmUIprojects--hero__text {
    text-align: left;
    white-space: pre-line;
}


/* PROJECTS */
.rmUIprojects {
    display: flex;
    flex-direction: row;
    margin-bottom: 80px;
}

.rmUIprojects__content {
    display: grid;
    grid-template-columns: 250px 1fr;
    padding: 0px 25px;
    width: 100%;
}

.rmUIprojects__content--navigation-block {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ccc;
    padding-right: 30px;
    position: relative;
}

.rmUIprojects__content--left-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #000;
    font-size: 20px;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    user-select: none;
}

.rmUIprojects__content--left-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rmUIprojects__content--left-button:hover {
    color: #666;
}

.rmUIprojects__content--left-button__active {
    font-weight: 600;
}

.rmUIprojects__content--left-button__active::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background-color: #000;
    border-radius: 10px;
}

.rmUIprojects__content--right-block {
    padding-left: 30px;
    overflow-y: auto;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    transition: grid-template-rows 0.3s ease;
}

.project-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardAppear 0.5s ease forwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: none;
}

.filter-counter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-left: 8px;
    font-size: 13px;
    background: #eee;
    padding: 4px 10px;
    border-radius: 15px;
}

/* Заголовок категории */
.category-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 38px;
    text-transform: uppercase;
    margin-top: 0;
}

/* Добавляем индикатор категории на карточке */
.project-card::after {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    content: attr(data-category);
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card {
    position: relative;
}

.rmUIprojects__content--left-button::after {
    content: attr(data-count);
    margin-left: 8px;
    font-size: 12px;
    background: #eee;
    padding: 2px 6px;
    border-radius: 10px;
    opacity: 0.7;
}

.project-image {
    width: 100%;
    height: auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.project-content {
    padding: 12px;
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #000;
    font-size: 23px;
    margin-bottom: 8px;
}

.project-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 17px;
    color: #666;
    margin-bottom: 24px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.project-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 17px;
    text-align: center;
    width: 100%;
    background-color: #1b51a0;
    padding: 9px 8px;
    border-radius: 10px;
    transition: all 0.4s;
    user-select: none;
}

.project-link:hover {
    background-color: #16064e;
}