:root {
    --primary: #5be06f;
    --primary-glow: rgba(91, 224, 111, 0.5);
    --bg-dark: #0a0b10;
    --glass-bg: rgba(20, 22, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #eaeaea;
    --text-muted: #a0a0a0;
    --font-main: "Montserrat", sans-serif;
    --card-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --discord: #5865F2;
    --telegram: #24A1DE;
    --vk: #0077FF;
    --boosty: #F15F2C;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: var(--bg-dark);
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-dark);
    background-image: url("img/background.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 11, 16, 0.9);
    backdrop-filter: blur(16px);
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    font-size: 22px;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-burger span {
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 6, 8, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mm-link {
    color: white;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
}

header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.logo {
    width: 650px;
    max-width: 90%;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.badge {
    background: rgba(255,255,255,0.08);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
    color: #fff;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 19px;
    max-width: 550px;
    margin-bottom: 36px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 18px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-btn {
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn.primary {
    background: var(--primary);
    color: #0b1a10;
    box-shadow: 0 0 25px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-btn.primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 40px var(--primary-glow);
    background: #6af07f;
}

.cta-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-btn.secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    border-color: white;
}

.host-credit a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
    border-bottom: 1px solid transparent;
}
.host-credit a:hover { color: white; border-color: rgba(255,255,255,0.5); }

section {
    max-width: 1150px;
    margin: 80px auto;
    padding: 0 24px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
    letter-spacing: -0.5px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.status-section {
    margin-top: 100px;
    z-index: 10;
}

.server-card {
    background: linear-gradient(135deg, rgba(35, 40, 50, 0.9), rgba(15, 17, 22, 0.95));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.status-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #444;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
    transition: 0.3s;
}

.status-indicator.online {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 224, 111, 0.15);
    animation: pulse 2s infinite;
}

.status-indicator.offline { background: #ff4d4d; box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.15); }

.status-titles h3 { font-size: 24px; line-height: 1.1; font-weight: 800; color: white; }
.state-text { font-size: 15px; opacity: 0.7; font-weight: 500; }

.online-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.stat-numbers { font-size: 28px; font-weight: 800; color: white; }
.stat-numbers .divider { opacity: 0.3; font-weight: 300; margin: 0 6px; }

.progress-track {
    background: rgba(255,255,255,0.06);
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    width: 350px;
    max-width: 100%;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4caf50);
    border-radius: 6px;
    transition: width 1s ease;
    box-shadow: 0 0 15px var(--primary-glow);
}

.refresh-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.refresh-btn:hover { background: rgba(255,255,255,0.1); transform: rotate(180deg) scale(1.1); color: var(--primary); border-color: var(--primary); }

.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mode-card {
    padding: 36px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: 0.3s;
}

.mode-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
    background: rgba(30, 35, 45, 0.8);
}

.mode-card:hover::before { opacity: 1; }

.mode-card h3 { font-size: 26px; margin-bottom: 14px; color: white; }
.mode-card p { opacity: 0.75; font-size: 16px; line-height: 1.7; }

.gallery-container { padding: 12px; }
.gallery-viewport { border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.gallery-track { display: flex; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-track img { width: 100%; flex-shrink: 0; aspect-ratio: 16/9; object-fit: cover; }

.gallery-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(4px);
}

.gallery-ctrl:hover { background: var(--primary); color: #000; transform: translateY(-50%) scale(1.1); box-shadow: 0 0 20px var(--primary-glow); }
.gallery-ctrl.prev { left: 24px; }
.gallery-ctrl.next { right: 24px; }

.gallery-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; margin-bottom: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary); transform: scale(1.4); box-shadow: 0 0 10px var(--primary-glow); }

.staff-wrapper { position: relative; display: flex; align-items: center; }
.staff-scroll-area { display: flex; gap: 24px; overflow-x: auto; padding: 20px 4px; scroll-behavior: smooth; }
.staff-arrow { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; width: 44px; height: 44px; color: white; font-size: 20px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.staff-arrow:hover { background: var(--primary); color: black; box-shadow: 0 0 15px var(--primary-glow); }

.staff-card {
    min-width: 220px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.staff-img-box img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.05);
}

.staff-card h4 { font-size: 18px; margin-bottom: 4px; color: white; }

.role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 8px;
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.role-owner .role-badge { background: linear-gradient(135deg, #ff4d4d, #b30000); }
.role-curator .role-badge { background: linear-gradient(135deg, #ff9f43, #e67e22); }
.role-tech .role-badge { background: linear-gradient(135deg, #54a0ff, #2e86de); }
.role-mod .role-badge { background: linear-gradient(135deg, #00b894, #00cec9); }

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.faq-item { padding: 30px; border-left: 3px solid transparent; transition: 0.3s; }
.faq-item:hover { border-left-color: var(--primary); background: rgba(30,35,45,0.8); }
.faq-item h4 { margin-bottom: 12px; color: white; font-size: 18px; }
.faq-item p { opacity: 0.7; font-size: 15px; }
.faq-item a { color: var(--telegram); text-decoration: none; font-weight: 600; border-bottom: 1px dotted var(--telegram); }

footer {
    background: #050508;
    padding: 60px 24px 80px; 
    margin-top: auto; 
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left { display: flex; flex-direction: column; gap: 10px; }
.copyright { font-weight: 600; font-size: 14px; opacity: 0.6; }

.credits {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255,255,255,0.03);
    padding: 8px 14px;
    border-radius: 8px;
}
.credits:hover { opacity: 1; background: rgba(255,255,255,0.08); color: var(--primary); }
.credits img { width: 18px; }

.footer-links a {
    margin-left: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}
.footer-links a:hover { color: white; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.social-dock {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    padding-left: 10px;
}

.social-item {
    display: flex;
    align-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(15, 17, 25, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background 0.3s, 
                box-shadow 0.3s,
                transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.social-item img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.3s;
}

.social-item span {
    white-space: nowrap;
    color: white;
    font-weight: 700;
    font-size: 15px;
    opacity: 0;
    margin-left: 12px;
    transform: translateX(-10px);
    transition: 0.3s;
}

.social-item:hover {
    width: 140px; 
    transform: translateX(5px);
}

.social-item:hover span {
    opacity: 1;
    transform: translateX(0);
}

.social-item:hover img {
    transform: scale(1.1);
}


.social-item.discord:hover { background: var(--discord); box-shadow: 0 0 25px rgba(88, 101, 242, 0.6); border-color: var(--discord); }
.social-item.telegram:hover { background: var(--telegram); box-shadow: 0 0 25px rgba(36, 161, 222, 0.6); border-color: var(--telegram); }
.social-item.vk:hover { background: var(--vk); box-shadow: 0 0 25px rgba(0, 119, 255, 0.6); border-color: var(--vk); }
.social-item.boosty:hover { background: var(--boosty); box-shadow: 0 0 25px rgba(241, 95, 44, 0.6); border-color: var(--boosty); }



.mobile-bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 22, 30, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 50px;
    display: none;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.mb-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05); transition: 0.2s;
}
.mb-link img { width: 22px; height: 22px; }
.mb-link:active { transform: scale(0.9); background: var(--primary); }


.fade-in-up { opacity: 0; animation: fadeInUp 1s ease-out forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(91, 224, 111, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(91, 224, 111, 0); }
    100% { box-shadow: 0 0 0 0 rgba(91, 224, 111, 0); }
}

.fade-on-scroll { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-on-scroll.visible { opacity: 1; transform: translateY(0); }


@media (max-width: 900px) {
    .social-dock { display: none; }
    .mobile-bottom-bar { display: flex; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .modes-grid { grid-template-columns: 1fr; }
    
    .server-card { flex-direction: column; text-align: center; gap: 24px; padding: 24px; }
    .online-stats { justify-content: center; }
    .progress-track { margin: 0 auto; }
    .status-section { margin-top: 60px; }
    
    .gallery-ctrl { display: none; }
    .staff-arrow { display: none; }
    header { padding-top: 80px; }
    .hero-content { margin-top: 20px; }
    .logo { width: 80%; }
}