:root {
    --bg: #0d0f12;
    --bg-card: rgba(21, 25, 32, 0.92);
    --bg-card-hover: rgba(26, 32, 48, 0.95);
    --border: #252b38;
    --text: #e8eaed;
    --text-muted: #8b95a5;
    --accent: #ff6b00;
    --accent-hover: #ff8533;
    --accent-glow: rgba(255, 107, 0, 0.25);
    --header-bg: rgba(13, 15, 18, 0.95);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(13, 15, 18, 0.78), rgba(13, 15, 18, 0.9)),
        url('../img/hero-bg.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.page-home .site-header {
    position: absolute;
    left: 0; right: 0; top: 0;
    background: rgba(8, 10, 14, 0.55);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}
.page-home main { padding-top: 0; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.logo-icon {
    width: 36px; height: 36px; background: var(--accent); color: #fff;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
}
.logo-text strong { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav .nav-link {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
}
.main-nav .nav-link:hover { color: var(--accent); background: rgba(255, 107, 0, 0.06); }
.main-nav a.nav-link:first-child { color: var(--accent); }
.page-home .main-nav .nav-link:first-child { color: var(--accent); }
.page-home .main-nav .nav-link:first-child::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    background: var(--accent);
}
.main-nav a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.main-nav a:hover { color: var(--accent); }

.nav-item--dropdown { position: relative; }
.nav-link--has-sub { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .7;
    transform: translateY(1px);
}
.nav-item--dropdown:hover > .nav-link,
.nav-item--dropdown:focus-within > .nav-link {
    color: var(--accent);
    background: rgba(255, 107, 0, 0.06);
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    max-width: min(360px, 92vw);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: #12161f;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 250;
    pointer-events: none;
}
.nav-item--dropdown:hover > .nav-dropdown,
.nav-item--dropdown:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-dropdown-link {
    display: block;
    padding: 9px 16px;
    color: #aeb6c6;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
}
.nav-dropdown-link:hover {
    background: rgba(255, 107, 0, 0.08);
    color: var(--accent);
}
.nav-dropdown-link--sub {
    padding-left: 28px;
    font-size: 12px;
}
.nav-dropdown-group {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4px;
    margin-top: 4px;
}
.nav-dropdown-group:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.nav-dropdown-title {
    display: block;
    padding: 8px 16px 4px;
    color: #ff9a4d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nav-dropdown-title:hover { color: var(--accent); background: transparent; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-input {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: 8px 14px; border-radius: var(--radius-sm); width: 160px; font-size: 14px;
}
.icon-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; font-size: 14px; width: 36px; height: 36px; border-radius: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 14px; border: none; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 20px var(--accent-glow); color: #fff; }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline {
    background: rgba(255,255,255,.06); color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-icon { width: 18px; height: 18px; margin-right: 8px; flex-shrink: 0; }
.btn-lg { padding: 14px 24px; font-size: 15px; gap: 4px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }

/* Hero wrap = banner + categories bar */
.hero-wrap {
    position: relative;
    margin-bottom: 28px;
    overflow: hidden;
    min-height: 600px;
}
.hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/verh.png') center center / cover no-repeat;
    background-color: #0d0f12;
    z-index: 0;
}
.hero-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8, 10, 14, 0.93) 0%,
        rgba(8, 10, 14, 0.72) 32%,
        rgba(8, 10, 14, 0.28) 58%,
        rgba(8, 10, 14, 0.06) 100%
    );
    z-index: 1;
}
.hero {
    position: relative;
    z-index: 2;
    padding: 96px 0 24px;
    min-height: 460px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-label {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.hero-content h1 {
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 18px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.hero-content h1 span { color: var(--accent); display: block; }
.hero-content p {
    color: #b8c0cc;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; flex-direction: column; gap: 10px; }
.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(18, 22, 30, 0.82);
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 10px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.stat-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.45);
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
}
.stat-icon::after {
    content: '';
    width: 20px; height: 20px;
    background: var(--accent);
    mask-size: contain; mask-repeat: no-repeat; mask-position: center;
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
}
.stat-icon-builds::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3C/svg%3E"); }
.stat-icon-users::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.stat-icon-downloads::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
.stat-icon-shield::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.stat-card strong { display: block; font-size: 21px; color: #fff; font-weight: 700; line-height: 1.2; }
.stat-card span { font-size: 12px; color: #9aa3b2; }

/* Categories bar — как на макете */
.hero-categories {
    position: relative;
    z-index: 2;
    padding: 40px 0 18px;
    background: transparent;
    border: none;
}
.hero-categories-panel {
    background: rgba(12, 14, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.hero-categories-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0;
}
.hero-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 16px 6px 14px;
    color: var(--text);
    transition: background .2s, color .2s;
    min-height: 106px;
    position: relative;
    gap: 5px;
}
.hero-cat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.hero-cat-item:hover {
    background: rgba(255, 107, 0, 0.06);
    color: #fff;
}
.hero-cat-icon {
    height: 36px;
    width: auto;
    max-width: 54px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    image-rendering: crisp-edges;
}
.hero-cat-item:hover .hero-cat-icon {
    transform: scale(1.05);
    transition: transform .2s;
}
.hero-cat-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    margin-top: 2px;
}
.hero-cat-sub {
    font-size: 11px;
    color: #7d8796;
    line-height: 1.2;
    white-space: nowrap;
}

/* Section */
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 20px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 26px; font-weight: 700; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
    padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border); font-size: 13px;
}
.tab:hover, .tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Build cards */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
    justify-content: center;
}
.build-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all .2s;
    display: flex; flex-direction: column;
}
.build-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px var(--accent-glow); }
.card-cover { display: block; position: relative; aspect-ratio: 3/4; overflow: hidden; background: #0a0c10; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255,255,255,.7);
}
.cover-placeholder.cat-cs-16 { background: linear-gradient(135deg, #1a3a5c, #0d1f33); }
.cover-placeholder.cat-cs-source { background: linear-gradient(135deg, #3a2a1a, #1a1008); }
.cover-placeholder.cat-cs2 { background: linear-gradient(135deg, #1a3a2a, #0d1a12); }
.cover-placeholder.cat-csgo-legacy { background: linear-gradient(135deg, #3a1a1a, #1a0d0d); }
.cover-placeholder.cat-default, .cover-placeholder.cat-maps, .cover-placeholder.cat-models, .cover-placeholder.cat-configs {
    background: linear-gradient(135deg, #2a2a3a, #14141e);
}
.card-badge {
    position: absolute; top: 10px; left: 10px; padding: 4px 10px;
    border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; z-index: 2;
}
.card-badge.top { background: var(--accent); color: #fff; }
.card-badge.new { background: #22c55e; color: #fff; }
.card-badge.recommended { background: #3b82f6; color: #fff; }
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 14px; margin-bottom: 8px; line-height: 1.3; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); }
.card-meta, .card-stats { display: flex; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; flex-wrap: wrap; }
.card-meta .rating { color: #fbbf24; }
.card-stats .dl { color: var(--accent); }

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 36px auto;
    width: 100%;
}
.info-block {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    min-width: 0;
}
.info-block h3 {
    font-size: 15px;
    margin-bottom: 14px;
    color: #fff;
    font-weight: 700;
    text-align: left;
}
.update-item, .author-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    gap: 8px;
}
.updates-list .update-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: inherit;
    text-decoration: none;
    transition: background .15s;
}
.updates-list .update-item:hover {
    background: rgba(255, 255, 255, 0.02);
}
.updates-list .update-item:last-child {
    border-bottom: none;
}
.update-thumb {
    width: 56px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0a0c10;
}
.update-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.update-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a3a5c, #0d1f33);
}
.update-thumb-placeholder.cat-cs-source { background: linear-gradient(135deg, #3a2a1a, #1a1008); }
.update-thumb-placeholder.cat-cs2 { background: linear-gradient(135deg, #1a3a2a, #0d1a12); }
.update-thumb-placeholder.cat-csgo-legacy { background: linear-gradient(135deg, #3a1a1a, #1a0d0d); }
.update-body { min-width: 0; }
.update-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.update-title {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    line-height: 1.3;
}
.updates-list .update-item:hover .update-title { color: var(--accent); }
.update-tag {
    font-size: 11px;
    color: #8b95a5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
}
.update-size {
    font-size: 12px;
    color: #7d8796;
    margin-top: 4px;
}
.update-date {
    font-size: 12px;
    color: #7d8796;
    white-space: nowrap;
    align-self: center;
}
.updates-all-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #c8d0dc;
    font-size: 13px;
    transition: all .2s;
}
.updates-all-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 107, 0, 0.05);
}
.update-item strong { font-weight: 500; }
.update-item span, .author-item span { color: var(--text-muted); white-space: nowrap; }
.author-item strong { color: var(--accent); }
.category-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; margin-bottom: 6px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.03); border: 1px solid var(--border);
    color: var(--text); font-size: 14px; transition: all .15s;
}
.category-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,107,0,.06); }
.category-link strong { color: var(--accent); font-size: 13px; }
.empty-note { color: var(--text-muted); font-size: 13px; padding: 8px 0; }

/* Features bar */
.features-bar {
    padding: 0 0 40px;
    margin-top: 8px;
    background: transparent;
    border: none;
}
.features-panel {
    background: rgba(14, 16, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.features-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 16px;
    position: relative;
    min-height: 92px;
}
.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg {
    width: 100%;
    height: 100%;
}
.feature-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}
.feature-text span {
    display: block;
    color: #7d8796;
    font-size: 12px;
    line-height: 1.45;
}

/* Build page */
.breadcrumbs { padding: 20px 0; color: var(--text-muted); font-size: 14px; }
.build-page { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding-bottom: 60px; }
.build-hero { margin-bottom: 24px; }
.badge.recommended { background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.build-hero h1 { font-size: 32px; margin: 12px 0; }
.build-stats-row { display: flex; gap: 20px; color: var(--text-muted); margin: 12px 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--bg-card); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.gallery-main img { width: 100%; border-radius: var(--radius); display: none; }
.gallery-main img.active { display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.gallery-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .6; }
.gallery-thumbs img:hover { opacity: 1; }
.tab-nav { display: flex; gap: 4px; margin: 24px 0 16px; flex-wrap: wrap; }
.tab-nav button {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
    padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px;
}
.tab-nav button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-panel { display: none; color: var(--text-muted); line-height: 1.8; }
.tab-panel.active { display: block; }
.build-sidebar .sidebar-block {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.download-box { background: var(--bg); padding: 16px; border-radius: var(--radius-sm); margin-bottom: 12px; }
.safe-note { font-size: 12px; color: #22c55e; margin-top: 12px; }
.info-table div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }

/* Page */
.page-header, .page-content { padding: 40px 0; }
.page-body { color: var(--text-muted); margin-top: 20px; line-height: 1.75; }
.page-static {
    background-color: #04070f;
    background-image:
        linear-gradient(rgba(4, 7, 15, 0.84), rgba(4, 7, 15, 0.94)),
        url('../img/hero-bg.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.page-static main { background: transparent; }
.page-static .page-content h1 {
    font-family: 'Exo 2', sans-serif;
    color: #fff;
    margin-bottom: 8px;
}
.contact-form { display: grid; gap: 12px; max-width: 480px; margin-top: 24px; }
.contact-form input, .contact-form textarea {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: 12px; border-radius: var(--radius-sm);
}
.success { color: #22c55e; margin-top: 16px; }
.empty-state { color: var(--text-muted); padding: 40px; text-align: center; grid-column: 1 / -1; }

/* Footer */
.site-footer {
    background: rgba(10, 12, 16, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 52px 0 0;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.1fr 1fr 1fr;
    gap: 40px 32px;
    padding-bottom: 36px;
}
.footer-brand { min-width: 0; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-logo .logo-text strong { color: var(--accent); }
.footer-desc {
    color: #8b95a5;
    font-size: 14px;
    line-height: 1.65;
    max-width: 300px;
    margin-bottom: 18px;
}
.footer-col h4 {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.footer-col > a {
    display: block;
    color: #8b95a5;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color .15s;
}
.footer-col > a:hover { color: var(--accent); }
.footer-nav-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.footer-nav-cols a {
    display: block;
    color: #8b95a5;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color .15s;
}
.footer-nav-cols a:hover { color: var(--accent); }
.footer-stat-list {
    width: 100%;
}
.footer-col-stats {
    min-width: 0;
}
.footer-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    font-size: 14px;
}
.footer-stat span {
    color: #8b95a5;
    text-align: left;
}
.footer-stat strong {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
    min-width: 72px;
}
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #c8d0dc;
    transition: all .2s;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 107, 0, 0.08);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #6b7585;
    font-size: 13px;
}
.footer-heart { color: #ef4444; }

@media (max-width: 992px) {
    body { background-attachment: scroll; }
    .page-home .site-header { position: sticky; background: var(--header-bg); }
    .hero { padding: 72px 0 16px; min-height: auto; }
    .hero-grid, .build-page { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .main-nav { display: none; }
    .nx-nav-desktop { display: none !important; }
    .hero-wrap { min-height: auto; }
    .hero-categories { padding: 28px 0 20px; }
    .hero-categories-panel { border-radius: 12px; }
    .hero-categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-cat-item:nth-child(4n)::after { display: none; }
    .hero-cat-item:nth-child(n+5)::before {
        content: '';
        position: absolute;
        left: 8%; right: 8%; top: 0; height: 1px;
        background: rgba(255,255,255,.08);
    }
}
@media (max-width: 720px) {
    .info-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .features-list { grid-template-columns: 1fr; }
    .feature-item::after { display: none; }
    .feature-item:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (max-width: 1100px) and (min-width: 721px) {
    .features-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-item:nth-child(2)::after,
    .feature-item:nth-child(4)::after { display: none; }
    .feature-item:nth-child(odd):not(:last-child)::after { display: block; }
}

/* Build cards — mobile */
@media (max-width: 768px) {
    .builds-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 28px;
    }

    .build-card {
        min-width: 0;
        width: 100%;
    }

    .build-card:hover {
        transform: none;
    }

    .build-card .card-cover {
        aspect-ratio: 4 / 5;
    }

    .build-card .card-body {
        padding: 10px;
    }

    .build-card .card-body h3 {
        font-size: 13px;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    .build-card .card-meta,
    .build-card .card-stats {
        font-size: 11px;
        gap: 4px;
        margin-bottom: 4px;
    }

    .build-card .btn-block {
        min-height: 40px;
        font-size: 13px;
        margin-top: 8px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        margin: 24px 0 14px;
        gap: 10px;
    }

    .section-head h2 {
        font-size: 20px;
    }

    .tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tabs .tab {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .builds-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .build-card .card-body h3 {
        font-size: 14px;
    }
}
