/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --dark-gray: #2a2a2a;
    --accent-red: #c41e3a;
    --dark-red: #8b0000;
    --bright-red: #ff073a;
    --gold: #ffd700;
    --dark-gold: #b8860b;
    --steam-bronze: #cd7f32;
    --text-light: #e5e5e5;
    --text-gold: #ffd700;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Анимированный фон */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 50%, var(--dark-gray) 100%);
}

.sparks {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sparks::before,
.sparks::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 
        50px 100px 0 0 var(--gold),
        150px 250px 0 0 var(--accent-red),
        300px 150px 0 0 var(--gold),
        450px 300px 0 0 var(--accent-red),
        600px 200px 0 0 var(--gold),
        750px 350px 0 0 var(--accent-red),
        100px 400px 0 0 var(--gold),
        250px 500px 0 0 var(--accent-red);
    animation: sparkle 3s infinite ease-in-out;
}

.sparks::after {
    left: 50%;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Шестерёнки */
.gears {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gear {
    position: absolute;
    border: 3px solid var(--steam-bronze);
    border-radius: 50%;
    background: radial-gradient(circle, var(--dark-gray) 30%, var(--secondary-black) 70%);
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: var(--steam-bronze);
    border-radius: 50%;
}

.gear::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 2px solid var(--steam-bronze);
    border-radius: 50%;
}

.gear-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
    animation: rotate 20s linear infinite;
}

.gear-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 5%;
    animation: rotate-reverse 15s linear infinite;
}

.gear-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-red);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold);
}

.logo-gear {
    width: 30px;
    height: 30px;
    border: 2px solid var(--steam-bronze);
    border-radius: 50%;
    animation: rotate 3s linear infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
}

.highlight {
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-red);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gold);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.3);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    border: 2px solid var(--accent-red);
}

.btn-primary:hover {
    background: var(--bright-red);
    border-color: var(--bright-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Герой изображение */
.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minecraft-block {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--dark-gray), var(--secondary-black));
    border: 3px solid var(--steam-bronze);
    position: relative;
    transform: rotateX(45deg) rotateY(45deg);
    animation: float 3s ease-in-out infinite;
}

.minecraft-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(196, 30, 58, 0.1) 10px,
        rgba(196, 30, 58, 0.1) 20px
    );
}

@keyframes float {
    0%, 100% { transform: rotateX(45deg) rotateY(45deg) translateY(0); }
    50% { transform: rotateX(45deg) rotateY(45deg) translateY(-20px); }
}

.steam-pipe {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 20px;
    background: var(--steam-bronze);
    border-radius: 10px;
}

.steam-pipe::before {
    content: '';
    position: absolute;
    right: -10px;
    top: -10px;
    width: 20px;
    height: 40px;
    background: var(--steam-bronze);
    border-radius: 10px;
}

/* Секция особенностей */
.features-preview {
    padding: 4rem 2rem;
    background: rgba(26, 26, 26, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-red);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(42, 42, 42, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--dark-gray);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-icon,
.steam-icon,
.community-icon {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    position: relative;
}

.gear-icon::before,
.steam-icon::before,
.community-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
}

.feature-card h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Футер */
.footer {
    background: var(--secondary-black);
    border-top: 2px solid var(--accent-red);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* Мобильная адаптация */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    margin: 3px 0;
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Стили для страниц */
.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Стили для карточек */
.card {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid var(--dark-gray);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.2);
}

.card-title {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content {
    color: var(--text-light);
    line-height: 1.6;
}

/* Таблицы */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--dark-gray);
}

th {
    background: var(--accent-red);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: rgba(196, 30, 58, 0.1);
}

/* Список */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(42, 42, 42, 0.5);
    border-left: 4px solid var(--accent-red);
    transition: all 0.3s ease;
}

.styled-list li:hover {
    background: rgba(196, 30, 58, 0.1);
    transform: translateX(10px);
}

.styled-list li::before {
    content: '⚙';
    color: var(--gold);
    margin-right: 1rem;
    font-weight: bold;
}

/* Стили для навигации (дополнение к существующим) */
.navbar {
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #c41e3a;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #c41e3a, #1e90c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid #c41e3a;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #c41e3a, #1e90c4);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-link.active {
    color: #fff;
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid rgba(196, 30, 58, 0.5);
}

.nav-link.active::before {
    transform: translateX(0);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #c41e3a;
    transition: all 0.3s ease;
}

/* Адаптивность навигации */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 20, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-link {
        width: 90%;
        text-align: center;
        padding: 15px;
        margin: 5px 0;
    }
}

/* Стили для навигации чата (дополнение) */
.nav-link.active {
    color: #fff;
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid rgba(196, 30, 58, 0.5);
}

/* Анимация для загрузки */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Стили для кнопок в чате */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(145deg, #c41e3a, #a0182e);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
    background: linear-gradient(145deg, #d42942, #c41e3a);
}

.btn-secondary {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border-color: #c41e3a;
}

/* Адаптивность для навигации */
@media (max-width: 768px) {
    .nav-menu {
        max-height: 400px;
        overflow-y: auto;
    }
    
    .chat-container {
        padding: 15px;
    }
    
    .chat-main {
        height: 500px;
    }
}

/* ============================================
   УЛУЧШЕННАЯ ПОДДЕРЖКА МОБИЛЬНЫХ УСТРОЙСТВ
   ============================================ */

/* Общие улучшения для мобильных устройств */
@media (max-width: 768px) {
    /* Улучшение отзывчивости для очень маленьких экранов */
    @media (max-width: 350px) {
        .logo-text {
            font-size: 1.4rem !important;
        }
        
        .logo-img {
            width: 35px !important;
            height: 35px !important;
        }
        
        .btn-discord-nav, 
        .btn-discord-apply,
        .btn {
            padding: 8px 12px !important;
            font-size: 0.85rem !important;
        }
    }
    
    /* Оптимизация для мобильных устройств */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        overflow-x: hidden;
    }
    
    /* Улучшение навигации для мобильных устройств */
    .nav-container {
        height: 65px !important;
        padding: 0 12px !important;
    }
    
    .nav-menu {
        padding: 15px !important;
        gap: 8px !important;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }
    
    /* Улучшение главной секции для мобильных */
    .hero {
        padding: 100px 15px 60px !important;
        min-height: calc(100vh - 65px) !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin: 15px 0 !important;
    }
    
    .hero-stats {
        flex-direction: column !important;
        gap: 15px !important;
        margin: 20px 0 !important;
    }
    
    .stat {
        width: 100% !important;
        padding: 12px !important;
    }
    
    .hero-buttons {
        margin-top: 25px !important;
    }
    
    .btn-primary, 
    .btn-secondary, 
    .btn-discord-apply {
        width: 100% !important;
        max-width: 100% !important;
        margin: 5px 0 !important;
        padding: 14px !important;
        font-size: 1rem !important;
    }
    
    /* Улучшение особенностей */
    .features-preview {
        padding: 40px 15px !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .feature-card {
        padding: 20px !important;
    }
    
    /* Улучшение футера для мобильных */
    .footer {
        padding: 30px 15px !important;
    }
    
    .footer-logo {
        text-align: center !important;
    }
    
    .social-icons {
        justify-content: center !important;
        gap: 15px !important;
    }
    
    /* Улучшение анимаций для мобильных */
    .background {
        transform: scale(1.2) !important; /* Усиление фона */
    }
    
    .sparks, .gears {
        display: none; /* Отключение сложных анимаций на слабых устройствах */
    }
    
    /* Улучшение скролла */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Предотвращение горизонтального скролла */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }
}

/* Улучшения для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 20px !important;
    }
    
    .nav-menu {
        gap: 4px !important;
    }
    
    .nav-link {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .btn-primary, 
    .btn-secondary, 
    .btn-discord-apply {
        width: 100% !important;
        max-width: 300px !important;
        margin: 5px auto !important;
    }
}

/* Улучшение ориентации для мобильных устройств */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 80px 15px 40px !important;
        min-height: auto !important;
    }
    
    .hero-content {
        flex-direction: row !important;
        gap: 30px !important;
    }
    
    .hero-text {
        flex: 1 !important;
    }
    
    .hero-image {
        flex: 1 !important;
        min-height: 200px !important;
    }
    
    .nav-menu {
        max-height: 300px !important;
        overflow-y: auto !important;
    }
}

/* Оптимизация для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .navbar {
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
    
    input, textarea {
        font-size: 16px !important; /* Предотвращение масштабирования в iOS */
    }
}

/* Предотвращение zoom при фокусе на iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        font-size: 16px !important;
    }
}

/* Улучшение визуальной обратной связи для сенсорных устройств */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn,
    .social-icon,
    .feature-card {
        transition: all 0.2s ease !important;
    }
    
    .nav-link:active {
        background: rgba(196, 30, 58, 0.3) !important;
        transform: scale(0.98) !important;
    }
    
    .btn:active,
    .btn-discord-apply:active,
    .social-icon:active {
        transform: scale(0.95) !important;
    }
    
    /* Увеличение зоны клика для мобильных */
    .nav-link,
    .btn {
        min-height: 44px !important; /* Рекомендованный Apple размер */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Увеличение иконок для лучшего касания */
    .social-icon {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Оптимизация для устройств с тёмной темой */
@media (prefers-color-scheme: dark) {
    .feature-card {
        background: rgba(20, 20, 30, 0.8) !important;
    }
}

/* Улучшение производительности анимаций на мобильных */
@media (max-width: 768px) {
    .hero-title,
    .hero-subtitle,
    .stat-number {
        will-change: transform;
        transform: translateZ(0);
    }
}

/* Улучшение доступности для скринридеров */
@media speech {
    .background,
    .gears,
    .sparks {
        display: none !important;
    }
}

/* Улучшение навигации для устройств с физическими кнопками */
@media (any-pointer: coarse) and (hover: none) {
    .nav-link {
        padding: 15px 20px !important;
        margin: 5px 0 !important;
    }
    
    .hamburger {
        padding: 15px !important;
        margin-right: -10px !important;
    }
    
    .hamburger span {
        width: 28px !important;
        height: 3px !important;
    }
}

/* Улучшение для очень высоких экранов мобильных устройств */
@media (min-height: 800px) and (max-width: 768px) {
    .hero {
        justify-content: center !important;
        padding-top: 120px !important;
    }
    
    .hero-content {
        gap: 40px !important;
    }
}

/* Улучшение сетки для всех мобильных устройств */
@media (max-width: 768px) {
    .container {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 auto !important;
    }
    
    /* Улучшение отступов для контента */
    section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Улучшение типографики для чтения на мобильных */
    p {
        line-height: 1.6 !important;
        font-size: 1rem !important;
    }
    
    h1, h2, h3 {
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
}

/* ============================================
   ОБЩАЯ ОПТИМИЗАЦИЯ ДЛЯ ВСЕХ УСТРОЙСТВ
   ============================================ */

/* 1. БАЗОВЫЕ ОПТИМИЗАЦИИ ПРОИЗВОДИТЕЛЬНОСТИ */
/* ============================================ */
* {
    /* Улучшение производительности рендеринга */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* Оптимизация композитных слоев */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Отключение анимаций для пользователей, предпочитающих их отсутствие */
@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;
    }
    
    .background,
    .sparks,
    .gears,
    .gear {
        display: none !important;
    }
}

/* 2. ОПТИМИЗАЦИЯ РЕНДЕРИНГА И КОМПОЗИТНЫХ СЛОЕВ */
/* ============================================ */
.hero-title,
.hero-subtitle,
.navbar,
.feature-card,
.btn,
.social-icon {
    /* Создание отдельных композитных слоев для элементов с анимацией */
    will-change: transform, opacity;
    transform: translateZ(0);
    isolation: isolate;
}

/* Аппаратное ускорение для сложных анимаций */
.background,
.sparks,
.gears {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* 3. ОПТИМИЗАЦИЯ СЕТИ И ЗАГРУЗКИ */
/* ============================================ */
/* Предзагрузка критических ресурсов */
html {
    /* Предварительное подключение к важным доменам */
    --preconnect-fonts: "https://fonts.googleapis.com";
    --preconnect-fonts-gstatic: "https://fonts.gstatic.com";
    --preconnect-cdn: "https://cdnjs.cloudflare.com";
    --preconnect-discord: "https://discord.gg";
    --preconnect-youtube: "https://www.youtube.com";
    --preconnect-telegram: "https://t.me";
}

/* Ленивая загрузка для невидимых изображений */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 4. ОПТИМИЗАЦИЯ ШРИФТОВ И ТЕКСТА */
/* ============================================ */
/* Предотвращение смещения контента при загрузке шрифтов */
.fonts-loaded body {
    font-family: 'Orbitron', 'Arial', sans-serif;
}

.fonts-loading body {
    font-family: 'Arial', sans-serif;
}

/* Оптимизация рендеринга текста */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .logo-text {
    font-display: swap;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* 5. ОПТИМИЗАЦИЯ АНИМАЦИЙ */
/* ============================================ */
/* Использование transform и opacity для плавных анимаций */
.nav-link,
.btn,
.feature-card,
.social-icon {
    transition-property: transform, opacity, background-color, color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Отдельные слои для сложных анимаций фона */
.background {
    position: fixed;
    z-index: -1;
    transform: translateZ(0);
}

/* 6. ОПТИМИЗАЦИЯ СКРОЛЛА */
/* ============================================ */
/* Плавный скролл для поддерживающих браузеров */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Оптимизация скролла для всех устройств */
body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* Улучшение производительности скролла */
.container,
.features-grid,
.hero-content,
.nav-container {
    contain: layout style paint;
}

/* 7. ОПТИМИЗАЦИЯ ПАМЯТИ И GPU */
/* ============================================ */
/* Очистка памяти для анимированных элементов */
.hero::after,
.feature-card::after {
    content: '';
    clear: both;
}

/* Оптимизация градиентов */
.hero-title .highlight,
.logo-text,
.btn-primary {
    background-clip: text;
    -webkit-background-clip: text;
}

/* 8. ОПТИМИЗАЦИЯ ДЛЯ РАЗНЫХ УСТРОЙСТВ */
/* ============================================ */
/* Адаптивные breakpoints для всех устройств */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px !important;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px !important;
    }
}

/* Улучшение для ноутбуков и планшетов */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-link {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 9. ОПТИМИЗАЦИЯ ЦВЕТА И КОНТРАСТА */
/* ============================================ */
/* Улучшение доступности и читаемости */
@media (prefers-contrast: high) {
    .nav-link,
    .btn,
    .feature-card {
        border-width: 2px !important;
    }
    
    .hero-title,
    .section-title {
        text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    }
}

/* Автоматическое определение темной темы */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0a0a;
    }
    
    .feature-card {
        background: rgba(25, 25, 35, 0.9) !important;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #f5f5f5;
    }
    
    .navbar {
        background: rgba(245, 245, 245, 0.95) !important;
        border-bottom-color: #b31a30 !important;
    }
    
    .nav-link {
        color: #333 !important;
    }
    
    .feature-card {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #333 !important;
    }
}

/* 10. ОПТИМИЗАЦИЯ ФОРМ И ИНТЕРАКТИВНЫХ ЭЛЕМЕНТОВ */
/* ============================================ */
/* Улучшение фокуса для доступности */
.nav-link:focus,
.btn:focus,
.social-icon:focus {
    outline: 3px solid rgba(30, 144, 196, 0.5);
    outline-offset: 2px;
}

/* Оптимизация размера тач-зон */
@media (pointer: coarse) {
    .nav-link,
    .btn,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }
    
    .hamburger span {
        height: 4px !important;
    }
}

/* 11. ОПТИМИЗАЦИЯ СЕТКИ И МАКЕТА */
/* ============================================ */
/* Использование CSS Grid и Flexbox оптимальным образом */
.features-grid,
.hero-stats,
.hero-buttons {
    display: grid;
    gap: var(--grid-gap, 20px);
}

/* Оптимизация flex-контейнеров */
.nav-container,
.hero-content,
.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* 12. ОПТИМИЗАЦИЯ ДЛЯ РАЗНЫХ БРАУЗЕРОВ */
/* ============================================ */
/* Поддержка для всех современных браузеров */
@supports (display: grid) {
    .features-grid {
        display: grid;
    }
}

@supports (backdrop-filter: blur(10px)) {
    .navbar {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgba(15, 15, 20, 0.95) !important;
    }
}

/* 13. ОПТИМИЗАЦИЯ ЗАГРУЗКИ И РЕНДЕРИНГА */
/* ============================================ */
/* Приоритетная загрузка критического контента */
.hero {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* Ленивая загрузка для второстепенного контента */
.features-preview,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

/* 14. ОПТИМИЗАЦИЯ ДЛЯ РАЗНЫХ ТИПОВ УСТРОЙСТВ */
/* ============================================ */
/* Для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
    .nav-link:hover,
    .btn:hover,
    .social-icon:hover {
        transform: translateY(-3px);
    }
}

/* Для сенсорных устройств */
@media (hover: none) {
    .nav-link:active,
    .btn:active,
    .social-icon:active {
        transform: scale(0.98);
    }
}

/* 15. ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ JavaScript */
/* ============================================ */
/* CSS-переменные для быстрого доступа */
:root {
    --primary-color: #c41e3a;
    --secondary-color: #1e90c4;
    --background-dark: #0a0a0a;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    --shadow-small: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.2);
    --shadow-large: 0 8px 16px rgba(0,0,0,0.3);
}

/* Использование переменных для производительности */
.navbar {
    background: rgba(15, 15, 20, var(--navbar-opacity, 0.98));
}

.btn-primary {
    background: linear-gradient(145deg, var(--primary-color), #b31a30);
}

/* 16. ОПТИМИЗАЦИЯ ДЛЯ СЛАБЫХ УСТРОЙСТВ */
/* ============================================ */
/* Определение слабых устройств */
@media (max-width: 768px), (max-device-width: 768px) {
    /* Упрощение анимаций для слабых устройств */
    .sparks,
    .gears {
        opacity: 0.5;
    }
    
    /* Уменьшение количества эффектов */
    .feature-card::before,
    .feature-card::after {
        display: none;
    }
    
    /* Упрощение теней */
    .navbar,
    .feature-card,
    .btn {
        box-shadow: var(--shadow-small);
    }
}

/* 17. ОПТИМИЗАЦИЯ КЭШИРОВАНИЯ И ХРАНЕНИЯ */
/* ============================================ */
/* Индикаторы загрузки */
.loading-indicator {
    display: none;
}

.is-loading .loading-indicator {
    display: block;
}

/* 18. ФИНАЛЬНЫЕ ОПТИМИЗАЦИИ */
/* ============================================ */
/* Удаление ненужных стилей */
@media print {
    .navbar,
    .background,
    .hero-buttons,
    .social-icons {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Минимальная ширина для предотвращения слома макета */
body {
    min-width: 320px;
}

/* Оптимизация для ретина-дисплеев */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Улучшение для широкоформатных мониторов */
@media (min-width: 1920px) {
    .hero {
        padding: 150px 0 100px !important;
    }
    
    .hero-title {
        font-size: 4rem !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
    }
}

/* Оптимизация вертикального ритма */
* + * {
    margin-top: 0;
}

/* Сброс наследования анимаций для дочерних элементов */
.hero-content *,
.feature-card * {
    animation: none;
    transition: none;
}


/* Улучшенная навигация */
.navbar {
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid #c41e3a;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    background: linear-gradient(45deg, #c41e3a, #1e90c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    max-width: 900px;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #c41e3a, #1e90c4);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(40, 40, 50, 0.6);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-link.active {
    color: #fff;
    background: rgba(196, 30, 58, 0.25);
    border: 1px solid rgba(196, 30, 58, 0.5);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

.nav-link.active::before {
    transform: translateX(0);
}

/* Дополнительные действия в навигации */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.btn-discord-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #5865F2, #4752c4);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(88, 101, 242, 0.5);
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.2);
}

.btn-discord-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #4752c4, #5865F2);
    box-shadow: 0 6px 12px rgba(88, 101, 242, 0.3);
    color: white;
}

/* Мобильное меню */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #c41e3a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 20px;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 6px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        max-width: 800px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 20, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 10px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        justify-content: flex-start;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link i {
        font-size: 1.1rem;
        width: 24px;
    }
    
    .nav-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
}

/* Кнопка авторизации в навигации */
.btn-auth-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #c41e3a, #a01830);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(196, 30, 58, 0.5);
    box-shadow: 0 4px 8px rgba(196, 30, 58, 0.2);
}

.btn-auth-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #a01830, #c41e3a);
    box-shadow: 0 6px 12px rgba(196, 30, 58, 0.3);
    color: white;
}

/* Для мобильной версии */
@media (max-width: 900px) {
    .btn-auth-nav {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* Кнопка авторизации в навигации */
.btn-auth-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #c41e3a, #a01830);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(196, 30, 58, 0.5);
    box-shadow: 0 4px 8px rgba(196, 30, 58, 0.2);
}

.btn-auth-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #a01830, #c41e3a);
    box-shadow: 0 6px 12px rgba(196, 30, 58, 0.3);
    color: white;
}

/* Кнопка профиля (после входа) */
.btn-profile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #1e90c4, #0d6ea0);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 144, 196, 0.5);
    box-shadow: 0 4px 8px rgba(30, 144, 196, 0.2);
}

.btn-profile-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #0d6ea0, #1e90c4);
    box-shadow: 0 6px 12px rgba(30, 144, 196, 0.3);
    color: white;
}

/* Меню профиля */
.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(25, 25, 35, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 220px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.profile-menu-header {
    padding: 15px;
    background: rgba(40, 40, 50, 0.8);
    border-bottom: 1px solid #333;
}

.profile-menu-header h4 {
    color: white;
    margin: 0 0 5px 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.profile-menu-header p {
    color: #aaa;
    margin: 0;
    font-size: 0.8rem;
}

.profile-menu-links {
    padding: 10px 0;
}

.profile-menu-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.profile-menu-links a:hover {
    background: rgba(196, 30, 58, 0.15);
    color: white;
    padding-left: 25px;
}

.profile-menu-links a i {
    width: 18px;
    text-align: center;
    color: #c41e3a;
}

.profile-menu-links .logout-link i {
    color: #ff4757;
}


/* Для мобильной версии */
@media (max-width: 900px) {
    .btn-auth-nav,
    .btn-profile-nav {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .profile-menu {
        position: static;
        margin-top: 10px;
        width: 100%;
    }
}


        /* Стили для бейджей рангов */
        .rank-badge {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.7em;
            margin-left: 5px;
            vertical-align: middle;
        }
        
        .premium-badge {
            background: linear-gradient(45deg, #FFD700, #FFA500);
            color: #000;
        }
        
        .vip-badge {
            background: linear-gradient(45deg, #C41E3A, #8B0000);
            color: #fff;
        }
        
        .admin-badge {
            background: linear-gradient(45deg, #00FF00, #008000);
            color: #000;
        }
        
        .moderator-badge {
            background: linear-gradient(45deg, #1E90C4, #00008B);
            color: #fff;
        }


        .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-image {
    height: 60px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #c41e3a, #1e90c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(196, 30, 58, 0.4);
}

        /* Стили для дополнительных услуг */
        .additional-services {
            padding: 80px 0;
            background: linear-gradient(to bottom, #111120, #0a0a0a);
            position: relative;
            overflow: hidden;
        }
        
        .additional-services::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(40, 167, 69, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 40px;
            position: relative;
            z-index: 2;
        }
        
        .service-card {
            background: linear-gradient(145deg, #1a1a2a, #151525);
            border-radius: 15px;
            overflow: hidden;
            border: 2px solid #2a2a3a;
            transition: all 0.4s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
            border-color: #c41e3a;
            box-shadow: 0 20px 40px rgba(196, 30, 58, 0.2);
        }
        
        .service-card.featured {
            border-color: #470000;
            position: relative;
            grid-column: span 2;
        }
        
        .service-header {
            padding: 25px 25px 15px;
            text-align: center;
            border-bottom: 1px solid #2a2a3a;
            background: rgba(0, 0, 0, 0.2);
        }
        
        .service-icon {
            font-size: 2.5rem;
            color: #c41e3a;
            margin-bottom: 15px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .service-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 10px;
        }
        
        .service-price {
            font-size: 2rem;
            font-weight: 900;
            font-family: 'Orbitron', sans-serif;
            color: #ffc107;
            margin: 10px 0;
        }
        
        .service-price .price-period {
            font-size: 0.9rem;
            color: #999;
            display: block;
            margin-top: 5px;
        }
        
        .service-content {
            padding: 20px 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .service-description {
            flex-grow: 1;
        }
        
        .service-text {
            color: #ccc;
            line-height: 1.6;
            margin-bottom: 20px;
            font-size: 0.95rem;
        }
        
        .service-features {
            list-style: none;
            padding: 0;
            margin: 15px 0;
        }
        
        .service-features li {
            padding: 8px 0;
            color: #ccc;
            position: relative;
            padding-left: 30px;
            font-size: 0.9rem;
            line-height: 1.4;
        }
        
        .service-features li i {
            position: absolute;
            left: 0;
            top: 8px;
            color: #28a745;
            font-size: 1rem;
        }
        
        .currency-list {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
        }
        
        .currency-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .currency-item:last-child {
            border-bottom: none;
        }
        
        .currency-name {
            color: #fff;
            font-weight: 600;
        }
        
        .currency-rate {
            color: #ffc107;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.9rem;
        }
        
        .service-warning {
            background: rgba(255, 193, 7, 0.1);
            border: 1px solid rgba(255, 193, 7, 0.3);
            border-radius: 8px;
            padding: 10px 15px;
            margin: 15px 0;
            font-size: 0.85rem;
            color: #ffc107;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .service-note {
            background: rgba(196, 30, 58, 0.1);
            border: 1px solid rgba(196, 30, 58, 0.3);
            border-radius: 8px;
            padding: 10px 15px;
            margin: 15px 0;
            font-size: 0.85rem;
            color: #c41e3a;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .service-footer {
            padding: 20px 0 0;
            text-align: center;
        }
        
        .service-button {
            display: inline-block;
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 8px;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            text-align: center;
            background: linear-gradient(45deg, #2a2a3a, #3a3a4a);
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .service-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s ease;
        }
        
        .service-button:hover::before {
            left: 100%;
        }
        
        .service-button:hover {
            background: linear-gradient(45deg, #3a3a4a, #4a4a5a);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }
        
        .life-button:hover {
            background: linear-gradient(45deg, #28a745, #34c759);
        }
        
        .nickname-button:hover {
            background: linear-gradient(45deg, #17a2b8, #20c9d2);
        }
        
        .exclusive-button:hover {
            background: linear-gradient(45deg, #9c27b0, #ba68c8);
        }
        
        .position-button:hover {
            background: linear-gradient(45deg, #ff9800, #ffb74d);
        }
        
        .currency-button:hover {
            background: linear-gradient(45deg, #ffc107, #ffd54f);
        }
        
        .create-state-button:hover {
            background: linear-gradient(45deg, #c41e3a, #e74c3c);
            color: white;
        }
        
        /* Адаптивность для услуг */
        @media (max-width: 1200px) {
            .service-card.featured {
                grid-column: span 1;
            }
            
            .service-card.featured::before {
                right: -30px;
                padding: 6px 30px;
                font-size: 0.7rem;
            }
        }
        
        @media (max-width: 768px) {
            .services-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 0 10px;
            }
            
            .service-card {
                max-width: 400px;
                margin: 0 auto;
            }
            
            .service-card.featured::before {
                right: -25px;
                padding: 5px 25px;
                font-size: 0.7rem;
            }
            
            .service-header,
            .service-content {
                padding: 20px;
            }
        }
        
        @media (max-width: 480px) {
            .service-title {
                font-size: 1.3rem;
            }
            
            .service-price {
                font-size: 1.8rem;
            }
            
            .currency-list {
                padding: 10px;
            }
            
            .currency-item {
                flex-direction: column;
                gap: 5px;
            }
            
            .service-card.featured::before {
                right: -20px;
                padding: 4px 20px;
                font-size: 0.6rem;
            }
        }


        /* Отзывы игроков */
.reviews-section {
    padding: 80px 0;
    background: rgba(20, 20, 25, 0.8);
    position: relative;
    overflow: hidden;
}

.reviews-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    background: rgba(25, 25, 35, 0.9);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(196, 30, 58, 0.2);
    border-color: rgba(196, 30, 58, 0.4);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-author h4 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-rating span {
    color: #ccc;
    font-weight: 600;
    margin-left: 5px;
    font-family: 'Orbitron', sans-serif;
}

.review-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.review-content p {
    color: #ddd;
    line-height: 1.6;
    font-size: 0.95rem;
}

.review-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.review-game-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(196, 30, 58, 0.15);
    color: #ff9999;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.stat-tag i {
    font-size: 0.8rem;
}

.reviews-actions {
    text-align: center;
    margin-top: 40px;
}

/* Адаптивность для отзывов */
@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .review-card {
        padding: 20px;
    }
}

/* Фиксированная сетка с 3 колонками */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Адаптивность для 3-колоночной сетки */
@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Адаптивность для отзывов */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .reviews-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .reviews-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== ЛАУНЧЕР ===== */
.launcher-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--color-card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 2px solid var(--color-secondary);
}

@media (max-width: 768px) {
    .launcher-card {
        grid-template-columns: 1fr;
    }
}

.launcher-info ul {
    list-style: none;
    margin-top: 20px;
}

.launcher-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.launcher-info li i {
    color: #2ecc71;
}

.btn-launcher {
    display: inline-block;
    padding: 20px 30px;
    background: linear-gradient(45deg, var(--color-secondary), #b8941f);
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-launcher:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
}

.file-info, .warning {
    margin-top: 15px;
    font-size: 0.9rem;
}

.warning {
    color: #f39c12;
}

/* Стили для переработанной секции лаунчера */
.launcher-section {
    padding: 80px 0;
    background: rgba(15, 15, 20, 0.95);
    position: relative;
    overflow: hidden;
}

.launcher-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c41e3a, transparent);
}

.launcher-card {
    background: rgba(25, 25, 35, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-top: 50px;
}

.launcher-card-inner {
    display: flex;
    min-height: 500px;
}

.launcher-info {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, rgba(40, 40, 50, 0.8), rgba(30, 30, 40, 0.9));
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.launcher-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.launcher-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #c41e3a, #a0182e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.launcher-info-header h3 {
    font-size: 2.2rem;
    color: #fff;
    margin: 0;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.launcher-version {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    color: #ccc;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.launcher-description {
    margin-bottom: 40px;
}

.launcher-description p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.launcher-features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(196, 30, 58, 0.1);
    border-color: rgba(196, 30, 58, 0.3);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 144, 196, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1e90c4;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.feature-content p {
    color: #aaa;
    margin: 0;
    font-size: 0.9rem;
}

.launcher-download {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-card {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 30, 0.95));
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.platform-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #0078d7, #005a9e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.platform-info h4 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 5px 0;
}

.platform-version {
    color: #aaa;
    font-size: 0.9rem;
}

.download-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
}

.detail-item i {
    color: #c41e3a;
    font-size: 1.2rem;
}

.detail-item span {
    color: #ccc;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
}

.btn-download-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(145deg, #c41e3a, #a0182e);
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(196, 30, 58, 0.3);
    background: linear-gradient(145deg, #d42543, #b01b32);
}

.btn-download-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-download-main:hover::after {
    left: 100%;
}

.download-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.download-text {
    flex: 1;
    text-align: left;
}

.download-title {
    display: block;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
}

.download-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.security-icon {
    color: #28a745;
    font-size: 1.2rem;
}

.security-text p {
    color: #aaa;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.other-platforms {
    padding: 30px 40px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(15, 15, 25, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.platforms-header {
    text-align: center;
    margin-bottom: 30px;
}

.platforms-header h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.platforms-header p {
    color: #aaa;
    margin: 0;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.platform-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.platform-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.platform-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #aaa;
}

.platform-card h5 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.platform-card p {
    color: #aaa;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.soon {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.3);
}

/* Адаптивность */
@media (max-width: 1100px) {
    .launcher-card-inner {
        flex-direction: column;
    }
    
    .launcher-info {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .launcher-card-inner {
        padding: 20px;
    }
    
    .launcher-info,
    .launcher-download {
        padding: 30px;
    }
    
    .download-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .launcher-info-header {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .launcher-info,
    .launcher-download {
        padding: 20px;
    }
    
    .download-details {
        grid-template-columns: 1fr;
    }
    
    .platform-cards {
        grid-template-columns: 1fr;
    }
    
    .btn-download-main {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .download-text {
        text-align: center;
    }
    
    .launcher-info-header h3 {
        font-size: 1.8rem;
    }
}

.quick-nav-section {
    display: none; /* По умолчанию скрыта */
}

/* Показываем только на телефонах */
@media (max-width: 768px) {
    .quick-nav-section.mobile-only {
        display: block;
    }
    
    .hero {
        margin-top: 0 !important;
    }
}


.btn-map {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.map-section {
    padding: 60px 0 80px;
    background: rgba(20, 20, 25, 0.8);
}

.map-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}