/* ===== CSS Reset для меню и списков ===== */
.nav-menu, .filter-tabs, .builds-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===== Стили для шапки и навигации ===== */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo .logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #e6e6e6;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #4dffea;
    background-color: rgba(77, 255, 234, 0.1);
    border-color: #4dffea;
}

/* ===== Стили для секции фильтра ===== */
.filter-section {
    background-color: #1e2a47;
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2.5rem auto;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filter-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 1.8rem;
    font-size: 2.2rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.08);
    color: #b0b7d6;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: rgba(77, 255, 234, 0.2);
    color: #ffffff;
    transform: translateY(-3px);
}

.filter-tab.active {
    background: linear-gradient(90deg, #4dffea, #2af8ff);
    color: #0f3460;
    box-shadow: 0 6px 20px rgba(77, 255, 234, 0.4);
}

.filter-tab .count {
    font-size: 0.85em;
    opacity: 0.9;
}

.search-input {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #2a3b65;
    background-color: #0f172a;
    color: white;
    font-size: 1rem;
}

/* ===== Сетка сборок ===== */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.build-card {
    background: linear-gradient(145deg, #1e2a47, #27385c);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #2a3b65;
    position: relative;
}

.build-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px #4dffea;
}

.build-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #4dffea;
}

.build-content {
    padding: 1.5rem;
}

.build-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.build-excerpt {
    color: #b0b7d6;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.build-buttons {
    display: flex;
    gap: 0.8rem;
    padding: 0 1.5rem 1.5rem;
}

.btn-download {
    flex: 1;
    background: linear-gradient(90deg, #00c853, #64dd17);
    color: white;
    text-align: center;
    padding: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-torrent {
    flex: 1;
    background: linear-gradient(90deg, #ff6f00, #ffab00);
    color: white;
    text-align: center;
    padding: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-download:hover,
.btn-torrent:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .filter-tabs {
        gap: 0.7rem;
    }
    .filter-tab {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    .builds-grid {
        grid-template-columns: 1fr;
    }
}