* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --primary: #8a0303;
    --secondary: #2c3e50;
    --accent: #f39c12;
    --dark: #1a1a1a;
    --light: #ecf0f1;
}

body {
    background-color: #0c0c0c;
    color: var(--light);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMGMwYzBjIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMxNjE2MTYiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    letter-spacing: 2px;
    font-size: 18px;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.section-title {
    text-align: center;
    margin-bottom: 0px;
    position: relative;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--light);
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary);
}

.flash-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.flash-success {
    background-color: #2ecc40;
    color: white;
    border: 1px solid #27ae60;
}

.flash-error {
    background-color: #ff4136;
    color: white;
    border: 1px solid #c0392b;
}

.flash-warning {
    background-color: #ff851b;
    color: white;
    border: 1px solid #e67e22;
}

img {
    max-width: 100%;
    height: auto;
}

/* Оптимизация загрузки изображений */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

@supports (display: grid) {
    .features-grid {
        display: grid;
    }
}

@supports not (display: grid) {
    .features-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .feature-card {
        flex: 1 0 300px;
        margin: 10px;
    }
}

/* Оптимизация анимаций */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.top-mods {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #ecf0f1;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.section-header p {
    color: #bdc3c7;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}
