:root { --primary: #667eea; --secondary: #764ba2; --dark: #1a1a2e; --light: #ffffff; }
/* ИСПРАВЛЕНИЕ: Добавлен селектор * */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: var(--light); 
    line-height: 1.6; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    
    /* === НАСТРОЙКИ ФОНА === */
    background-color: var(--dark); /* Цвет подстраховки */
    /* Градиент поверх картинки для читаемости текста + путь к изображению */
    background-image: linear-gradient(rgba(11, 14, 20, 0.99), rgba(11, 14, 20, 0.9)), url('/assets/img/bg-dayz.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Эффект параллакса при прокрутке */
}

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

/* ===== ШАПКА С ОТСТУПАМИ ===== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
.header-bg { background: #0b0e14; margin: 0 20%; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; max-width: 1600px; margin: 0 auto; padding: 0 20px; }
.brand-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-main { font-size: 22px; font-weight: 900; color: #ffffff; letter-spacing: 3px; text-transform: uppercase; }
.logo-tag { font-size: 7px; color: #555; font-weight: 600; letter-spacing: 2px; margin-top: 3px; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a { color: #888; text-decoration: none; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
.desktop-nav a:hover { color: #fff; }
.burger-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger-btn span { width: 20px; height: 2px; background: #fff; transition: 0.3s; }
.mobile-menu { display: none; position: absolute; top: 70px; left: 8%; right: 8%; background: #0b0e14; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; flex-direction: column; padding: 20px; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.mobile-menu.active { display: flex; }
.mobile-menu a { color: #888; text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #fff; }

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .burger-btn { display: flex; }
    .header-bg { margin: 0 20px; border-radius: 0 0 8px 8px; }
    .mobile-menu { left: 20px; right: 20px; border-radius: 0 0 8px 8px; }
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.hero { text-align: center; padding: 130px 20px 40px; background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%); flex: 1; }
.hero h1 { font-size: 3em; margin-bottom: 15px; background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2em; color: #ccc; max-width: 700px; margin: 0 auto 30px; }

.main-video-container { max-width: 800px; margin: 0 auto 30px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.ip-banner-wrapper { max-width: 600px; width: 100%; margin: 0 auto 30px; }
.ip-banner-label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.75rem; color: #8899bb; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 8px; }
.ip-banner-label svg, .ip-banner-label img { width: 16px !important; height: 16px !important; fill: #8899bb; flex-shrink: 0; display: block; }
.ip-row { display: flex; align-items: stretch; gap: 16px; padding: 16px 24px; background: rgba(22, 33, 62, 0.7); backdrop-filter: blur(20px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5); }
.ip-address-display { flex: 1; font-family: 'Courier New', monospace; font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 12px 20px; border-radius: 10px; border: 2px solid rgba(0, 210, 255, 0.2); background-color: rgba(0, 210, 255, 0.05); display: flex; align-items: center; }
.ip-copy-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; white-space: nowrap; }
.ip-copy-btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.ip-copy-btn.copied { background: rgba(46, 204, 113, 0.15); border-color: #2ecc71; color: #2ecc71; }

.region-info { max-width: 800px; margin: 0 auto 30px; background: rgba(255, 255, 255, 0.05); padding: 25px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05); text-align: left; }
.region-info h2 { color: var(--primary); margin-bottom: 15px; font-size: 1.5em; text-align: center; }
.region-info p { color: #ddd; margin-bottom: 15px; }

.btn-main { display: inline-block; padding: 15px 40px; border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 1.1em; transition: transform 0.2s; cursor: pointer; border: none; background: var(--primary); color: white; box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6); }

/* ===== ГОРИЗОНТАЛЬНОЕ ОПИСАНИЕ ВАНИЛЬНОГО СЕРВЕРА ===== */
.vanilla-desc-section { max-width: 1100px; margin: 60px auto 0; padding: 0 20px; }
.section-title { text-align: center; font-size: 2.2rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; font-weight: 700; }
.section-subtitle { text-align: center; color: #aab3c9; font-size: 1.1rem; margin-bottom: 40px; }

.desc-grid-horizontal { display: grid; grid-template-columns: 1fr; gap: 15px; }

.desc-card-h {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 30px;
    transition: all 0.3s ease;
    gap: 25px;
}

.desc-card-h:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon-box {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

/* ИСПРАВЛЕНИЕ: Выравнивание текста по левому краю */
.card-content {
    text-align: left;
}

.card-content h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.card-content p {
    color: #99aabb;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.advantages-section { max-width: 1100px; margin: 40px auto 0; padding: 0 20px; }
.advantages-title { text-align: center; font-size: 2.5rem; margin-bottom: 35px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card { background: rgba(255, 255, 255, 0.03); padding: 25px 20px; border-radius: 16px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.4s; }
.adv-card:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-5px); border-color: rgba(102, 126, 234, 0.3); }
.adv-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.adv-name { font-size: 1.1rem; font-weight: 700; color: #667eea; margin-bottom: 6px; text-transform: uppercase; }
.adv-desc { color: #8899bb; font-size: 0.9rem; }

.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px); }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 900px; background: #000; border-radius: 10px; overflow: hidden; }
.close-btn { position: absolute; top: -40px; right: 0; color: white; font-size: 35px; font-weight: bold; cursor: pointer; }

footer { text-align: center; padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #888; font-size: 0.9em; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2em; }
    .modal-content { width: 95%; }
    .advantages-grid { grid-template-columns: 1fr; }
    .ip-row { flex-direction: column; }
    .ip-copy-btn { width: 100%; padding: 14px; justify-content: center; white-space: nowrap; background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
    
    /* Адаптация горизонтальных карточек для мобильных */
    .desc-card-h { flex-direction: column; text-align: center; padding: 25px 20px; }
    .card-icon-box { margin: 0 auto 15px; }
    .card-content { text-align: center; } /* На мобильных возвращаем центровку */
}

/* ===== РАЗДЕЛ: ПРИСОЕДИНЯЙТЕСЬ К НАМ ===== */
.social-join-section {
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.social-icons-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 140px; /* Увеличенный отступ до футера (было 0 или меньше) */
}

.social-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    gap: 12px;
}

.social-icon-link svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-icon-link span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Цвета брендов при наведении */
.social-icon-link.discord:hover { 
    background: rgba(88, 101, 242, 0.15); 
    border-color: #5865F2; 
    color: #5865F2; 
    transform: translateY(-5px);
}
.social-icon-link.vk:hover { 
    background: rgba(76, 117, 163, 0.15); 
    border-color: #4C75A3; 
    color: #4C75A3; 
    transform: translateY(-5px);
}
.social-icon-link.website:hover { 
    background: rgba(102, 126, 234, 0.15); 
    border-color: var(--primary); 
    color: var(--primary); 
    transform: translateY(-5px);
}
.social-icon-link.forum:hover { 
    background: rgba(118, 75, 162, 0.15); 
    border-color: var(--secondary); 
    color: var(--secondary); 
    transform: translateY(-5px);
}
.social-icon-link.telegram:hover { 
    background: rgba(36, 161, 222, 0.15); 
    border-color: #24A1DE; 
    color: #24A1DE; 
    transform: translateY(-5px);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .social-icons-grid {
        gap: 15px;
    }
    .social-icon-link {
        width: 90px;
        height: 90px;
    }
    .social-icon-link svg {
        width: 30px;
        height: 30px;
    }
    .social-icon-link span {
        font-size: 0.75rem;
    }
}
