:root {
    --bg: #06080b;
    --panel: #0d1117;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #d7ff00;
    --accent-hover: #c8ed00;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    background: var(--bg);
    font-family: "Inter", sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.background-grid {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
}

.site-main {
    position: relative;
    z-index: 1;
}

.site-main {
    padding: 24px 20px 80px;
}

.hero {
    position: relative;
    width: min(100%, 1400px);
    min-height: 590px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(6, 8, 11, 0.98) 0%,
            rgba(6, 8, 11, 0.9) 30%,
            rgba(6, 8, 11, 0.28) 58%,
            rgba(6, 8, 11, 0.04) 100%
        ),
        linear-gradient(
            0deg,
            rgba(6, 8, 11, 0.76) 0%,
            transparent 32%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 570px);
    padding: 64px 50px;
}

.hero-kicker {
    display: block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    max-width: 540px;
    margin-bottom: 20px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.04;
}

.hero-content > p {
    max-width: 470px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 30px;
}

.hero-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: #06080b;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.hero-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.hero-link:hover {
    text-decoration: underline;
}

.packs-section {
    width: 100%;
    max-width: 1200px;
    margin: 82px auto 0;
    scroll-margin-top: 24px;
}

.section-header {
    margin-bottom: 46px;
    text-align: center;
}

.section-tag {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.section-header h2 {
    margin-bottom: 14px;
    font-size: clamp(30px, 4vw, 46px);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.65;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pack-card {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.pack-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.pack-image {
    height: 220px;
    overflow: hidden;
    background: #090c10;
}

.pack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pack-card:hover img {
    transform: scale(1.035);
}

.pack-content {
    padding: 22px;
}

.pack-content h3 {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.4;
}

.pack-content span {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.packs-empty {
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--muted);
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.js .pack-card.pack-hidden {
    display: none;
}

.load-more-wrap {
    display: none;
    justify-content: center;
    margin-top: 36px;
}

.js .load-more-wrap {
    display: flex;
}

.load-more-button {
    min-height: 44px;
    padding: 11px 20px;
    color: #06080b;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.load-more-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

@media (max-width: 820px) {
    .hero {
        min-height: 620px;
        align-items: flex-end;
    }

    .hero-media {
        object-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(6, 8, 11, 0.96) 0%,
                rgba(6, 8, 11, 0.78) 52%,
                rgba(6, 8, 11, 0.2) 100%
            ),
            linear-gradient(
                0deg,
                rgba(6, 8, 11, 0.95) 0%,
                rgba(6, 8, 11, 0.25) 70%,
                transparent 100%
            );
    }

    .hero-content {
        padding: 42px 28px;
    }
}

@media (max-width: 620px) {
    .site-main {
        padding: 12px 12px 60px;
    }

    .hero {
        min-height: 610px;
    }

    .hero-media {
        object-position: 67% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(6, 8, 11, 0.99) 0%,
                rgba(6, 8, 11, 0.72) 48%,
                rgba(6, 8, 11, 0.18) 100%
            );
    }

    .hero-content {
        padding: 34px 18px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .packs-section {
        margin-top: 62px;
    }

    .section-header {
        margin-bottom: 34px;
    }

    .packs-grid {
        grid-template-columns: 1fr;
    }
}
