/* --- БАЗОВЫЕ НАСТРОЙКИ И ЦВЕТА BF --- */
:root {
    --bf-orange: #ff7b00;
    --bf-cyan: #00e5ff;
    --bg-deep: #06090f;
    --panel-bg: rgba(12, 18, 28, 0.85);
    --border-color: rgba(0, 229, 255, 0.2);
    --text-light: #e0e6ed;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- ГЛОБАЛЬНЫЕ ЭФФЕКТЫ ФОНА --- */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%; z-index: 9999; pointer-events: none; opacity: 0.3;
}

.scanner-line {
    position: fixed; top: -10%; left: 0; width: 100vw; height: 15px;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.4), transparent);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); z-index: -1; pointer-events: none;
    animation: radar-scan 6s linear infinite;
}

@keyframes radar-scan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.parallax-bg-wrapper {
    position: fixed; top: -5vh; left: -5vw; width: 110vw; height: 110vh;
    z-index: -3; pointer-events: none; transition: transform 0.1s ease-out;
}

.parallax-bg-wrapper video {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.6; filter: contrast(1.2) saturate(1.2);
}

.overlay-grid {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to right, rgba(6, 9, 15, 0.9) 10%, rgba(6, 9, 15, 0.7) 60%),
                repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 229, 255, 0.03) 2px, rgba(0, 229, 255, 0.03) 4px);
    z-index: -2; pointer-events: none;
}

/* --- СТРУКТУРНЫЕ КОНТЕЙНЕРЫ --- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
section { padding: 80px 0; position: relative; }

.slanted-box {
    background: var(--panel-bg); border-left: 3px solid var(--bf-cyan);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    padding: 30px; position: relative; backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.slanted-box:hover {
    border-left: 3px solid var(--bf-orange); background: rgba(18, 25, 40, 0.95);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.5); transform: translateX(5px);
}

/* --- НАВИГАЦИЯ --- */
header {
    position: fixed; top: 0; width: 100%; background: linear-gradient(to bottom, rgba(6, 9, 15, 0.9) 0%, transparent 100%);
    z-index: 1000; padding: 20px 0; transition: background 0.3s;
}
header.scrolled { background: rgba(6, 9, 15, 0.95); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(5px); }
nav { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: 'Teko', sans-serif; font-size: 36px; color: #fff; text-decoration: none; letter-spacing: 2px; text-transform: uppercase; }
.logo span { color: var(--bf-orange); }

.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a.nav-item {
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 2px; position: relative;
}
.nav-links a.nav-item::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--bf-cyan); transition: width 0.3s ease;
}
.nav-links a.nav-item:hover::after { width: 100%; }

/* --- ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ (ФЛАГИ) --- */
.lang-switch { display: flex; gap: 15px; margin-left: 10px; border-left: 1px solid var(--border-color); padding-left: 20px;}
.lang-flag {
    font-size: 1.5rem; text-decoration: none; display: inline-block;
    filter: grayscale(100%) opacity(0.4); 
    transition: all 0.3s ease; transform: scale(0.9);
}
.lang-flag:hover { filter: grayscale(50%) opacity(0.8); transform: scale(1.0); }
.lang-flag.active { filter: grayscale(0%) opacity(1); transform: scale(1.1); text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* --- ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero { height: 100vh; display: flex; align-items: center; padding: 0; margin-bottom: 0; }
.hero-content { max-width: 800px; margin-top: 50px; }

.glitch-title {
    font-family: 'Teko', sans-serif; font-size: 7rem; line-height: 1;
    color: #fff; text-transform: uppercase; position: relative; margin-bottom: 20px;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}
.glitch-title::before, .glitch-title::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.8;
}
.glitch-title::before { left: 2px; text-shadow: -2px 0 var(--bf-cyan); animation: glitch-anim 2s infinite linear alternate-reverse; }
.glitch-title::after { left: -2px; text-shadow: -2px 0 var(--bf-orange); animation: glitch-anim 3s infinite linear alternate-reverse; }

@keyframes glitch-anim {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 40% 0); }
}

.hero p { font-size: 1.5rem; color: var(--bf-cyan); margin-bottom: 40px; font-weight: 600; letter-spacing: 1px; }

/* --- КНОПКИ --- */
.btn {
    display: inline-block; padding: 15px 40px; font-family: 'Montserrat', sans-serif;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.2s; cursor: pointer; border: none; text-align: center;
}
.btn-primary { background-color: var(--bf-orange); color: #000; }
.btn-primary:hover { background-color: #fff; box-shadow: 0 0 20px var(--bf-orange); }
.btn-outline { background-color: transparent; color: var(--bf-cyan); border: 2px solid var(--bf-cyan); clip-path: none; border-radius: 0; }
.btn-outline:hover { background-color: var(--bf-cyan); color: #000; box-shadow: 0 0 20px var(--bf-cyan); }
.hero-buttons { display: flex; gap: 20px; }

/* --- ЗАГОЛОВКИ СЕКЦИЙ --- */
.section-header { margin-bottom: 60px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); position: relative; }
.section-header h2 { font-family: 'Teko', sans-serif; font-size: 4.5rem; line-height: 1; color: #fff; text-transform: uppercase; margin: 0 0 10px 0; }
.section-header p { color: var(--bf-cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin: 0; }

/* --- ПРЕИМУЩЕСТВА --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }
.feature-item h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; text-transform: uppercase; }
.feature-icon { font-size: 2rem; color: var(--bf-orange); margin-bottom: 15px; }

/* --- СЕРВЕРЫ --- */
.server-list { display: flex; flex-direction: column; gap: 15px; }
.server-row {
    display: flex; align-items: center; justify-content: space-between; padding: 20px 30px;
    background: var(--panel-bg); border-left: 4px solid var(--bf-orange); transition: background 0.2s;
}
.server-row:hover { background: rgba(30, 40, 60, 0.9); }
.server-info { display: flex; align-items: center; gap: 30px; flex: 1; }
.s-flag { font-size: 2rem; }
.s-name h3 { font-family: 'Teko', sans-serif; font-size: 2.2rem; letter-spacing: 1px; margin-bottom: -5px; color: #fff;}
.s-name p { color: var(--text-light); font-size: 0.9rem; opacity: 0.8;}

@keyframes pulse-glow { 0% { box-shadow: 0 0 5px rgba(0, 255, 128, 0.2); } 50% { box-shadow: 0 0 20px rgba(0, 255, 128, 0.6); } 100% { box-shadow: 0 0 5px rgba(0, 255, 128, 0.2); } }
.s-status {
    background: rgba(0, 255, 128, 0.1); color: #00ff80; padding: 5px 15px;
    border: 1px solid #00ff80; font-family: 'Teko', sans-serif; font-size: 1.2rem;
    letter-spacing: 1px; text-transform: uppercase; animation: pulse-glow 2s infinite; text-align: center; min-width: 100px;
}
.server-actions { display: flex; gap: 10px; }
.server-actions .btn { padding: 10px 20px; font-size: 0.8rem; }

/* --- СТАТИСТИКА И БАННЕРЫ --- */
.dashboard-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.stats-vertical { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-box { text-align: center; }
.stat-box .num { font-family: 'Teko', sans-serif; font-size: 3.5rem; color: var(--bf-cyan); line-height: 1; }
.stat-box .label { font-size: 0.8rem; text-transform: uppercase; font-weight: 600; opacity: 0.7; }

.banners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.banner-img img { width: 100%; height: auto; border: 1px solid var(--border-color); transition: border 0.3s, filter 0.3s; filter: grayscale(30%); }
.banner-img img:hover { border-color: var(--bf-orange); filter: grayscale(0%); box-shadow: 0 0 15px var(--bf-orange);}

/* --- DISCORD И ДОНАТ --- */
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.discord-iframe iframe { width: 100%; height: 400px; border: none; border-top: 2px solid #5865F2; }

.donate-forms { display: flex; flex-direction: column; gap: 20px; }
.wm-form { width: 100%; }
.wm-form table { width: 100%; background: rgba(0,0,0,0.5) !important; border: 1px solid var(--border-color) !important; }
.wm-form input, .wm-form select { background: #000; color: #fff; border: 1px solid var(--border-color); padding: 10px; width: 90%; margin: 5px 0; font-family: inherit; }
.wm-form td { padding: 10px; text-align: center; }

/* --- ПОДВАЛ (FOOTER) --- */
footer { background: #000; padding: 40px 0; border-top: 2px solid var(--bf-orange); text-align: center; position: relative; z-index: 10; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap;}
.footer-links a { color: var(--text-light); text-decoration: none; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; }
.footer-links a:hover { color: var(--bf-orange); }

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
.burger { display: none; cursor: pointer; }
.burger span { display: block; width: 25px; height: 3px; background: #fff; margin: 5px 0; transition: 0.3s; }

@media (max-width: 992px) {
    .dashboard-grid, .bottom-grid { grid-template-columns: 1fr; }
    .server-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .server-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .glitch-title { font-size: 4rem; }
    .burger { display: block; z-index: 1001; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%;
        background: var(--bg-deep); flex-direction: column; justify-content: center;
        align-items: center; transition: 0.4s; z-index: 1000; border-left: 2px solid var(--bf-cyan);
    }
    .nav-links.active { right: 0; }
    .lang-switch { border-left: none; border-top: 1px solid var(--border-color); padding: 20px 0 0 0; margin: 20px 0 0 0; justify-content: center; width: 100%;}
    .hero-buttons { flex-direction: column; }
    .banners-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 3.5rem; }
}

