:root {
    --bg: #07090f;
    --bg-soft: #0d111c;
    --card: rgba(18, 24, 36, .82);
    --card-solid: #121824;
    --text: #f4f7fb;
    --muted: #aab4c5;
    --line: rgba(255,255,255,.10);
    --accent: #f7c948;
    --accent-2: #52ff9a;
    --danger: #ff5c7a;
    --shadow: 0 24px 70px rgba(0,0,0,.38);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(247,201,72,.16), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(82,255,154,.10), transparent 25%),
        var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container {
    width: min(1370px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(7,9,15,.78);
    backdrop-filter: blur(16px);
}
.topbar__inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.05em;
    text-transform: lowercase;
}
.logo span { color: var(--accent); }
.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav a {
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.nav a:hover {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255,255,255,.04);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero__slider,
.hero__slide,
.hero__shade {
    position: absolute;
    inset: 0;
}
.hero__slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity .9s ease, transform 7s linear;
}
.hero__slide.is-active {
    opacity: 1;
    transform: scale(1.1);
}
.hero__slide--empty {
    background:
        linear-gradient(110deg, rgba(7,9,15,.96), rgba(17,26,41,.62)),
        radial-gradient(circle at 25% 45%, rgba(247,201,72,.28), transparent 24%),
        radial-gradient(circle at 74% 45%, rgba(82,255,154,.16), transparent 22%),
        linear-gradient(135deg, #0b0d16, #141b2c);
}
.hero__shade {
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(7,9,15,.96) 0%, rgba(7,9,15,.72) 46%, rgba(7,9,15,.30) 100%),
        linear-gradient(0deg, #07090f 0%, rgba(7,9,15,.40) 34%, rgba(7,9,15,.25) 100%);
}
.hero__content {
    position: relative;
    z-index: 3;
    padding: 90px 0;
    max-width: 1370px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 9px 13px;
    border: 1px solid rgba(247,201,72,.32);
    border-radius: 999px;
    background: rgba(247,201,72,.10);
    color: #ffe391;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.badge--dark {
    border-color: var(--line);
    background: rgba(255,255,255,.05);
    color: var(--muted);
}
.hero h1 {
    margin: 24px 0 18px;
    max-width: 880px;
    font-size: clamp(42px, 6vw, 86px);
    line-height: .96;
    letter-spacing: -.06em;
}
.hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
}
.hero__actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.hero__actions--left { justify-content: flex-start; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-weight: 850;
    cursor: pointer;
    box-shadow: none;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.10);
}
.btn--primary {
    color: #111;
    border-color: rgba(247,201,72,.72);
    background: linear-gradient(135deg, #ffe071, #f7c948);
}
.btn--primary:hover { background: linear-gradient(135deg, #ffeb9a, #ffd642); }
.btn--ghost { background: rgba(255,255,255,.075); }
.btn--steam {
    color: #07120b;
    border-color: rgba(82,255,154,.50);
    background: linear-gradient(135deg, #9dffc4, #52ff9a);
}
.btn--small {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
}
.btn--danger {
    color: #fff;
    border-color: rgba(255,92,122,.48);
    background: rgba(255,92,122,.16);
}
.btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}
.notice {
    margin-top: 18px;
    max-width: 760px;
    color: #d6dbe7;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    padding: 13px 15px;
    border-radius: 16px;
    line-height: 1.45;
}

.section { padding: 80px 0; }
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.card--big { padding: 32px; }
.section-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.section-title span {
    display: inline-flex;
    height: 34px;
    min-width: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #111;
    background: var(--accent);
    font-size: 13px;
    font-weight: 900;
}
.section-title h2,
.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.05;
    letter-spacing: -.04em;
}
.text-content {
    color: #dce3ef;
    font-size: 17px;
    line-height: 1.75;
}
.text-content p { margin: 0 0 16px; }
.text-content p:last-child { margin-bottom: 0; }
.requirements p { white-space: normal; }
.section--builds { padding-top: 40px; }
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.section-head h2 { margin-top: 14px; }
.section-head p {
    max-width: 540px;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}
.build-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.build-card {
    overflow: hidden;
    background: var(--card-solid);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.build-card__image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #111827;
}
.build-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.build-card:hover .build-card__image img { transform: scale(1.05); }
.image-placeholder {
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(247,201,72,.20), rgba(82,255,154,.12)),
        radial-gradient(circle at center, rgba(255,255,255,.09), transparent 44%),
        #111827;
    color: rgba(255,255,255,.86);
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -.05em;
}
.image-placeholder--large {
    min-height: 520px;
    border-radius: 20px;
}
.build-card__body { padding: 22px; }
.build-card h3 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -.03em;
}
.build-card h3 a:hover { color: var(--accent); }
.build-card p {
    min-height: 68px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}
.build-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.more-link {
    color: #ffe391;
    font-weight: 850;
}
.more-link:hover { color: var(--accent-2); }
.empty-state {
    padding: 36px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255,255,255,.04);
}
.footer {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    color: var(--muted);
    background: rgba(0,0,0,.18);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

.build-page { min-height: calc(100vh - 160px); }
.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}
.back-link:hover { color: var(--accent); }
.build-hero-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 26px;
    align-items: stretch;
    margin-bottom: 26px;
}
.build-gallery,
.build-hero-card__content {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.build-gallery__main {
    height: 520px;
    overflow: hidden;
    border-radius: 20px;
    background: #111827;
}
.build-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.build-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.gallery-thumb {
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    height: 82px;
    background: #111827;
    cursor: pointer;
}
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.build-hero-card__content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.build-hero-card h1 {
    margin: 20px 0 14px;
    font-size: clamp(36px, 4vw, 64px);
    line-height: 1;
    letter-spacing: -.055em;
}
.lead {
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
}
.download-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}
.download-counters span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255,255,255,.04);
}
.build-description { margin-top: 0; }
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.error-page h1 {
    margin: 0 0 12px;
    font-size: 56px;
    letter-spacing: -.05em;
}
.error-page p { color: var(--muted); }
.muted { color: var(--muted); }

@media (max-width: 980px) {
    .nav { display: none; }
    .hero { min-height: 620px; }
    .two-cols,
    .build-grid,
    .build-hero-card { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .build-gallery__main { height: 380px; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 22px, 1370px); }
    .topbar__inner { height: 64px; }
    .logo { font-size: 23px; }
    .hero { min-height: 660px; }
    .hero__content { padding: 60px 0; }
    .hero p { font-size: 17px; }
    .hero__actions { align-items: stretch; }
    .btn { width: 100%; }
    .section { padding: 52px 0; }
    .card--big { padding: 22px; }
    .build-card__image { height: 190px; }
    .build-gallery__main { height: 280px; }
    .build-gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
    .build-hero-card__content { padding: 24px; }
}

.catalog-section { padding-top: 40px; }
.section-more {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}
.page-title {
    margin: 14px 0 0;
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.05;
    letter-spacing: -.05em;
}

@media (max-width: 560px) {
    .section-more .btn { width: 100%; }
}
