/* ============================================
   ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ============================================ */

:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f8f9fa;
    --gray: #2d2d2d;
    --accent: #ff6b6b;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #f44336;
    --info: #2196F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   НАВИГАЦИЯ (ИСПРАВЛЕНА - НЕТ НАЛОЖЕНИЙ)
   ============================================ */

.navbar {
    background-color: rgba(18, 18, 18, 0.98);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 1.8rem;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

/* Основные ссылки навигации */
.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(106, 17, 203, 0.1);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(106, 17, 203, 0.15);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Выпадающее меню для документов */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--light);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    color: var(--primary);
    background: rgba(106, 17, 203, 0.1);
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown-toggle.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark);
    min-width: 180px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(106, 17, 203, 0.1);
    padding-left: 20px;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

/* ============================================
   ГЛАВНЫЙ ЭКРАН (ГЕРОЙ)
   ============================================ */

.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('images/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-overlay {
    width: 100%;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.description {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.info-box i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ============================================
   СЕКЦИИ
   ============================================ */

.section {
    padding: 80px 0;
    position: relative;
}

.bg-dark {
    background-color: var(--darker);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--light);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    margin: 10px auto;
    border-radius: 2px;
}

/* ============================================
   О ПРОЕКТЕ
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text ul {
    list-style: none;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text li i {
    color: var(--primary);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ============================================
   ОСОБЕННОСТИ
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

/* ============================================
   ПРАВИЛА
   ============================================ */

.rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.rule-item {
    background: linear-gradient(145deg, var(--gray), var(--dark));
    padding: 1.5rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.rule-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
}

.rule-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* ============================================
   КАК ПРИСОЕДИНИТЬСЯ
   ============================================ */

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.ip-address {
    background: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: monospace;
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* ============================================
   ВКОНТАКТЕ ВИДЖЕТ
   ============================================ */

.vk-widget {
    background: linear-gradient(145deg, #4a76a8, #2a5b8a);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid #5b88bd;
    box-shadow: 0 10px 30px rgba(74, 118, 168, 0.3);
}

.vk-widget h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.vk-widget h3 i {
    margin-right: 10px;
}

.vk-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 1rem;
    max-width: 500px;
    line-height: 1.5;
}

.btn-vk {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #4a76a8;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-vk:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #4a76a8;
    color: white;
    border-color: white;
}

/* ============================================
   ФУТЕР
   ============================================ */

.footer {
    background: var(--darker);
    padding: 2rem 0;
    border-top: 2px solid var(--primary);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary);
    margin-right: 10px;
}

.footer-text {
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-links {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links .separator {
    color: #666;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray);
    border-radius: 50%;
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
    .nav-links {
        gap: 0.6rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
}

@media (max-width: 900px) {
    /* Скрываем документы в выпадающем меню */
    .nav-links a[href="license.html"],
    .nav-links a[href="privacy.html"],
    .nav-links a[href="contacts.html"] {
        display: none;
    }
    
    .nav-dropdown {
        display: block;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        margin: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 10px;
        border-radius: 6px;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-menu.active {
        display: block;
        transform: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .server-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-box {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .vk-widget {
        padding: 1.5rem;
    }
    
    .vk-widget h3 {
        font-size: 1.3rem;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ УЛУЧШЕНИЯ
   ============================================ */

/* Плавная загрузка элементов */
.feature-card, .rule-item, .step, .info-box {
    animation: fadeInUp 0.6s ease;
}

/* Параллакс эффект для героя */
@media (min-width: 768px) {
    .hero {
        background-attachment: fixed;
    }
}

/* Подсветка активного раздела */
:target {
    scroll-margin-top: 80px;
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}