.heroes-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.hero-column {
    flex: 1;
    min-width: 0;
    background: var(--bs-bg-bundles-stats);
    border-radius: 12px;
    padding: 15px;
}

.attr-header {
    text-align: center;
    padding: 7px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 550;
    font-size: 18px;
}

.attr-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.attr-header.str { background: linear-gradient(135deg, #4a2a2a 0%, #2a1a1a 100%); color: #ff6b6b; border-bottom: 3px solid #ff6b6b; }
.attr-header.agi { background: linear-gradient(135deg, #2a4a2a 0%, #1a2a1a 100%); color: #6bff6b; border-bottom: 3px solid #6bff6b; }
.attr-header.int { background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2a 100%); color: #6b6bff; border-bottom: 3px solid #6b6bff; }
.attr-header.all { background: linear-gradient(135deg, #4a4a2a 0%, #2a2a1a 100%); color: #ffd700; border-bottom: 3px solid #ffd700; }

/* Сетка героев внутри колонки - по 6 в ряд */
.heroes-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

/* Стили для карточки героя */
.hero-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    aspect-ratio: 1 / 0.7;
    display: block;
    text-decoration: none;
    background: #1a1a2e;
}

.hero-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.hero-card .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.hero-card:hover .hero-image {
    filter: brightness(0.5) blur(1px);
}

.hero-card .hero-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 3px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.2s ease;
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255,215,0,0.3);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card:hover .hero-name {
    transform: translateY(0);
}

/* Стили для фильтров */
.filters-section {
    padding: 20px;
    background: var(--bs-bg-bundles-stats);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.filter-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-icon {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bs-bg-heroes-icon);
    transition: all 0.2s ease;
    min-width: 80px;
    border: 1px solid transparent;
}

.filter-icon:hover {
    background: #3a3a4a;
    transform: translateY(-2px);
    border-color: #ffd700;
}

.filter-icon.active {
    background: #4a4a6a;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.filter-icon i {
    font-size: 28px;
    margin-bottom: 4px;
    color: var(--bs-heroes-font-color);
}

.filter-icon.active i {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.filter-icon span {
    font-size: 12px;
    color: var(--bs-heroes-font-color);
    font-weight: 500;
}

/* Тулутипы */
.filter-icon {
    position: relative;
}

.filter-icon:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #ffd700;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
    z-index: 1000;
    border: 1px solid #ffd700;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Затемненные герои */
.hero-card.filtered-out {
    opacity: 0.25;
    pointer-events: none;
    filter: grayscale(1);
}

.hero-card.filtered-out:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-card.filtered-out:hover .hero-name {
    transform: translateY(100%);
}

/* Счетчик героев */
.heroes-count {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
    font-weight: normal;
}

/* Заглушка для отсутствующих изображений */
.hero-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a3a;
    color: #666;
    font-size: 24px;
}

/* Адаптивность */
@media (max-width: 1400px) {
    .heroes-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .heroes-grid {
        flex-wrap: wrap;
    }
    .hero-column {
        flex: 0 0 100%;
    }
    .heroes-row {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .heroes-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .heroes-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-icons {
        justify-content: center;
    }
    
    .filter-icon {
        min-width: 70px;
        padding: 6px 10px;
    }
}