/* === ОБНУЛЕНИЕ И БАЗА === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    /* Градиент от темно-бордового к черному */
    background: linear-gradient(135deg, #1a0505 0%, #080808 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* === ШАПКА === */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    /* Стекломорфизм */
    background: rgba(10, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; image-rendering: pixelated; }
.brand-name { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.5px; }

main {
    flex: 1 0 auto; /* Это заставит контент занимать все свободное место, толкая футер вниз */
}

/* Навигация */
.main-nav { display: flex; gap: 8px; }

.nav-link {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s;
    color: #ccc;
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Кнопка Магазин (Оранжевая обводка) */
.btn-store {
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.4);
}
.btn-store:hover {
    background: rgba(255, 170, 0, 0.1);
    border-color: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.2);
}

/* === HERO СЕКЦИЯ (Главный экран) === */
.hero {
    min-height: calc(100vh - 80px); /* Высота экрана минус шапка */
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Текстовая часть */
.hero-text { flex: 1; max-width: 600px; z-index: 2; }

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffaa00;
    margin-bottom: 20px;
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.description {
    font-size: 1.1rem;
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

/* Кнопки */
.hero-buttons { display: flex; gap: 20px; }

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #ffaa00;
    color: #000;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 170, 0, 0.3);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Статус сервера */
.server-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.05);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.online { background: #00ff44; box-shadow: 0 0 10px #00ff44; }
.offline { background: #ff2222; box-shadow: 0 0 10px #ff2222; }

.status-text { font-weight: 600; color: #ddd; }
.online-count { color: #fff; font-weight: 800; }

/* Правая часть: Картинка */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 650px;
    image-rendering: pixelated;
    animation: float 6s ease-in-out infinite; /* Парение */
    z-index: 2;
}

/* Свечение за персонажем */
.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 100, 0, 0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ПОДВАЛ */
footer {
    text-align: center;
    padding: 40px 20px; /* Увеличил отступы */
    font-size: 0.8rem;
    color: #555;
    width: 100%;
    background: rgba(0,0,0,0.2);
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 900px) {
    .site-header {
        padding: 15px 0;
    }
    .header-content {
        flex-direction: column; /* Элементы в колонку */
        gap: 15px;
    }
    .main-nav { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center;
        gap: 5px;
    }
    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .hero {
        padding-top: 160px; /* Увеличили отступ, чтобы картинка не лезла под шапку */
    }
    .hero-container { 
        flex-direction: column-reverse; /* Картинка сверху, текст снизу */
        text-align: center; 
    }
    .hero-text { 
        margin-top: 40px; 
        max-width: 100%;
    }
    .hero-buttons { 
        justify-content: center;
        flex-direction: column; /* Кнопки одна под другой для удобства пальцев */
    }

    .server-status { 
        margin: 0 auto 30px auto; 
    }

    h1 { 
        font-size: 2.5rem; /* Уменьшили шрифт для узких экранов */
    }

    .hero-image img { 
        max-height: 300px; 
    }

    /* Убираем абсолютное позиционирование футера, чтобы он не прыгал */
    footer {
        position: relative; 
    }
}