/* Убрали Google Fonts из-за CSP */

/* Literal Regular */
@font-face {
    font-family: 'Literal';
    src: url('/fonts/LiteralRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Literal Bold */
@font-face {
    font-family: 'Literal';
    src: url('/fonts/LiteralBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Literal Light */
@font-face {
    font-family: 'Literal';
    src: url('/fonts/LiteralLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Arial Black */
@font-face {
    font-family: 'Arial Black';
    src: url('/fonts/ArialBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* CYBERPUNK DESIGN VARIABLES */
:root {
    /* Neon colors */
    --neon-cyan: #00FFFF;
    --neon-pink: #FF00FF;
    --neon-purple: #9D00FF;
    --neon-blue: #0066FF;
    --neon-green: #00FF88;
    --electric-yellow: #FFFF00;
    
    /* Review colors */
    --review: #8248B1;
    --review_inactive: #6B3A8F;
    
    /* Dark theme */
    --void-black: #000000;
    --deep-space: #0A0A0F;
    --dark-matter: #111118;
    --space-gray: #1A1A25;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Glows */
    --glow-cyan: rgba(0, 255, 255, 0.8);
    --glow-pink: rgba(255, 0, 255, 0.8);
    --glow-purple: rgba(157, 0, 255, 0.8);
    --glow-intense: rgba(0, 255, 255, 1);
    
    /* Text */
    --text-neon: #FFFFFF;
    --text-glow: #E0E7FF;
    --text-muted: #9CA3AF;
    
    /* Legacy */
    --review: #8248B1;
    --review_inactive: #1F192A;
}

/* Упрощенные стили */
html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    background: #140C21;
    font-family: 'Literal', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    box-sizing: border-box;
    color: white;
    position: relative;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* Убираем лишние анимации */

.full-width-wrapper {
    width: 100vw;
    overflow-x: hidden;
    background: transparent;
    position: relative;
    z-index: 2;
}

* {
    font-family: 'Literal', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: white;
}

.arial_black {
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}
/* Навигация */
.top_nav {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
}

@media (min-width: 768px) {
    .top_nav {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
    }
}

/* Слайдер отзывов */
.slider-wrap {
    height: 400px;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.slider-wrap .slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    width: 100%;
    max-width: 500px;
    min-height: 120px;
    padding: 20px;
    background: var(--review_inactive) !important;
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    opacity: 0.75;
    z-index: 1;
    box-sizing: border-box;
    color: #fff !important;
    border-radius: 25px;
    margin: 20px auto;
    left: 0;
    right: 0;
}

.slider-item.active {
    display: flex !important;
    opacity: 1 !important;
}

.animation-card_image {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
}

.animation-card_image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.animation-card_content {
    flex: 1;
}

.animation-card_content_title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.animation-card_content_description {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    opacity: 0.9;
}

/* ПИЗДАТЫЕ Отзывы */
.reviews-stack {
    perspective: 1000px;
    cursor: pointer;
}

.review-card {
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    will-change: transform, opacity, top;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* Дополнительные эффекты для стека */
.review-card[data-index="0"] {
    z-index: 10;
    filter: drop-shadow(0 15px 35px rgba(130, 72, 177, 0.5));
}

.review-card[data-index="1"] {
    z-index: 9;
    filter: drop-shadow(0 10px 25px rgba(130, 72, 177, 0.3));
}

.review-card[data-index="2"] {
    z-index: 8;
    filter: drop-shadow(0 5px 15px rgba(130, 72, 177, 0.2));
}

.review-card[data-index="3"],
.review-card[data-index="4"] {
    z-index: 7;
    filter: none;
}

/* Анимация появления отзывов */
@keyframes slideInFromBottom {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.review-card.entering {
    animation: slideInFromBottom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Улучшенные градиенты для отзывов */
.review-card .bg-gradient-to-r:first-child {
    position: relative;
    overflow: hidden;
}

.review-card .bg-gradient-to-r:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.slider-item .animation-card_image {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #ffffff;
}

.slider-item .animation-card_image img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
}

.slider-item .animation-card_content {
    color: inherit;
    width: 100%;
    max-width: 374px;
    margin-left: 26px;
    font-family: 'Literal', sans-serif;
}

.slider-item .animation-card_content .animation-card_content_title {
    color: inherit;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.18px;
    line-height: 20px;
    margin: 0;
}

.slider-item .animation-card_content .animation-card_content_description {
    color: inherit;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 20px;
    margin-top: 4px;
    opacity: 0.7;
}

.slider-item .animation-card_image {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #ffffff;
}

.slider-item .animation-card_image img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
}

.slider-item .animation-card_content {
    color: inherit;
    width: 100%;
    max-width: 374px;
    margin-left: 26px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.slider-item .animation-card_content .animation-card_content_title {
    color: inherit;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.18px;
    line-height: 20px;
    margin: 0;
}

.slider-item .animation-card_content .animation-card_content_description {
    color: inherit;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 20px;
    margin-top: 4px;
    opacity: .7;
}

.slider-item .animation-card_content .animation-card_content_city {
    font-size: 12px;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    color: inherit;
    display: none;
}

/* ============================================
   СТИЛИ ПАНЕЛИ УПРАВЛЕНИЯ
   ============================================ */

/* EPIC GLASSMORPHISM CARDS */
.minecraft-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%),
        linear-gradient(45deg, rgba(0, 255, 255, 0.05) 0%, rgba(26, 149, 244, 0.05) 50%, rgba(17, 124, 174, 0.05) 100%);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
}

.minecraft-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-cyan), #1a95f4, #54CDE5, var(--neon-cyan));
    background-size: 400% 400%;
    border-radius: 32px;
    opacity: 0;
    animation: neon-border 3s ease-in-out infinite;
    z-index: -1;
}

.minecraft-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(17, 17, 24, 0.6) 100%);
    border-radius: 30px;
    z-index: -1;
}

/* Hover эффект для minecraft-card */
.minecraft-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(26, 149, 244, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.minecraft-card:hover::before {
    opacity: 0.1;
}

@keyframes neon-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* Карточки серверов */
.minecraft-server-card {
    background: linear-gradient(135deg, #0a1426 0%, #0e1b2e 100%);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(26, 149, 244, 0.2);
    position: relative;
    overflow: hidden;
}

.minecraft-server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 124, 174, 0.08) 0%, rgba(26, 149, 244, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.minecraft-server-card:hover::before {
    opacity: 1;
}

.minecraft-server-card:hover {
    border-color: rgba(26, 149, 244, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 149, 244, 0.2);
    transition: all 0.3s ease;
}


/* Иконка сервера */
.minecraft-server-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1372c0 0%, #1a5bb8 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(19, 114, 192, 0.5);
    position: relative;
}

.minecraft-server-icon::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 19px;
    pointer-events: none;
}

/* Статус бейджи */
.minecraft-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-inactive {
    background: rgba(26, 149, 244, 0.2);
    color: #1a95f4;
    border: 1px solid rgba(26, 149, 244, 0.3);
}

.status-maintenance {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Простые кнопки */
.minecraft-btn-primary {
    background: linear-gradient(135deg, #1a95f4, #117cae);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 18px;
    border: none;
    border-bottom: 4px solid #0f5d8c;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(26, 149, 244, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minecraft-btn-secondary {
    background: rgba(51, 65, 85, 0.6);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 4px solid rgba(30, 41, 59, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Иконки кнопок */
.minecraft-btn-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.minecraft-btn-icon-secondary {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Кнопка управления сервером */
.minecraft-manage-btn {
    background: linear-gradient(135deg, #1372c0 0%, #1a5bb8 100%);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(19, 114, 192, 0.5);
    position: relative;
    overflow: hidden;
}


/* Пустое состояние */
.minecraft-empty-state {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 26, 46, 0.8) 100%);
    border-radius: 25px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.minecraft-empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1a95f4 0%, #54CDE5 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(26, 149, 244, 0.5);
    animation: float 6s ease-in-out infinite;
}

/* Быстрые действия */
.minecraft-quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(26, 149, 244, 0.05);
    border: 1px solid rgba(26, 149, 244, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
}


.minecraft-quick-action span {
    flex: 1;
    font-weight: 500;
}

/* Hover эффекты для быстрых действий */
.minecraft-quick-action:hover {
    background: rgba(26, 149, 244, 0.1);
    border-color: rgba(26, 149, 244, 0.3);
    transform: translateX(4px);
    transition: all 0.2s ease;
}

/* Hover эффект для кнопки управления */
.minecraft-manage-btn:hover {
    background: linear-gradient(135deg, #1a5bb8 0%, #1372c0 100%);
    box-shadow: 0 12px 30px rgba(19, 114, 192, 0.6);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Hover эффекты для основных кнопок */
.minecraft-btn-primary:hover {
    background: linear-gradient(135deg, #1372c0, #0f5d8c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 149, 244, 0.4);
}

.minecraft-btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* CYBERPUNK MEGA ANIMATIONS */

/* Holographic scan effect */
@keyframes holographic-scan {
    0% {
        background-position: 0% 0%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 100%;
        filter: hue-rotate(180deg);
    }
    100% {
        background-position: 0% 0%;
        filter: hue-rotate(360deg);
    }
}

/* Enhanced floating with glitch */
@keyframes cyber-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg) scale(1.02);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg) scale(1);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg) scale(0.98);
        filter: hue-rotate(270deg);
    }
}

.floating {
    animation: cyber-float 8s ease-in-out infinite;
}

.floating-animation {
    animation: cyber-float 8s ease-in-out infinite;
}

/* Glitch effect */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
}

.animate-glitch {
    animation: glitch 0.3s ease-in-out infinite;
}

/* Современные анимации для формы создания сервера */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
}

.step-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Современные индикаторы прогресса */
.step-dot.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.step-line.active {
    background: linear-gradient(90deg, #3b82f6, #6366f1) !important;
}


/* Современные стили для выбранных элементов */
.game-option.selected .relative,
.tarif-option.selected .relative {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1)) !important;
}

.game-option.selected .w-5.h-5 > div,
.tarif-option.selected .w-5.h-5 > div {
    transform: scale(1) !important;
}

/* Стили для активных состояний кнопок */
.btn-primary-active {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4) !important;
}

/* Современные стили для выбранных элементов */
.egg-option.selected .relative {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1)) !important;
    transform: scale(1.02) translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25) !important;
}

.egg-option.selected .w-5.h-5 > div {
    transform: scale(1) !important;
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
}

.tarif-option.selected .relative {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1)) !important;
    transform: scale(1.02) translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25) !important;
}

.tarif-option.selected .w-6.h-6 > div {
    transform: scale(1) !important;
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
}

/* Анимация для меток */
.egg-option .mt-3 span {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.egg-option .mt-3 span:nth-child(1) { animation-delay: 0.1s; }
.egg-option .mt-3 span:nth-child(2) { animation-delay: 0.2s; }
.egg-option .mt-3 span:nth-child(3) { animation-delay: 0.3s; }

/* Улучшенные стили прогресса */
.step-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.step-line.active {
    background: linear-gradient(90deg, #3b82f6, #6366f1) !important;
    height: 2px !important;
}

/* ULTRA MODERN ANIMATIONS */

/* Enhanced floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

/* Blob animation for mesh gradients */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* Pulsing glow effect */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px var(--glow-purple);
    }
    50% {
        box-shadow: 0 0 25px var(--glow-purple), 0 0 35px var(--glow-cyan);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animation-delay-6000 {
    animation-delay: 6s;
}

/* Floating particles */
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Spinning animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

/* Floating elements for icon */
@keyframes float-1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(-180deg);
    }
}

.animate-float-1 {
    animation: float-1 4s ease-in-out infinite;
}

.animate-float-2 {
    animation: float-2 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Glitch text effect */
@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    1%, 3% {
        transform: translate(-2px, 1px);
        opacity: 1;
    }
    2% {
        transform: translate(2px, -1px);
        opacity: 0.8;
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    2%, 4% {
        transform: translate(1px, -1px);
        opacity: 0.9;
    }
    3% {
        transform: translate(-1px, 2px);
        opacity: 0.7;
    }
}

.animate-glitch-1 {
    animation: glitch-1 0.3s infinite;
    animation-delay: 2s;
}

.animate-glitch-2 {
    animation: glitch-2 0.3s infinite;
    animation-delay: 2.1s;
}

/* Text glow animation */
@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 30px rgba(236, 72, 153, 0.6);
    }
}

.animate-text-glow {
    animation: text-glow 2s ease-in-out infinite;
}

/* Pulse glow for progress */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 30px rgba(139, 92, 246, 0.4);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Modern gradient text animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* Typewriter effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter-text {
    overflow: hidden;
    border-right: 3px solid rgba(168, 85, 247, 0.7);
    white-space: nowrap;
    animation: typewriter 4s steps(80, end) forwards;
    animation-delay: 1s;
    width: 0;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: rgba(168, 85, 247, 0.7);
    }
}

.typewriter-text::after {
    animation: blink-caret 1s step-end infinite;
}

/* Holographic card effects */
.holographic-card {
    background: linear-gradient(45deg, transparent 30%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: holographic-shimmer 3s ease-in-out infinite;
}

@keyframes holographic-shimmer {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}


/* Градиентные элементы */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #0a1426, #0e1b2e);
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #117cae, #1372c0, #1a95f4);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1426;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #117cae, #1a95f4);
    border-radius: 4px;
}


/* Дополнительные утилиты */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.glow {
    box-shadow: 0 0 20px rgba(26, 149, 244, 0.4);
}


/* Отступы между секциями */
section {
    margin-bottom: 8rem !important;
}

section:last-child {
    margin-bottom: 4rem !important;
}

.hero-section {
    margin-bottom: 0 !important;
}

/* Принудительные отступы для основных блоков */
.main-spacing {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Мобильное меню */
#mobileMenu {
    z-index: 999;
}

#mobileMenu > div {
    max-width: 280px;
    width: 75vw;
    background-color: #111111 !important;
    opacity: 1 !important;
}

#mobileMenu nav a:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

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

/* Базовая адаптивность для планшетов */
@media (max-width: 1024px) {
    /* Контейнер */
    .container {
        padding: 0 2rem;
    }
    
    /* Сетки */
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    .col-span-3 {
        grid-column: span 2 / span 2 !important;
    }
    
    /* Карточки */
    .minecraft-card {
        padding: 2rem;
    }
    
    /* Заголовки */
    .text-6xl {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }
    
    .text-5xl {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
}

/* Мобильные телефоны (до 768px) */
@media (max-width: 768px) {
    /* Основные элементы */
    html, body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Навигация */
    .top_nav {
        padding: 0;
        height: 45px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .top_nav > div {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 12px;
    }
    
    /* Скрываем десктопные элементы навигации */
    .hidden-mobile {
        display: none !important;
    }
    
    /* Мобильное меню */
    .mobile-menu-button {
        display: block !important;
    }
    
    /* Hero секция */
    .hero-section {
        min-height: calc(100vh - 45px) !important;
        padding: 1rem;
        padding-top: 55px !important;
    }
    
    .hero-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    /* Заголовки для мобильных */
    .text-6xl {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    .text-5xl {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    .text-4xl {
        font-size: 1.375rem !important;
        line-height: 1.2 !important;
    }
    
    .text-3xl {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
    }
    
    .text-2xl {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    .text-xl {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
    
    .text-lg {
        font-size: 0.875rem !important;
    }
    
    .text-base {
        font-size: 0.875rem !important;
    }
    
    .text-sm {
        font-size: 0.75rem !important;
    }
    
    /* Специальные размеры текста */
    .text-\[52px\] {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    .text-\[46px\] {
        font-size: 1.375rem !important;
        line-height: 1.2 !important;
    }
    
    .text-\[42px\] {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }
    
    .text-\[36px\] {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
    }
    
    .text-\[32px\] {
        font-size: 1rem !important;
    }
    
    .text-\[28px\] {
        font-size: 0.875rem !important;
    }
    
    /* Карточки и блоки */
    .minecraft-card {
        padding: 1.5rem;
        border-radius: 20px;
        margin-bottom: 1rem;
    }

    .minecraft-server-card {
        padding: 1.25rem;
    }
    
    /* Кнопки */
    .minecraft-btn-primary,
    .minecraft-btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Иконки кнопок */
    .minecraft-btn-icon,
    .minecraft-btn-icon-secondary {
        width: 24px;
        height: 24px;
    }
    
    /* Сетки - все в одну колонку на мобильных */
    .grid,
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-6,
    .grid-cols-12 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Сброс колонок */
    .col-span-1,
    .col-span-2,
    .col-span-3,
    .col-span-4,
    .col-span-6,
    .col-span-8,
    .col-span-12 {
        grid-column: span 1 / span 1 !important;
    }
    
    /* Сброс строк */
    .row-span-1,
    .row-span-2 {
        grid-row: span 1 / span 1 !important;
    }
    
    /* Flexbox адаптация */
    .flex-row {
        flex-direction: column !important;
    }
    
    .flex-wrap {
        flex-wrap: wrap !important;
    }
    
    /* Отступы */
    .gap-6,
    .gap-8,
    .gap-10,
    .gap-12 {
        gap: 1rem !important;
    }
    
    .space-x-4 > * + *,
    .space-x-6 > * + *,
    .space-x-8 > * + * {
        margin-left: 0.5rem !important;
    }
    
    .space-y-4 > * + *,
    .space-y-6 > * + *,
    .space-y-8 > * + * {
        margin-top: 1rem !important;
    }
    
    /* Padding */
    .p-6,
    .p-8,
    .p-10,
    .p-12 {
        padding: 1rem !important;
    }
    
    .px-6,
    .px-8,
    .px-10,
    .px-12 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-6,
    .py-8,
    .py-10,
    .py-12 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .p-\[25px\] {
        padding: 0.75rem !important;
    }
    
    .pt-24 {
        padding-top: 3rem !important;
    }
    
    .pb-24 {
        padding-bottom: 3rem !important;
    }
    
    /* Margin */
    .mt-\[100px\] {
        margin-top: 3rem !important;
    }
    
    .mt-\[150px\] {
        margin-top: 4rem !important;
    }
    
    .mb-\[100px\] {
        margin-bottom: 3rem !important;
    }
    
    /* Высота */
    .h-\[550px\] {
        height: auto !important;
        min-height: 300px;
    }
    
    .h-screen {
        height: 100vh !important;
        min-height: 600px;
    }
    
    /* Ширина */
    .w-\[600px\],
    .max-w-\[600px\] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Скрываем декоративные элементы */
    .floating-animation,
    .absolute.right-\[-150px\],
    .absolute.right-\[-60px\],
    .min-w-\[750px\],
    .min-w-\[1800px\] {
        display: none !important;
    }
    
    /* Слайдер отзывов */
    .slider-wrap {
        height: auto;
        min-height: 200px;
        padding: 1rem;
    }
    
    .slider-item {
        max-width: 100%;
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .animation-card_content {
        margin-left: 1rem;
    }
    
    .animation-card_content_title {
        font-size: 16px;
    }
    
    .animation-card_content_description {
        font-size: 14px;
    }
    
    /* Отзывы стек */
    .reviews-stack {
        margin: 0 1rem;
    }
    
    .review-card {
        max-width: 100%;
    }
    
    /* Формы */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Предотвращает зум на iOS */
    }
    
    /* Модальные окна */
    .fixed.inset-0 {
        padding: 1rem;
    }
    
    /* Таблицы - горизонтальный скролл */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 100%;
    }
    
    /* Секции */
    section {
        margin-bottom: 2rem !important;
        padding: 1rem 0 !important;
    }
    
    section:last-child {
        margin-bottom: 1rem !important;
    }
    
    /* Основной контент */
    main {
        padding-top: 45px;
    }
    
    /* Специфичные элементы главной страницы */
    .hero-cta {
        margin-top: 2rem !important;
    }
    
    .supported-versions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .supported-versions img {
        width: 100px !important;
        max-width: 100px !important;
    }
    
    /* Панель управления */
    .sidebar-content {
        margin-left: 0 !important;
        padding-top: 60px !important;
    }
    
    /* Статистические карточки */
    .stat-card {
        padding: 1.5rem !important;
    }
    
    /* Тикеты */
    .ticket-card {
        padding: 1rem !important;
    }
    
    /* Футер */
    footer .grid {
        gap: 2rem !important;
    }
    
    footer .text-sm {
        font-size: 0.875rem !important;
    }
    
    /* Боковая панель в админке */
    .w-96 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Flex направление для админ панели */
    .flex.h-screen {
        flex-direction: column !important;
        height: auto !important;
    }
    
    /* Z-index фиксы */
    .z-50 {
        z-index: 9999 !important;
    }
}

/* iPhone 14 и подобные устройства */
@media (max-width: 430px) and (max-height: 932px) {
    .top_nav {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .hero-section {
        min-height: calc(100vh - 40px) !important;
        padding-top: 50px !important;
    }
    
    main {
        padding-top: 40px !important;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    /* Еще меньшие размеры текста */
    .text-6xl,
    .text-\[52px\] {
        font-size: 1.375rem !important;
    }
    
    .text-5xl,
    .text-\[46px\] {
        font-size: 1.25rem !important;
    }
    
    .text-4xl,
    .text-\[42px\] {
        font-size: 1.125rem !important;
    }
    
    .text-3xl,
    .text-\[36px\] {
        font-size: 1rem !important;
    }
    
    /* Минимальные отступы */
    .container {
        padding: 0 0.75rem;
    }
    
    .minecraft-card {
        padding: 0.875rem;
        border-radius: 16px;
    }
    
    /* Кнопки еще меньше */
    .minecraft-btn-primary,
    .minecraft-btn-secondary {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        height: 36px;
    }
    
    /* Логотип на маленьких экранах */
    .top_nav img {
        height: 24px !important;
        width: 24px !important;
    }
    
    /* Основной контент с учетом header */
    main {
        padding-top: 45px !important;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh !important;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
}

/* Фиксы для iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* Фикс высоты viewport */
    .h-screen {
        height: -webkit-fill-available !important;
    }
    
    /* Фикс для position: fixed */
    .fixed {
        position: -webkit-sticky;
        position: sticky;
    }
    
    /* Фикс для навигации на iOS */
    .top_nav {
        height: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
    }
}

/* Доступность - увеличенные области нажатия */
@media (hover: none) and (pointer: coarse) {
    button,
    a,
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    .minecraft-btn-primary,
    .minecraft-btn-secondary {
        min-height: 48px;
    }
}

/* Анимации на мобильных - упрощенные */
@media (max-width: 768px) {
    /* Отключаем сложные анимации */
    .floating-animation,
    .animate-blob,
    .animate-float-1,
    .animate-float-2,
    .animate-glitch-1,
    .animate-glitch-2 {
        animation: none !important;
    }
    
    /* Упрощенные переходы */
    * {
        transition-duration: 0.2s !important;
    }
}

/* Скроллбар на мобильных */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}

/* Print стили */
@media print {
    .no-print,
    nav,
    footer,
    .floating-animation {
        display: none !important;
    }
}