/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a0f0f 0%, #2d1b0f 50%, #3d2610 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff8c00;
}

.nav-logo img {
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    transition: right 0.3s;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #ff8c00;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff8c00;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background: rgba(255, 140, 0, 0.7) !important;
    border-radius: 2px;
    margin: 5px 0;
    transition: background 0.3s;
    box-shadow: 0 1px 6px rgba(255,140,0,0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, rgba(26, 15, 15, 0.8) 0%, rgba(45, 27, 15, 0.8) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%236366f1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #ff8c00, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #a1a1aa;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ff8c00, #ffa500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #ff8c00;
    border: 2px solid #ff8c00;
}

.btn-secondary:hover {
    background: #ff8c00;
    color: white;
    transform: translateY(-2px);
}

.server-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255, 140, 0, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    backdrop-filter: blur(10px);
}

.stat i {
    font-size: 2rem;
    color: #ff8c00;
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.9rem;
    color: #a1a1aa;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d1b0f 0%, #3d2610 100%);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 140, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff8c00, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* Rules Section */
.rules {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #0f0f23 100%);
}

.rules h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #ffffff;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.rule-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
}

.rule-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(99, 102, 241, 0.3);
    margin-bottom: 1rem;
}

.rule-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.rule-item p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* Donate Section */
.donate {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

.donate h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.donate > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #a1a1aa;
    margin-bottom: 3rem;
}

.donate-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.package {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.package:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.package.featured {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.package h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.package ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.package ul li {
    color: #a1a1aa;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.package ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #3d2610 0%, #2d1b0f 100%);
}

.download h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.download > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #a1a1aa;
    margin-bottom: 3rem;
}

.download-content {
    max-width: 1000px;
    margin: 0 auto;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 140, 0, 0.3);
}

.download-item i {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

.download-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.download-item p {
    color: #a1a1aa;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.download-details span {
    color: #a1a1aa;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-details i {
    font-size: 1rem;
    color: #ff8c00;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.btn-large:last-child {
    margin-bottom: 0;
}

.system-requirements {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.system-requirements h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.requirement h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ff8c00;
    text-align: center;
}

.requirement ul {
    list-style: none;
}

.requirement ul li {
    color: #a1a1aa;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.requirement ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff8c00;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d1b0f 0%, #3d2610 100%);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #ffffff;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-item i {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-item p {
    color: #a1a1aa;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #1a0f0f;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #a1a1aa;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff8c00;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8c00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff8c00;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #a1a1aa;
}

/* Loader styles */
#loader {
    position: fixed;
    z-index: 2000;
    background: #1a0f0f;
    width: 100vw;
    height: 100vh;
    top: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ff8c00;
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
body.loaded #loader {
    opacity: 0;
    pointer-events: none;
}

/* Particles background */
#background-circles, .background-circles {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.background-circles .circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #ff9800 70%, #fff0 100%);
    box-shadow: 0 0 16px 0 #ff980044;
    pointer-events: none;
    transition: opacity 0.5s;
    animation: float 14s infinite ease-in-out;
}
#particles-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: #ff8c00;
    opacity: 0.7;
    animation: float 8s linear infinite;
}
@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-60px) scale(1.2); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}

/* Falling Logos */
.falling-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}
.falling-logo {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.85;
    animation: fall-logo 1.8s linear forwards;
}
@keyframes fall-logo {
    0% {
        top: -50px;
        opacity: 0.7;
        transform: scale(0.8) rotate(-20deg);
    }
    80% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        top: 100vh;
        opacity: 0.2;
        transform: scale(0.7) rotate(40deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        background: #1f2937;
        flex-direction: column;
        width: 220px;
        height: 100vh;
        padding: 40px 20px;
        gap: 20px;
        z-index: 100;
        transition: right 0.3s;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .server-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .donate-packages {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .server-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.rule-item,
.package,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f23;
}

::-webkit-scrollbar-thumb {
    background: #ff8c00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffa500;
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 140, 0, 0.92); /* Оранжевый с прозрачностью */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1001;
        display: none;
        transition: opacity 0.3s;
        opacity: 0;
    }
    .nav-menu.active {
        display: flex;
        opacity: 1;
    }
    .nav-menu a {
        color: #fff;
        font-size: 1.5rem;
        font-weight: 600;
    }
    .nav-close {
        display: none;
    }
}

.nav-close {
    display: none;
}

@media (max-width: 900px) {
    .nav-close {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 2.5rem;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
        opacity: 0.8;
        transition: opacity 0.2s;
    }
    .nav-close:hover {
        opacity: 1;
    }
}
