/* Импорт шрифтов */
@font-face {
    font-family: 'OldEnglishGothicPixel';
    src: url('font/OldEnglishGothicPixelRegular.otf') format('opentype'),
         url('font/OldEnglishGothicPixelRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Medieval Fantasy цветовая палитра */
    --primary-color: #8B4513;      /* Коричневый (камень, дерево) */
    --secondary-color: #4B0082;    /* Темно-фиолетовый (магия) */
    --accent-color: #FFD700;       /* Золото */
    --dark-bg: #2F1B14;           /* Темно-коричневый */
    --darker-bg: #1A0F0A;          /* Очень темно-коричневый */
    --text-primary: #F5F5DC;       /* Бежевый */
    --text-secondary: #D2B48C;     /* Тан */
    --text-muted: #8B7355;         /* Серо-коричневый */
    --medieval-red: #8B0000;       /* Темно-красный */
    --medieval-green: #228B22;     /* Лесной зеленый */
    --medieval-blue: #191970;      /* Полуночно-синий */
    --medieval-gold: #B8860B;      /* Темно-золотой */
    --gradient-primary: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    --gradient-secondary: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    --gradient-accent: linear-gradient(135deg, #4B0082 0%, #8B0000 100%);
    --gradient-medieval: linear-gradient(135deg, #2F1B14 0%, #1A0F0A 50%, #0D0502 100%);
    
    /* Размеры */
    --container-max-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Переходы */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Утилиты */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Боковое прозрачное меню */
.sidebar-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1rem 0.5rem;
    transition: all 0.4s ease-in-out;
    /* Скрыто по умолчанию, показывается при скролле */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(-100%);
    overflow: hidden;
}

/* Видимое состояние бокового меню */
.sidebar-nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.sidebar-nav.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(-100%);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--medieval-gold);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    color: var(--medieval-gold);
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateX(2px);
    margin: 0 0.5px;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--medieval-gold);
    border-radius: 0 2px 2px 0;
}

.link-text {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Горизонтальное меню для верха страницы */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(26, 15, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-nav.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.top-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.top-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.top-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--medieval-gold);
    font-family: 'OldEnglishGothicPixel', 'Orbitron', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.top-nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
}

.top-nav-menu li {
    list-style: none;
}

.top-nav-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    border-radius: 8px;
}

.top-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--medieval-gold);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.top-nav-link:hover {
    color: var(--medieval-gold);
    background: rgba(255, 215, 0, 0.1);
}

.top-nav-link:hover::after {
    width: 80%;
}

.top-nav-menu li.active .top-nav-link {
    color: var(--medieval-gold);
    background: rgba(255, 215, 0, 0.15);
}

.top-nav-menu li.active .top-nav-link::after {
    width: 80%;
}

/* Убираем старые стили для иконок и маркера */
.nav-icon,
.nav-text,
#nav-marker {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar-nav {
        left: 10px;
        padding: 0.5rem 0.25rem;
    }
    
    .sidebar-link {
        padding: 0.5rem 0.75rem;
    }
    
    .link-text {
        font-size: 0.8rem;
    }
    
    .top-nav-container {
        padding: 0.75rem 1rem;
        gap: 1.5rem;
    }
    
    .top-logo-text {
        font-size: 1.2rem;
    }
    
    .top-nav-menu {
        gap: 1rem;
    }
    
    .top-nav-link {
        font-size: 0.85rem;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'OldEnglishGothicPixel', 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.7), rgba(26, 15, 10, 0.8)),
        url('pictures/wallpaper1.jpg') center/cover no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: 
        /* Мягкие магические эффекты без блоков */
        radial-gradient(ellipse at 20% 30%, rgba(75, 0, 130, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 20%, rgba(139, 0, 0, 0.08) 0%, transparent 40%),
        /* Плавные атмосферные переходы */
        linear-gradient(120deg, transparent 0%, rgba(75, 0, 130, 0.03) 30%, transparent 70%),
        linear-gradient(60deg, transparent 0%, rgba(255, 215, 0, 0.02) 40%, transparent 80%);
    background-size: 100% 100%;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Убираем все статичные блоки и квадраты - только динамические светлячки через JS */
}


@keyframes fireflyGlow {
    0% { 
        opacity: 0;
        transform: translateY(0px) translateX(0px) scale(0.5);
    }
    10% { 
        opacity: 0.8;
        transform: translateY(-5px) translateX(2px) scale(1);
    }
    20% { 
        opacity: 1;
        transform: translateY(-8px) translateX(4px) scale(1.2);
    }
    30% { 
        opacity: 0.6;
        transform: translateY(-12px) translateX(1px) scale(0.8);
    }
    40% { 
        opacity: 0.9;
        transform: translateY(-6px) translateX(6px) scale(1.1);
    }
    50% { 
        opacity: 0.7;
        transform: translateY(-15px) translateX(3px) scale(0.9);
    }
    60% { 
        opacity: 1;
        transform: translateY(-10px) translateX(8px) scale(1.3);
    }
    70% { 
        opacity: 0.5;
        transform: translateY(-18px) translateX(2px) scale(0.7);
    }
    80% { 
        opacity: 0.8;
        transform: translateY(-7px) translateX(5px) scale(1);
    }
    90% { 
        opacity: 0.9;
        transform: translateY(-13px) translateX(7px) scale(1.1);
    }
    100% { 
        opacity: 0;
        transform: translateY(-20px) translateX(10px) scale(0.5);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: 'OldEnglishGothicPixel', 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.title-line.accent {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}





@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(45deg);
}

/* Minecraft стиль кнопок для главной секции */
.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    border: none;
    border-radius: 0;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    min-width: 200px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    overflow: visible;
    /* Minecraft пиксельная форма */
    clip-path: polygon(
        0 8px, 8px 8px, 8px 0,
        calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
    );
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.1);
}

/* Главная кнопка - большая */
.hero .btn-primary {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    width: 100%;
    max-width: 400px;
    padding: 1.2rem 4rem;
    font-size: 1.2rem;
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-3px);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.4),
        inset -3px -3px 0px rgba(0, 0, 0, 0.3),
        inset 3px 3px 0px rgba(255, 255, 255, 0.2);
}

/* Кнопки второго ряда */
.hero-buttons-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-join {
    background: linear-gradient(135deg, #FF8C00, #FF6347);
    color: #FFFFFF;
    max-width: 250px;
}

.hero .btn-join:hover {
    background: linear-gradient(135deg, #FF6347, #FF4500);
    transform: translateY(-3px);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.4),
        inset -3px -3px 0px rgba(0, 0, 0, 0.3),
        inset 3px 3px 0px rgba(255, 255, 255, 0.2);
}

.hero .btn-secondary {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    max-width: 200px;
}

.hero .btn-secondary:hover {
    background: linear-gradient(135deg, #A52A2A, #DC143C);
    transform: translateY(-3px);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.4),
        inset -3px -3px 0px rgba(0, 0, 0, 0.3),
        inset 3px 3px 0px rgba(255, 255, 255, 0.2);
}



/* Секции */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'OldEnglishGothicPixel', 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Особенности */
.features {
    padding: 6rem 0;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.8), rgba(26, 15, 10, 0.9)),
        url('pictures/wallpaper2.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Medieval замковые блоки */
        linear-gradient(90deg, transparent 48%, rgba(139, 69, 19, 0.1) 49%, rgba(139, 69, 19, 0.1) 51%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(75, 0, 130, 0.1) 49%, rgba(75, 0, 130, 0.1) 51%, transparent 52%);
    background-size: 32px 32px;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: 
        rgba(47, 27, 20, 0.9),
        /* Medieval pixel текстура */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    border: 3px solid var(--medieval-gold);
    border-radius: 0; /* Medieval pixel вид */
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 69, 19, 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 2px solid rgba(75, 0, 130, 0.3);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.5),
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    border-color: var(--accent-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: 
        var(--gradient-primary),
        /* Medieval pixel текстура */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 4"><rect width="2" height="2" fill="%23FFD700" opacity="0.1"/><rect x="2" y="2" width="2" height="2" fill="%23FFD700" opacity="0.1"/></svg>') repeat;
    border: 3px solid var(--medieval-gold);
    border-radius: 0; /* Medieval pixel вид */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 69, 19, 0.6);
}

.icon-magic::before {
    content: '✦';
    font-size: 3rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    font-weight: bold;
}

.icon-tech::before {
    content: '⚔';
    font-size: 3rem;
    color: var(--medieval-red);
    text-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
    font-weight: bold;
}

.icon-pvp::before {
    content: '🛡';
    font-size: 3rem;
    color: var(--medieval-blue);
    text-shadow: 0 0 15px rgba(25, 25, 112, 0.8);
    font-weight: bold;
}

.icon-economy::before {
    content: '💰';
    font-size: 3rem;
    color: var(--medieval-gold);
    text-shadow: 0 0 15px rgba(184, 134, 11, 0.8);
    font-weight: bold;
}

.icon-build::before {
    content: '🏰';
    font-size: 3rem;
    color: var(--medieval-green);
    text-shadow: 0 0 15px rgba(34, 139, 34, 0.8);
    font-weight: bold;
}

.icon-quest::before {
    content: '🐉';
    font-size: 3rem;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(75, 0, 130, 0.8);
    font-weight: bold;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Новые длинные карточки особенностей */
.features-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.feature-card-long {
    background: 
        rgba(26, 15, 10, 0.95),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    border: 4px solid var(--medieval-gold);
    border-radius: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(139, 69, 19, 0.6);
}

.feature-card-long:hover {
    transform: translateY(-8px);
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.6),
        0 16px 32px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.4);
    border-color: var(--accent-color);
}

.feature-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.feature-icon-large {
    width: 120px;
    height: 120px;
    border: 4px solid var(--medieval-gold);
    border-radius: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.5);
}

.feature-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--medieval-gold);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Roboto', sans-serif;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    width: 100%;
}

.feature-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--medieval-gold);
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.feature-list li::before {
    content: '▪';
    color: var(--medieval-gold);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.feature-list li:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

.btn-feature-details {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(
        0 8px, 8px 8px, 8px 0,
        calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
    );
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-feature-details:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-3px);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.4),
        inset -3px -3px 0px rgba(0, 0, 0, 0.3),
        inset 3px 3px 0px rgba(255, 255, 255, 0.2);
}

/* Модальное окно для особенностей */
.feature-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.feature-modal.active {
    display: flex;
}

.feature-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.feature-modal-container {
    position: relative;
    width: 90%;
    max-width: 1600px;
    max-height: 90vh;
    background: 
        rgba(26, 15, 10, 0.98),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    border: 4px solid var(--medieval-gold);
    border-radius: 0;
    padding: 3rem;
    overflow-y: auto;
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    
    /* Скрытие скроллбара */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Скрытие скроллбара для WebKit браузеров (Chrome, Safari) */
.feature-modal-container::-webkit-scrollbar {
    display: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Контейнер для кнопок управления */
.feature-modal-controls {
    position: sticky;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: -40px;
    z-index: 10001;
}

.feature-modal-close,
.feature-modal-nav {
    background: rgba(139, 0, 0, 0.9);
    border: 2px solid var(--medieval-gold);
    color: var(--medieval-gold);
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.feature-modal-nav {
    background: rgba(75, 0, 130, 0.9);
}

.feature-modal-nav .nav-icon {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.feature-modal-close:hover {
    background: rgba(220, 20, 60, 0.9);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.feature-modal-nav:hover {
    background: rgba(138, 43, 226, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.feature-modal-nav:hover .nav-icon {
    animation: navIconPulse 0.5s ease;
}

@keyframes navIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Меню навигации */
.feature-modal-nav-menu {
    position: sticky;
    top: 50px;
    background: rgba(26, 15, 10, 0.95);
    border: 2px solid var(--medieval-gold);
    border-radius: 0;
    padding: 1rem;
    margin-bottom: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.feature-modal-nav-menu.active {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feature-modal-nav-menu.active::-webkit-scrollbar {
    display: none;
}

.feature-modal-nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.feature-modal-nav-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--medieval-gold);
    transform: translateX(5px);
    color: var(--medieval-gold);
}

.feature-modal-content {
    color: var(--text-primary);
}

.feature-modal-content h2 {
    font-size: 2.5rem;
    color: var(--medieval-gold);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'OldEnglishGothicPixel', 'Orbitron', sans-serif;
}

.feature-modal-content h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--medieval-gold);
    padding-bottom: 0.5rem;
}

.feature-modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-modal-content ul li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--medieval-gold);
    color: var(--text-primary);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.feature-modal-content ul li::before {
    content: '▪';
    color: var(--medieval-gold);
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.feature-modal-content ul li:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

/* Адаптивность для новых карточек */
@media (max-width: 1024px) {
    .features-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 3rem 0;
    }
    
    .features .container {
        padding: 0 0.5rem !important;
        max-width: 100% !important;
    }
    
    .features-grid-new {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .feature-card-long {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .feature-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .feature-title-large {
        font-size: 1.3rem;
    }
    
    .feature-list {
        margin-bottom: 1.5rem;
    }
    
    .feature-list li {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn-feature-details {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .feature-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        max-width: 100%;
        padding: 2rem 1.5rem;
        padding-top: 4rem;
        border-radius: 0;
    }
    
    .feature-modal-controls {
        position: fixed;
        top: 1rem;
        right: 1rem;
        margin-bottom: 0;
        z-index: 10002;
    }
    
    .feature-modal-close,
    .feature-modal-nav {
        background: rgba(139, 0, 0, 0.95);
        backdrop-filter: blur(5px);
    }
    
    .feature-modal-nav {
        background: rgba(75, 0, 130, 0.95);
    }
    
    .feature-modal-nav-menu {
        position: fixed;
        top: 60px;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: calc(100% - 2rem);
    }
    
    .feature-modal-content h2 {
        font-size: 1.8rem;
        margin-top: 0;
    }
    
    .feature-modal-content h3 {
        font-size: 1.4rem;
    }
    
    .feature-modal-content p {
        font-size: 1rem;
    }
    
    .feature-modal-content ul li {
        font-size: 0.95rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 2rem 0;
    }
    
    .features .container {
        padding: 0 0.25rem !important;
    }
    
    .features-grid-new {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        gap: 1rem;
    }
    
    .feature-card-long {
        padding: 1rem;
        margin: 0 !important;
        width: 100% !important;
        border-width: 3px;
    }
    
    .feature-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .feature-title-large {
        font-size: 1.1rem;
    }
    
    .feature-list li {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .btn-feature-details {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .feature-modal-container {
        padding: 1.5rem 1rem;
        padding-top: 3.5rem;
    }
    
    .feature-modal-controls {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.4rem;
    }
    
    .feature-modal-close,
    .feature-modal-nav {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .feature-modal-nav .nav-icon {
        font-size: 1.2rem;
    }
    
    .feature-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-modal-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-modal-content p {
        font-size: 0.9rem;
    }
}

/* Донат */
.donate {
    padding: 6rem 0;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.8), rgba(26, 15, 10, 0.9)),
        url('pictures/wallpaper3.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Уменьшенное количество золотых частиц */
        radial-gradient(circle at 25% 30%, rgba(255, 215, 0, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 75% 60%, rgba(255, 215, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(255, 215, 0, 0.07) 1px, transparent 1px);
    background-size: 120px 120px, 150px 150px, 130px 130px;
    pointer-events: none;
    animation: treasureFloat 12s ease-in-out infinite;
    overflow: hidden;
}

@keyframes treasureFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-5px) rotate(1deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-2px) rotate(-0.5deg);
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-7px) rotate(0.5deg);
        opacity: 0.7;
    }
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.donate-card {
    background: 
        rgba(26, 15, 10, 0.98),
        /* Medieval pixel текстура */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.08"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.08"/></svg>') repeat;
    border: 4px solid var(--medieval-gold);
    border-radius: 0; /* Medieval pixel вид */
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(139, 69, 19, 0.6);
}

.donate-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.7),
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(255, 215, 0, 0.5);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.donate-header {
    margin-bottom: 2rem;
}

.donate-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.donate-price {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donate-features {
    list-style: none;
    margin-bottom: 2rem;
}

.donate-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.donate-features li:last-child {
    border-bottom: none;
}

.btn-donate {
    background: var(--gradient-primary);
    color: var(--text-primary);
    width: 100%;
    font-weight: 600;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Галерея */
/* Секция наборов */
.kits {
    padding: 6rem 0;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.8), rgba(26, 15, 10, 0.9)),
        url('pictures/wallpaper6.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

.kits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
}

.kit-card {
    background: 
        rgba(47, 27, 20, 0.95),
        /* Medieval pixel текстура */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    border: 3px solid var(--medieval-gold);
    border-radius: 0; /* Medieval pixel вид */
    padding: 1.5rem;
    padding-top: 2.5rem; /* Увеличиваем отступ сверху для бейджа */
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: visible; /* Изменено с hidden на visible */
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 69, 19, 0.5);
    width: 320px;
    min-height: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kit-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.5),
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(255, 215, 0, 0.4);
    border-color: var(--accent-color);
}

.kit-image {
    width: 100%;
    height: 120px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 2px solid var(--medieval-gold);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kit-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-family: 'Roboto', 'Segoe UI', 'Tahoma', sans-serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 4px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.kit-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    min-height: 2.7em;
    line-height: 1.35;
}

.kit-command {
    background: var(--gradient-secondary);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: 2px solid var(--medieval-gold);
    border-radius: 0;
    font-family: 'Courier New', 'Monaco', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 215, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Табы для категорий наборов */
.kits-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.kit-tab {
    background: rgba(47, 27, 20, 0.8);
    border: 3px solid var(--medieval-gold);
    color: var(--medieval-gold);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.kit-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.kit-tab:hover::before {
    left: 100%;
}

.kit-tab:hover {
    background: rgba(139, 69, 19, 0.6);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.kit-tab.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Категории наборов */
.kits-category {
    animation: fadeIn 0.5s ease-in-out;
    min-height: 800px;
    position: relative;
}

/* Контейнер для всех категорий с фиксированной высотой */
.kits .container {
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Обновленные стили карточек наборов */
.kit-card {
    cursor: pointer;
    position: relative;
}

.kit-card.free {
    border-color: #4ade80;
}

.kit-card.privilege {
    border-color: #a78bfa;
}

.kit-card.shop {
    border-color: #fbbf24;
}

.kit-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.free-badge {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #ffffff;
}

.privilege-badge {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #ffffff;
}

.shop-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
}

.kit-header {
    margin-bottom: 1rem;
}

.btn-kit-details {
    background: var(--gradient-primary);
    color: #ffffff;
    border: 2px solid var(--medieval-gold);
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-kit-details:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Модальное окно для наборов */
.kit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.kit-modal.active {
    display: flex;
}

.kit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.kit-modal-container {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(47, 27, 20, 0.98), rgba(26, 15, 10, 0.98)),
        url('pictures/wallpaper1.jpg') center/cover;
    border: 4px solid var(--medieval-gold);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 0 2px rgba(255, 215, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    
    /* Скрытие скроллбара */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Скрытие скроллбара для WebKit браузеров (Chrome, Safari) */
.kit-modal-container::-webkit-scrollbar {
    display: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kit-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(139, 0, 0, 0.9);
    border: 2px solid var(--medieval-gold);
    color: var(--medieval-gold);
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.kit-modal-close:hover {
    background: rgba(220, 20, 60, 0.9);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.kit-modal-content {
    padding: 2.5rem;
    padding-top: 3.5rem;
}

.kit-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.kit-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--medieval-gold);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.kit-modal-command {
    background: var(--gradient-secondary);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--medieval-gold);
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.kit-modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kit-modal-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    border: 3px solid var(--medieval-gold);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.5);
}

.kit-modal-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.kit-modal-info {
    text-align: center;
}

.kit-modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.kit-modal-cooldown {
    background: rgba(139, 69, 19, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 0.5rem 1rem;
    display: inline-block;
    color: var(--medieval-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.kit-modal-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.kit-modal-details h3 {
    color: var(--medieval-gold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.kit-modal-details-content {
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.2);
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    border-radius: 4px;
    white-space: pre-wrap;
}

.kit-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kit-details-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.kit-details-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--medieval-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .kits {
        min-height: auto;
        padding: 4rem 0;
    }

    .kits-category {
        min-height: 600px;
    }

    .kits-tabs {
        gap: 0.5rem;
    }

    .kit-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .kits-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .kit-card {
        width: 100%;
        max-width: 380px;
    }

    .kit-modal-container {
        width: 95%;
        max-height: 90vh;
    }

    .kit-modal-content {
        padding: 1.5rem;
        padding-top: 3rem;
    }

    .kit-modal-title {
        font-size: 1.5rem;
    }

    .kit-modal-command {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .kit-modal-image-container {
        max-width: 100%;
        padding: 0.25rem;
    }
}

.gallery {
    padding: 6rem 0;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.8), rgba(26, 15, 10, 0.9)),
        url('pictures/wallpaper4.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 40%, rgba(255, 215, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 20%, rgba(255, 215, 0, 0.07) 1px, transparent 1px);
    background-size: 100px 100px, 130px 130px, 110px 110px;
    pointer-events: none;
    opacity: 0.5;
}

/* Карусель галереи */
.gallery-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 600px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Стрелки навигации */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--medieval-gold);
    color: var(--medieval-gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Индикаторы */
.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--medieval-gold);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active,
.gallery-dot:hover {
    background: var(--medieval-gold);
    transform: scale(1.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.gallery-description {
    color: var(--text-secondary);
    text-align: center;
}

/* Секция новостей и обновлений */
.update-overview {
    padding: 6rem 0;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.85), rgba(26, 15, 10, 0.95)),
        url('pictures/wallpaper2.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.update-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 0, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Главная карточка форума */
.news-hero-card {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: 
        linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(160, 82, 45, 0.2) 100%),
        rgba(26, 15, 10, 0.95);
    border: 4px solid var(--medieval-gold);
    border-radius: 0;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
}

.news-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.news-hero-card:hover::before {
    left: 100%;
}

.news-hero-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.5),
        0 16px 32px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(255, 215, 0, 0.25);
}

.news-hero-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.news-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
}

.news-hero-text {
    flex: 1;
}

.news-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--medieval-gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.news-hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-news-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    clip-path: polygon(
        0 6px, 6px 6px, 6px 0,
        calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
        100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
        6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
    );
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-news-hero:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 
        5px 5px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 0px rgba(255, 255, 255, 0.15);
}

/* Сетка категорий новостей */
.news-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточки категорий новостей */
.news-category-card {
    background: 
        linear-gradient(135deg, rgba(47, 27, 20, 0.97) 0%, rgba(35, 20, 15, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

.news-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.12), transparent);
    transition: left 0.6s ease;
}

.news-category-card:hover::before {
    left: 100%;
}

.news-category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.2);
}

.news-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    transition: transform 0.3s ease;
}

.news-category-card:hover .news-card-icon {
    transform: scale(1.15);
}

.news-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--medieval-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.news-category-card:hover .news-card-title {
    color: var(--accent-color);
}

.news-card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.news-category-card:hover .news-card-description {
    color: var(--text-primary);
}

.btn-news-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    clip-path: polygon(
        0 6px, 6px 6px, 6px 0,
        calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
        100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
        6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
    );
    box-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-news-card:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 0px rgba(255, 255, 255, 0.15);
}

.btn-news-card .btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-news-card:hover .btn-arrow {
    transform: translateX(3px);
}

/* Модальное окно для отображения детальной информации об обновлении
   На десктопе отображается как всплывающее окно, на мобильных - полноэкранно
   Использует высокий z-index для отображения поверх всего контента */
.update-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.update-modal.active {
    display: flex;
    opacity: 1;
}

.update-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.update-modal-container {
    position: relative;
    background: 
        rgba(47, 27, 20, 0.98),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.03"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.03"/></svg>') repeat;
    border: 4px solid var(--medieval-gold);
    border-radius: 0;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.update-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid var(--medieval-gold);
    color: var(--text-primary);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.update-modal-close:hover {
    background: var(--medieval-gold);
    color: var(--darker-bg);
    transform: rotate(90deg);
}

.update-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.update-modal-title {
    font-family: 'OldEnglishGothicPixel', 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.update-modal-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    flex-wrap: wrap;
    overflow-x: auto;
}

.update-nav-btn {
    background: rgba(47, 27, 20, 0.8);
    border: 2px solid var(--medieval-gold);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

.update-nav-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.update-nav-btn.active {
    background: var(--gradient-secondary);
    border-color: var(--accent-color);
    color: var(--darker-bg);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.update-modal-content {
    padding: 2rem;
    min-height: 300px;
}

.update-content-section {
    display: none;
    animation: fadeInContent 0.3s ease;
}

.update-content-section.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.update-content-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.update-content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Секция классов и мультиклассов */
.classes-section {
    padding: 6rem 0;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.85), rgba(26, 15, 10, 0.95)),
        url('pictures/wallpaper3.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.classes-category {
    margin-bottom: 4rem;
}

.classes-category:last-child {
    margin-bottom: 0;
}

.classes-category-title {
    font-family: 'OldEnglishGothicPixel', 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--medieval-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 450px));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Карточка класса */
.class-card {
    background: 
        linear-gradient(135deg, rgba(47, 27, 20, 0.97) 0%, rgba(35, 20, 15, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 0;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 380px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.12), transparent);
    transition: left 0.6s ease;
}

.class-card:hover::before {
    left: 100%;
}

.class-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 215, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.2);
}

/* Мультикласс */
.class-card.multiclass {
    border-color: rgba(255, 165, 0, 0.6);
}

.class-card.multiclass:hover {
    border-color: rgba(255, 165, 0, 0.9);
    box-shadow: 
        inset 0 0 0 2px rgba(255, 165, 0, 0.5),
        0 16px 32px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(255, 165, 0, 0.3);
}

.multiclass-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.class-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid var(--medieval-gold);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.class-card:hover .class-icon-wrapper {
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.class-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.class-icon-dual {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.icon-part {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG иконки */
.icon-svg {
    display: block;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

/* Стили для SVG иконок */
.class-icon .icon-svg {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--medieval-gold);
}

.class-card:hover .class-icon .icon-svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
}

.icon-part .icon-svg {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--medieval-gold);
}

.class-card:hover .icon-part .icon-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 165, 0, 0.6));
}

.class-card.multiclass:hover .icon-part:first-child .icon-svg {
    transform: scale(1.1) translateX(-3px);
}

.class-card.multiclass:hover .icon-part:last-child .icon-svg {
    transform: scale(1.1) translateX(3px);
}

/* Стили для IMG иконок */
.icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: 
        brightness(0) saturate(100%) 
        invert(68%) sepia(85%) saturate(500%) hue-rotate(5deg) brightness(105%) contrast(101%)
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.class-icon .icon-img {
    width: 3.5rem;
    height: 3.5rem;
}

.class-card:hover .class-icon .icon-img {
    transform: scale(1.1) rotate(5deg);
    filter: 
        brightness(0) saturate(100%) 
        invert(68%) sepia(85%) saturate(500%) hue-rotate(5deg) brightness(115%) contrast(101%)
        drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
}

.icon-part .icon-img {
    width: 2.2rem;
    height: 2.2rem;
}

.class-card:hover .icon-part .icon-img {
    transform: scale(1.1);
    filter: 
        brightness(0) saturate(100%) 
        invert(68%) sepia(85%) saturate(500%) hue-rotate(5deg) brightness(115%) contrast(101%)
        drop-shadow(0 4px 8px rgba(255, 165, 0, 0.6));
}

.class-card.multiclass:hover .icon-part:first-child .icon-img {
    transform: scale(1.1) translateX(-3px);
}

.class-card.multiclass:hover .icon-part:last-child .icon-img {
    transform: scale(1.1) translateX(3px);
}

.news-hero-icon .icon-svg {
    width: 4rem;
    height: 4rem;
    color: var(--accent-color);
}

.news-card-icon .icon-svg {
    width: 3rem;
    height: 3rem;
    color: var(--accent-color);
}

.news-hero-card:hover .news-hero-icon .icon-svg,
.news-category-card:hover .news-card-icon .icon-svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon .icon-svg {
    width: 2rem;
    height: 2rem;
    color: currentColor;
}

.social-btn:hover .social-icon .icon-svg {
    transform: scale(1.15);
}

.video-placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-icon .icon-svg {
    width: 4rem;
    height: 4rem;
    color: var(--accent-color);
}

.video-placeholder:hover .video-placeholder-icon .icon-svg {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.8));
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon .icon-svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent-color);
}

.class-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--medieval-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.class-type {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.class-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.class-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-bar {
    width: 100%;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    text-align: left;
}

.stat-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.multiclass-fill {
    background: linear-gradient(90deg, #FF8C00, #FFA500);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

/* Секция с видеоплеером для демонстрации обновления
   Видео загружается по клику пользователя (ленивая загрузка)
   Поддерживает как YouTube, так и VK видео */
.more-about-update {
    padding: 6rem 0;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.8), rgba(26, 15, 10, 0.9)),
        url('pictures/wallpaper1.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.more-about-update::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.07) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(255, 215, 0, 0.08) 1px, transparent 1px);
    background-size: 110px 110px, 140px 140px, 120px 120px;
    pointer-events: none;
    opacity: 0.5;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    background: rgba(0, 0, 0, 0.5);
    border: 4px solid var(--medieval-gold);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.3);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.video-player.loaded {
    display: block;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        rgba(47, 27, 20, 0.9),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder.hidden {
    display: none;
}

.video-placeholder:hover {
    background: rgba(47, 27, 20, 0.95);
}

.video-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.video-placeholder-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-placeholder-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Контакты */
.contact {
    padding: 6rem 0;
    background: 
        linear-gradient(rgba(47, 27, 20, 0.8), rgba(26, 15, 10, 0.9)),
        url('pictures/wallpaper5.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 48%, rgba(139, 69, 19, 0.08) 49%, rgba(139, 69, 19, 0.08) 51%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(75, 0, 130, 0.08) 49%, rgba(75, 0, 130, 0.08) 51%, transparent 52%);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-server::before {
    content: '🖥️';
    font-size: 1.5rem;
}

.icon-version::before {
    content: '📦';
    font-size: 1.5rem;
}

.icon-discord::before {
    content: '💬';
    font-size: 1.5rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

/* Форма */
.form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

/* Футер */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'OldEnglishGothicPixel', 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.icon-discord::before {
    content: '💬';
    font-size: 1.2rem;
}

.icon-telegram::before {
    content: '✈️';
    font-size: 1.2rem;
}

.icon-website::before {
    content: '🌐';
    font-size: 1.2rem;
}

/* SVG иконки в футере */
.footer-social-buttons .icon-svg {
    width: 24px;
    height: 24px;
    fill: var(--medieval-gold) !important;
    color: var(--medieval-gold) !important;
    transition: all 0.3s ease;
}

.footer-social-buttons .icon-svg path {
    fill: var(--medieval-gold) !important;
}

.social-link:hover .icon-svg {
    fill: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

.social-link:hover .icon-svg path {
    fill: var(--text-primary) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 0rem;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-text {
        margin-top: 0;
    }
    
    .hero-description {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 2rem;
    }
    
    /* Адаптивные Minecraft кнопки для мобильных */
    .hero .hero-buttons {
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }
    
    .hero .hero-buttons-row {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        align-items: center !important;
    }
    
    .hero .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.9rem 2rem !important;
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
        min-width: auto !important;
        /* Более мягкие углы для мобильных */
        clip-path: polygon(
            0 6px, 6px 6px, 6px 0,
            calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
            100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
            6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
        ) !important;
        box-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.3),
            inset -1px -1px 0px rgba(0, 0, 0, 0.2),
            inset 1px 1px 0px rgba(255, 255, 255, 0.1) !important;
    }
    
    .hero .btn-primary {
        max-width: 300px !important;
        padding: 1rem 2.5rem !important;
        font-size: 1rem !important;
    }
    
    .hero .btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 
            4px 4px 0px rgba(0, 0, 0, 0.4),
            inset -2px -2px 0px rgba(0, 0, 0, 0.3),
            inset 2px 2px 0px rgba(255, 255, 255, 0.2) !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-social {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }

    .gallery-carousel {
        padding: 0 1rem;
    }
    
    .gallery-slides {
        height: 400px;
    }
    
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
}

/* Оптимизация карусели галереи для больших экранов */
@media (min-width: 1440px) {
    .gallery-slides {
        height: 700px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .gallery-slides {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .nav-container {
        padding: 1rem;
    }
    
    .hero-content {
        padding-top: 4rem;
    }
    
    .hero-text {
        margin-top: 3rem;
    }
    
    .hero-description {
        margin-top: 2rem;
        margin-bottom: 2.5rem;
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-top: 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        min-width: 120px;
    }
    
    /* Классы - уменьшаем иконки еще больше */
    .class-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .class-icon .icon-img {
        width: 2.4rem;
        height: 2.4rem;
    }
    
    .class-icon .icon-svg {
        width: 2.4rem;
        height: 2.4rem;
    }
    
    .icon-part .icon-img {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .icon-part .icon-svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .class-icon-dual {
        gap: 0.4rem;
    }
    
    .class-name {
        font-size: 1.2rem;
    }
    
    .class-type {
        font-size: 0.8rem;
    }
    
    .class-description {
        font-size: 0.9rem;
    }
    
    /* Дополнительные улучшения для hero кнопок на маленьких экранах */
    .hero .btn {
        max-width: 260px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.85rem !important;
        /* Еще более мягкие углы */
        clip-path: polygon(
            0 4px, 4px 4px, 4px 0,
            calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
            100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
            4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
        ) !important;
    }
    
    .hero .btn-primary {
        max-width: 280px !important;
        padding: 0.9rem 2rem !important;
        font-size: 0.9rem !important;
    }
    
    .hero .hero-buttons {
        gap: 0.8rem !important;
    }
    
    .hero .hero-buttons-row {
        gap: 0.8rem !important;
    }
}

/* Анимации появления при скролле */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Дополнительные утилиты */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Скрытие элементов до анимации */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Мобильная адаптация для новых меню */
@media (max-width: 768px) {
    /* Скрываем боковое меню на мобильных устройствах */
    .sidebar-nav {
        display: none !important;
    }
    
    /* Адаптируем верхнее меню для мобильных */
    .top-nav {
        padding: 0.5rem 1rem;
    }
    
    .top-nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .top-logo-text {
        font-size: 1.2rem;
        white-space: nowrap;
    }
    
    /* Скрываем обычное меню на мобильных */
    .top-nav-menu {
        display: none;
    }
    
    /* Показываем иконку гамбургера на мобильных */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .mobile-menu-toggle .bar {
        width: 25px;
        height: 3px;
        background: var(--medieval-gold);
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Мобильное выпадающее меню */
    .mobile-nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.2) 20%,
            rgba(0, 0, 0, 0.3) 100%
        );
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        transition: all 0.4s ease;
        z-index: 1000;
        display: flex !important;
        transform: translateY(-100%);
    }
    
    .mobile-nav-menu.active {
        transform: translateY(0);
    }
    
    .mobile-nav-link {
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem 2rem;
        margin: 0.5rem 0;
        border-radius: 10px;
        transition: all 0.3s ease;
        text-align: center;
        min-width: 200px;
    }
    
    .mobile-nav-link:hover {
        background: rgba(255, 215, 0, 0.1);
        color: var(--medieval-gold);
        transform: translateX(10px);
    }
}

/* Скрываем кнопку гамбургера на десктопе */
.mobile-menu-toggle {
    display: none;
}

.mobile-nav-menu {
    display: none;
}

/* Новый логотип без черного фона */
.hero-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    animation: slideInRight 1s ease-out;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: var(--transition-normal);
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}

/* Выравнивание текста в hero блоке */
.hero-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}


/* Кнопка присоединиться */
.btn-join {
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF8C00, #FF6347);
    border-color: #FF8C00;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-join:hover {
    background: linear-gradient(135deg, #FF6347, #FF4500);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
    .top-nav-container {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    
    .top-logo-text {
        font-size: 1.1rem;
    }
    
    .top-nav-menu {
        gap: 0.75rem;
    }
    
    .top-nav-link {
        font-size: 0.8rem;
    }
}

/* Мобильная адаптация для новых блоков
   На мобильных устройствах модальные окна отображаются полноэкранно
   Карточки классов и меню обновлений адаптируются под одну колонку */
@media (max-width: 768px) {
    /* Модальное окно на мобильных - делаем как отдельную страницу
       Это улучшает UX на маленьких экранах */
    .update-modal-container {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        border-top: 4px solid var(--medieval-gold);
    }
    
    .update-modal-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .update-nav-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Классы - адаптация карточек */
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .class-card {
        min-height: 350px;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .class-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .class-icon {
        font-size: 3rem;
    }
    
    .class-icon .icon-img {
        width: 2.8rem;
        height: 2.8rem;
    }
    
    .class-icon .icon-svg {
        width: 2.8rem;
        height: 2.8rem;
    }
    
    .icon-part .icon-img {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .icon-part .icon-svg {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .class-icon-dual {
        gap: 0.5rem;
    }
    
    .class-name {
        font-size: 1.4rem;
    }
    
    /* Новости и обновления */
    .news-hero-card {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .news-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .news-hero-icon {
        font-size: 3rem;
    }
    
    .news-hero-title {
        font-size: 1.5rem;
    }
    
    .news-hero-description {
        font-size: 1rem;
    }
    
    .btn-news-hero {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }
    
    .news-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-category-card {
        min-height: 260px;
        padding: 1.5rem;
    }
    
    .news-card-icon {
        font-size: 2rem;
    }
    
    .news-card-title {
        font-size: 1.2rem;
    }
    
    .btn-news-card {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Видео */
    .video-wrapper {
        padding-bottom: 56.25%;
    }
}

/* Скрытие модального окна на мобильных (будет использоваться отдельная страница) */
@media (max-width: 768px) {
    .update-modal {
        /* На мобильных показываем всегда в полный экран */
        width: 100vw;
        height: 100vh;
    }
    
    .update-modal-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}/* 
Эффект светлячков при наведении на кнопки */
.btn {
    overflow: visible;
}

.btn::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0;
    bottom: -5px;
    left: 20%;
    box-shadow: 0 0 6px #FFD700;
    pointer-events: none;
}

.btn::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0;
    bottom: -3px;
    right: 25%;
    box-shadow: 0 0 4px #FFD700;
    pointer-events: none;
}

.btn:hover::before {
    animation: firefly1 1.5s ease-out infinite;
}

.btn:hover::after {
    animation: firefly2 1.8s ease-out infinite;
}

@keyframes firefly1 {
    0% {
        opacity: 0;
        transform: translateY(0px) translateX(0px);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) translateX(15px);
    }
}

@keyframes firefly2 {
    0% {
        opacity: 0;
        transform: translateY(0px) translateX(0px);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-25px) translateX(-10px);
    }
}

/* Дополнительные светлячки для разных кнопок */
.btn-join::before {
    background: #FF6347;
    box-shadow: 0 0 6px #FF6347;
}

.btn-join::after {
    background: #FF6347;
    box-shadow: 0 0 4px #FF6347;
}

.btn-secondary::before {
    background: #FFD700;
    box-shadow: 0 0 6px #FFD700;
}

.btn-secondary::after {
    background: #FFD700;
    box-shadow: 0 0 4px #FFD700;
}

/* Добавляем третий светлячок через JavaScript будет создаваться */
.btn:hover {
    position: relative;
}

/* Логотип проекта в футере */
.footer-project-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition-normal);
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Minecraft стиль кнопок */
.minecraft-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
    overflow: visible;
}

.launcher-section {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: visible;
}

.social-buttons {
    overflow: visible;
}

.minecraft-btn {
    position: relative;
    background: linear-gradient(135deg, #8B4B9C, #6A3A7C);
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    display: inline-block;
    /* Изначально блочная форма */
    clip-path: polygon(
        0 8px, 8px 8px, 8px 0,
        calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
    );
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.1);
}

/* Дополнительные блоки для анимации */
.minecraft-btn::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFD700;
    top: -10px;
    right: -10px;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.3),
        inset -1px -1px 0px rgba(0, 0, 0, 0.2),
        inset 1px 1px 0px rgba(255, 255, 255, 0.3);
    clip-path: polygon(
        0 6px, 6px 6px, 6px 0,
        calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
        100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
        6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
    );
}

.minecraft-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #FF6B35;
    bottom: -8px;
    left: -8px;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.3),
        inset -1px -1px 0px rgba(0, 0, 0, 0.2),
        inset 1px 1px 0px rgba(255, 255, 255, 0.3);
    clip-path: polygon(
        0 4px, 4px 4px, 4px 0,
        calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
        100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
        4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
    );
}

/* Анимация при наведении - появляются дополнительные блоки */
.minecraft-btn:hover::before {
    opacity: 1;
    transform: translate(15px, -15px) rotate(45deg);
    animation: blockFloat1 0.6s ease-out;
}

.minecraft-btn:hover::after {
    opacity: 1;
    transform: translate(-12px, 12px) rotate(-30deg);
    animation: blockFloat2 0.8s ease-out;
}

.minecraft-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.4),
        inset -3px -3px 0px rgba(0, 0, 0, 0.3),
        inset 3px 3px 0px rgba(255, 255, 255, 0.2);
}

@keyframes blockFloat1 {
    0% {
        opacity: 0;
        transform: translate(0px, 0px) rotate(0deg) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(8px, -8px) rotate(22deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(15px, -15px) rotate(45deg) scale(1);
    }
}

@keyframes blockFloat2 {
    0% {
        opacity: 0;
        transform: translate(0px, 0px) rotate(0deg) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-6px, 6px) rotate(-15deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-12px, 12px) rotate(-30deg) scale(1);
    }
}

/* Большая кнопка лаунчера */
.launcher-btn {
    padding: 1.5rem 2rem;
    font-size: 1.4rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    white-space: nowrap;
}

.launcher-btn .launcher-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.launcher-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 85, 199, 0.4);
}

/* Секция соцсетей */
.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(168, 85, 199, 0.3);
}

.social-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.social-title {
    font-size: 1rem;
    font-weight: 700;
}

.social-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Discord кнопка */
.discord-btn {
    background: linear-gradient(135deg, #5865F2, #4752C4);
}

.discord-btn::before {
    background: rgba(114, 137, 218, 0.3);
}

.discord-btn::after {
    background: rgba(142, 161, 225, 0.2);
}

/* Telegram кнопка */
.telegram-btn {
    background: linear-gradient(135deg, #0088CC, #006699);
}

.telegram-btn::before {
    background: rgba(34, 158, 217, 0.3);
}

.telegram-btn::after {
    background: rgba(84, 179, 244, 0.2);
}

/* Информационный блок */
.server-info {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(47, 27, 20, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--medieval-gold);
    min-width: 200px;
}

.info-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--medieval-gold);
    border-radius: 8px;
    color: var(--dark-bg);
}

.info-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.info-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .launcher-btn {
        font-size: 1.2rem;
        padding: 1.2rem 3rem;
    }
    
    .server-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-item {
        width: 100%;
        max-width: 300px;
    }
}/* Улуч
шенные стили для мобильных устройств */
@media (max-width: 768px) {
    .footer-logo-img {
        max-width: 150px;
    }
    
    .footer-social {
        align-items: center;
    }
    
    .footer-social-buttons {
        justify-content: center;
    }
    
    .minecraft-buttons {
        gap: 2.5rem;
        padding: 0 1rem;
    }
    
    /* Большая кнопка лаунчера на мобильных */
    .launcher-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 320px;
        /* Более мягкие углы для мобильных */
        clip-path: polygon(
            0 6px, 6px 6px, 6px 0,
            calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
            100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
            6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
        );
        box-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.3),
            inset -1px -1px 0px rgba(0, 0, 0, 0.2),
            inset 1px 1px 0px rgba(255, 255, 255, 0.1);
    }
    
    /* Кнопки соцсетей на мобильных */
    .social-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    
    .social-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        /* Более мягкие углы */
        clip-path: polygon(
            0 4px, 4px 4px, 4px 0,
            calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
            100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
            4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
        );
        box-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.3),
            inset -1px -1px 0px rgba(0, 0, 0, 0.2),
            inset 1px 1px 0px rgba(255, 255, 255, 0.1);
    }
    
    /* Уменьшаем размер иконок на мобильных */
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        border-radius: 6px;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
    
    /* Информационный блок на мобильных */
    .server-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .info-item {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1rem;
        border-radius: 6px;
        border-width: 1px;
    }
    
    .info-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        border-radius: 6px;
    }
    
    .info-details h3 {
        font-size: 0.9rem;
    }
    
    .info-details p {
        font-size: 0.8rem;
    }
    
    /* Отключаем сложные анимации на мобильных для производительности */
    .minecraft-btn::before,
    .minecraft-btn::after {
        display: none;
    }
    
    /* Простая анимация при нажатии на мобильных */
    .minecraft-btn:active {
        transform: translateY(1px);
        box-shadow: 
            1px 1px 0px rgba(0, 0, 0, 0.3),
            inset -1px -1px 0px rgba(0, 0, 0, 0.2),
            inset 1px 1px 0px rgba(255, 255, 255, 0.1);
    }
    
    /* Улучшенные цвета для мобильных */
    .launcher-btn {
        background: linear-gradient(135deg, #9D4EDD, #7B2CBF);
    }
    
    .discord-btn {
        background: linear-gradient(135deg, #5865F2, #4752C4);
    }
    
    .telegram-btn {
        background: linear-gradient(135deg, #0088CC, #006699);
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .footer-logo-img {
        max-width: 120px;
    }
    
    .minecraft-buttons {
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .launcher-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        max-width: 280px;
    }
    
    .social-btn {
        max-width: 260px;
        padding: 0.7rem 1rem;
    }
    
    .info-item {
        max-width: 260px;
        padding: 0.7rem 0.8rem;
    }
    
    .social-desc {
        font-size: 0.7rem;
    }
}/*



/* Исправляем стили кнопок доната */
.btn-donate {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    width: 100% !important;
    font-weight: 600 !important;
    border: 2px solid var(--medieval-gold) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-family: 'Roboto', sans-serif !important;
}

.btn-donate:hover {
    background: var(--gradient-secondary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Minecraft стиль для всех кнопок в карточках доната */
.donate-card .btn {
    /* Применяем Minecraft стиль */
    position: relative;
    background: linear-gradient(135deg, #8B4513, #A0522D) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-family: 'Roboto', sans-serif !important;
    width: 100% !important;
    font-weight: 600 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    overflow: visible !important;
    /* Minecraft пиксельная форма */
    clip-path: polygon(
        0 6px, 6px 6px, 6px 0,
        calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
        100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
        6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
    ) !important;
    box-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.3),
        inset -1px -1px 0px rgba(0, 0, 0, 0.2),
        inset 1px 1px 0px rgba(255, 255, 255, 0.1) !important;
}

.donate-card .btn:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 0px rgba(255, 255, 255, 0.2) !important;
}

/* Специальный стиль для кнопки "Узнать подробнее" */
.donate-card .btn-info {
    background: linear-gradient(135deg, #4B0082, #6A5ACD) !important;
}

.donate-card .btn-info:hover {
    background: linear-gradient(135deg, #6A5ACD, #8A2BE2) !important;
}/* Стил
и для премиум карточки (самый дорогой тариф) */
.donate-card.premium-tier {
    border-color: #FFD700;
    background: 
        rgba(255, 215, 0, 0.1),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.1"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.1"/></svg>') repeat;
    transform: scale(1.05);
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.5),
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
    position: relative;
    z-index: 2;
}

.premium-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2F1B14;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.premium-price {
    color: #FFD700 !important;
    font-size: 3rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #2F1B14 !important;
    width: 100% !important;
    font-weight: 700 !important;
    border: 2px solid #FFD700 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-family: 'Roboto', sans-serif !important;
    clip-path: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Красивое расположение доната 2+3 */
.donate-container {
    max-width: 1400px;
    margin: 0 auto;
}

.donate-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.first-row {
    /* Первый ряд - 2 карточки по центру */
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.second-row {
    /* Второй ряд - 3 карточки */
    max-width: 1200px;
    margin: 0 auto;
}

.donate-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

/* Адаптивность для донат карточек */
@media (max-width: 768px) {
    .donate-card.premium-tier {
        transform: scale(1.02);
        order: -1; /* Показываем премиум карточку первой на мобильных */
    }
    
    .premium-price {
        font-size: 2.5rem !important;
    }
    
    .donate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}/*
 Новые стили для улучшенной секции доната */



/* Исправленные стили карточек с читаемым текстом */
.donate-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(255, 215, 0, 0.5);
}

.donate-card.premium {
    border-color: var(--accent-color);
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 215, 0, 0.3);
}

/* Исправленные бейджи */
.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.premium-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}





/* Адаптивность для доната */
@media (max-width: 768px) {
    .donate-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .first-row,
    .second-row {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .donate-card {
        max-width: 380px;
        width: 100%;
    }
    
    .donate-card.popular {
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .donate-card {
        max-width: 320px;
        min-width: 300px;
    }
    
    .kit-card {
        max-width: 320px;
        min-width: 300px;
    }
    
    .class-card {
        max-width: 320px;
        min-width: 300px;
    }
    
    .donate-row {
        gap: 1rem;
    }
    
    .first-row {
        margin-bottom: 1.5rem;
    }
    
    .minecraft-inventory {
        grid-template-columns: repeat(5, 1fr);
        padding: 3px;
        gap: 1px;
    }
    
    .inventory-slot {
        width: 18px;
        height: 18px;
        min-width: 16px;
        min-height: 16px;
    }
}/*
 Исправление рендеринга текста при анимациях */
.feature-card,
.donate-card,
.gallery-item,
.kit-card,
.update-menu-item,
.hero-img,
.class-card,
.minecraft-btn {
    /* Стабилизация рендеринга текста */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* Принудительное использование GPU для плавных анимаций */
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    
    /* Предотвращение размытия текста при трансформациях */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Дополнительная стабилизация для текста внутри анимируемых элементов */
.feature-card *,
.donate-card *,
.gallery-item *,
.kit-card *,
.update-menu-item *,
.class-card * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Исправление для конкретных проблемных элементов */
.donate-card.popular,
.donate-card.premium {
    /* Убираем размытие при масштабировании */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Стабилизация текста в заголовках и ценах */
.donate-title,
.donate-price,
.feature-title,
.class-name {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}/* 
Исправления для секции доната */

/* Исправляем отступ для бейджа */
.donate-card {
    padding-top: 3rem; /* Увеличиваем отступ сверху для бейджа */
}

.premium-badge {
    top: -12px; /* Поднимаем бейдж выше */
}

/* Контейнер для кнопок */
.donate-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* Minecraft стиль для кнопок доната - применяем к .btn внутри .donate-card */
.donate-card .btn {
    /* Применяем Minecraft стиль */
    position: relative;
    background: linear-gradient(135deg, #8B4513, #A0522D) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-family: 'Roboto', sans-serif !important;
    width: 100% !important;
    font-weight: 600 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    overflow: visible !important;
    /* Minecraft пиксельная форма */
    clip-path: polygon(
        0 6px, 6px 6px, 6px 0,
        calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
        100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
        6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
    ) !important;
    box-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.3),
        inset -1px -1px 0px rgba(0, 0, 0, 0.2),
        inset 1px 1px 0px rgba(255, 255, 255, 0.1) !important;
}

.donate-card .btn:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 0px rgba(255, 255, 255, 0.2) !important;
}

/* Специальный стиль для кнопки "Узнать подробнее" */
.donate-card .btn-info {
    background: linear-gradient(135deg, #4B0082, #6A5ACD) !important;
}

.donate-card .btn-info:hover {
    background: linear-gradient(135deg, #6A5ACD, #8A2BE2) !important;
}

/* Также применяем к кнопкам с классом minecraft-btn внутри donate-card */
.donate-card .minecraft-btn {
    position: relative;
    border: none !important;
    border-radius: 0 !important;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    overflow: visible;
    width: 100% !important;
    /* Minecraft пиксельная форма */
    clip-path: polygon(
        0 6px, 6px 6px, 6px 0,
        calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
        100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
        6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
    ) !important;
    box-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.3),
        inset -1px -1px 0px rgba(0, 0, 0, 0.2),
        inset 1px 1px 0px rgba(255, 255, 255, 0.1) !important;
}

.donate-card .minecraft-btn.btn-info {
    background: linear-gradient(135deg, #4B0082, #6A5ACD) !important;
    padding: 0.6rem 1.2rem !important;
}

.donate-card .minecraft-btn.btn-info:hover {
    background: linear-gradient(135deg, #6A5ACD, #8A2BE2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 0px rgba(255, 255, 255, 0.2) !important;
}

.donate-card .minecraft-btn.btn-donate {
    background: linear-gradient(135deg, #8B4513, #A0522D) !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
}

.donate-card .minecraft-btn.btn-donate:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 0px rgba(255, 255, 255, 0.2) !important;
}

/* Кнопка "Узнать подробнее" - меньше */
.btn-info.minecraft-btn {
    background: linear-gradient(135deg, #4B0082, #6A5ACD);
    padding: 0.6rem 1.2rem;
}

.btn-info.minecraft-btn:hover {
    background: linear-gradient(135deg, #6A5ACD, #8A2BE2);
    transform: translateY(-2px);
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 0px rgba(255, 255, 255, 0.2);
}

/* Кнопка "Купить" - больше */
.btn-donate.minecraft-btn {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.btn-donate.minecraft-btn:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 0px rgba(255, 255, 255, 0.2);
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .donate-buttons {
        gap: 0.6rem;
    }
    
    .btn-info.minecraft-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-donate.minecraft-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}/*
/* Стильный шрифт для названий привилегий */
.pixel-font {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.3);
}

/* Модальное окно для доната */
.donate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.donate-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.donate-modal-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    background: 
        rgba(26, 15, 10, 0.98),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    border: 4px solid var(--medieval-gold);
    border-radius: 0;
    padding: 3rem;
    overflow-y: auto;
    box-shadow: 
        inset 0 0 0 3px rgba(255, 215, 0, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    
    /* Скрытие скроллбара */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Скрытие скроллбара для WebKit браузеров (Chrome, Safari) */
.donate-modal-container::-webkit-scrollbar {
    display: none;
}

.donate-modal-close {
    position: sticky;
    top: 1rem;
    right: 1rem;
    float: right;
    margin-bottom: -40px;
    background: rgba(139, 0, 0, 0.9);
    border: 2px solid var(--medieval-gold);
    color: var(--medieval-gold);
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.donate-modal-close:hover {
    background: rgba(220, 20, 60, 0.9);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.donate-modal-content {
    color: var(--text-primary);
}

.donate-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--medieval-gold);
    padding-bottom: 1rem;
}

.donate-modal-title {
    font-size: 2.5rem;
    color: var(--medieval-gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'OldEnglishGothicPixel', 'Orbitron', sans-serif;
}

.donate-modal-price {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
}

.donate-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.donate-modal-content h3,
.donate-modal-features h3,
.donate-modal-details h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--medieval-gold);
    padding-bottom: 0.5rem;
}

.donate-modal-content p,
.donate-modal-details p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.donate-modal-features ul,
.donate-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.donate-modal-features li,
.donate-modal-content ul li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--medieval-gold);
    color: var(--text-primary);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.donate-modal-features li::before,
.donate-modal-content ul li::before {
    content: '▪';
    color: var(--medieval-gold);
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.donate-modal-features li:hover,
.donate-modal-content ul li:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

.donate-modal-details {
    color: var(--text-primary);
    line-height: 1.8;
}

.donate-modal-footer {
    position: relative;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: 
        linear-gradient(to top, rgba(26, 15, 10, 1) 0%, rgba(26, 15, 10, 0.98) 50%, rgba(26, 15, 10, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23FFD700" opacity="0.05"/><rect x="4" y="4" width="4" height="4" fill="%23FFD700" opacity="0.05"/></svg>') repeat;
    border-top: 3px solid var(--medieval-gold);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    margin-left: -3rem;
    margin-right: -3rem;
    margin-bottom: -3rem;
    box-shadow: 
        0 -8px 24px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
}

.btn-kit-preview {
    background: linear-gradient(135deg, #4B0082, #6A5ACD) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    /* Minecraft пиксельная форма */
    clip-path: polygon(
        0 8px, 8px 8px, 8px 0,
        calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
    ) !important;
    box-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.2),
        inset 2px 2px 0px rgba(255, 255, 255, 0.1) !important;
}

.btn-kit-preview:hover {
    background: linear-gradient(135deg, #6A5ACD, #8A2BE2) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.4),
        inset -3px -3px 0px rgba(0, 0, 0, 0.3),
        inset 3px 3px 0px rgba(255, 255, 255, 0.2) !important;
}

.donate-modal-footer .btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* Затемнение перед футером */
.donate-modal-footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

/* Исправление кнопок в модальном окне - отключаем проблемные hover-эффекты */
.donate-modal .minecraft-btn::before,
.donate-modal .minecraft-btn::after {
    display: none !important;
}

.donate-modal .minecraft-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.donate-modal .minecraft-btn {
    overflow: hidden !important;
    contain: layout style paint !important;
}

/* Minecraft инвентарь стили */
.minecraft-inventory {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    background: #8B8B8B;
    padding: 6px;
    border: 2px solid #373737;
    border-radius: 0;
    margin: 1rem auto;
    max-width: 100%;
    width: fit-content;
    box-shadow: 
        inset 2px 2px 0px #C6C6C6,
        inset -2px -2px 0px #373737;
}

.inventory-slot {
    width: 28px;
    height: 28px;
    min-width: 24px;
    min-height: 24px;
    background: #C6C6C6;
    border: 1px solid #373737;
    position: relative;
    box-shadow: 
        inset 1px 1px 0px #FFFFFF,
        inset -1px -1px 0px #8B8B8B;
}

.inventory-slot.empty {
    background: #8B8B8B;
}

.item-icon {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
}

.item-count {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 10px;
    color: white;
    text-shadow: 1px 1px 0px #000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    line-height: 1;
}

/* Временные цвета для предметов (будут заменены на изображения) */
.item-icon[data-item="wooden_sword"] { background-color: #8B4513; }
.item-icon[data-item="bread"] { background-color: #DEB887; }
.item-icon[data-item="leather_boots"] { background-color: #A0522D; }
.item-icon[data-item="wooden_pickaxe"] { background-color: #8B4513; }
.item-icon[data-item="cooked_beef"] { background-color: #8B4513; }
.item-icon[data-item="golden_apple"] { background-color: #FFD700; }
.item-icon[data-item="cake"] { background-color: #FFF8DC; }
.item-icon[data-item="milk_bucket"] { background-color: #C0C0C0; }
.item-icon[data-item="iron_sword"] { background-color: #C0C0C0; }
.item-icon[data-item="iron_helmet"] { background-color: #C0C0C0; }
.item-icon[data-item="iron_chestplate"] { background-color: #C0C0C0; }
.item-icon[data-item="iron_leggings"] { background-color: #C0C0C0; }
.item-icon[data-item="iron_boots"] { background-color: #C0C0C0; }
.item-icon[data-item="bow"] { background-color: #8B4513; }
.item-icon[data-item="arrow"] { background-color: #A0522D; }
.item-icon[data-item="ender_pearl"] { background-color: #008B8B; }
.item-icon[data-item="diamond_sword"] { background-color: #00CED1; }
.item-icon[data-item="diamond_helmet"] { background-color: #00CED1; }
.item-icon[data-item="diamond_chestplate"] { background-color: #00CED1; }
.item-icon[data-item="diamond_leggings"] { background-color: #00CED1; }
.item-icon[data-item="diamond_boots"] { background-color: #00CED1; }
.item-icon[data-item="enchanted_golden_apple"] { background-color: #FFD700; }
.item-icon[data-item="totem_of_undying"] { background-color: #32CD32; }
.item-icon[data-item="elytra"] { background-color: #800080; }

/* Обновленные стили для kit-card */
.kit-card {
    background: rgba(47, 27, 20, 0.95);
    border: 3px solid var(--medieval-gold);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
}

.kit-header {
    margin-bottom: 1rem;
}

.kit-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Roboto', 'Segoe UI', 'Tahoma', sans-serif;
}

.kit-title-styled {
    font-family: 'Roboto', 'Segoe UI', 'Tahoma', sans-serif;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.kit-command {
    background: rgba(0, 0, 0, 0.5);
    color: #00FF00;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: inline-block;
}

.kit-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Мобильные стили для модального окна доната */
@media (max-width: 768px) {
    .donate-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        max-width: 100%;
        padding: 2rem 1.5rem;
        padding-top: 4rem;
        border-radius: 0;
    }
    
    .donate-modal-close {
        position: fixed;
        top: 1rem;
        right: 1rem;
        margin-bottom: 0;
        float: none;
        background: rgba(139, 0, 0, 0.95);
        backdrop-filter: blur(5px);
        z-index: 10002;
    }
    
    .donate-modal-title {
        font-size: 1.8rem;
    }
    
    .donate-modal-price {
        font-size: 1.5rem;
    }
    
    .donate-modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .donate-modal-content h3 {
        font-size: 1.4rem;
    }
    
    .donate-modal-content p {
        font-size: 1rem;
    }
    
    .donate-modal-content ul li {
        font-size: 0.95rem;
        padding: 0.6rem 0.8rem;
    }
    
    .donate-modal-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 1rem 1.5rem;
        border-top-width: 2px;
    }
    
    .donate-modal-footer .btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .donate-modal-container {
        padding: 1.5rem 1rem;
        padding-top: 3.5rem;
        padding-bottom: 5rem;
    }
    
    .donate-modal-close {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .donate-modal-title {
        font-size: 1.5rem;
    }
    
    .donate-modal-price {
        font-size: 1.3rem;
    }
    
    .donate-modal-content h3 {
        font-size: 1.2rem;
    }
    
    .donate-modal-content p {
        font-size: 0.9rem;
    }
    
    .donate-modal-footer {
        padding: 0.8rem 1rem;
    }
    
    .donate-modal-footer .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .minecraft-inventory {
        grid-template-columns: repeat(6, 1fr);
        padding: 4px;
        gap: 1px;
    }
    
    .inventory-slot {
        width: 22px;
        height: 22px;
        min-width: 20px;
        min-height: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}