* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: #0a1128;
    color: #e2e8f0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.gradient-bg {
    background: linear-gradient(135deg, #0a1128 0%, #1e2b5e 30%, #1e3a8a 70%, #0a1128 100%);
    background-attachment: fixed;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 10, 255, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

.guide-category {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
}

.guide-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav-active {
    position: relative;
    color: #93c5fd;
}

.nav-active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    bottom: -8px;
    left: 0;
    border-radius: 3px;
}

.pulse-animation {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.game-feature {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.1), transparent);
    border-radius: 0 8px 8px 0;
}

.btn-primary {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.btn-primary:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.glass-effect {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

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

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.gradient-text {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.progress-bar {
    height: 6px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
    transition: width 1s ease;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
}

.guide-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-beginner {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tag-intermediate {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-advanced {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.3) 0%, rgba(59, 130, 246, 0.2) 50%, rgba(96, 165, 250, 0.1) 100%);
    border-radius: 20px;
}

.guide-card-content {
    position: relative;
    z-index: 2;
}

.guide-card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.1;
    font-size: 4rem;
    z-index: 1;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(30, 64, 175, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
}

.mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.open {
    max-height: 400px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-gradient {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .guide-card-icon {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }
    
    .glass-effect {
        padding: 1.5rem !important;
    }
    
    .btn-primary, button:not(#mobile-menu-btn) {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .flex-wrap {
        gap: 0.5rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .p-8 {
        padding: 1.5rem !important;
    }
    
    .p-10 {
        padding: 2rem !important;
    }
    
    .text-4xl, .text-5xl {
        font-size: 1.875rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    .floating {
        margin-top: 2rem;
        animation: none;
    }
    
    .w-64, .w-80 {
        width: 12rem !important;
        height: 12rem !important;
    }
    
    .text-lg {
        font-size: 1rem !important;
    }
    
    .mb-16, .mb-12 {
        margin-bottom: 2rem !important;
    }
    
    .py-10 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-12 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .gap-8 {
        gap: 1.5rem !important;
    }
    
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    .flex-col {
        flex-direction: column;
    }
    
    .space-y-6 > * + * {
        margin-top: 1rem !important;
    }
    
    .space-y-4 > * + * {
        margin-top: 0.75rem !important;
    }
    
    .space-x-4 {
        gap: 0.5rem !important;
    }
    
    .flex.items-center.space-x-3 {
        gap: 0.75rem !important;
    }
    
    .h-56 {
        height: 12rem !important;
    }
    
    .h-64 {
        height: 14rem !important;
    }
    
    .h-72 {
        height: 16rem !important;
    }
    
    .w-40 {
        width: 8rem !important;
        height: 8rem !important;
    }
    
    .nav-link {
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title::after {
        width: 80px;
    }
    
    .flex.items-center.space-x-3 {
        gap: 0.5rem !important;
    }
    
    .text-4xl, .text-5xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.125rem !important;
    }
    
    .h-56 {
        height: 10rem !important;
    }
    
    .h-64 {
        height: 12rem !important;
    }
    
    .w-64 {
        width: 10rem !important;
        height: 10rem !important;
    }
    
    .text-xs {
        font-size: 0.7rem !important;
    }
    
    .p-8 {
        padding: 1.25rem !important;
    }
    
    .gap-8 {
        gap: 1rem !important;
    }
    
    .space-x-3 {
        gap: 0.5rem !important;
    }
    
    .flex.items-center.space-x-3 > * {
        margin-right: 0 !important;
    }
    
    .btn-primary, button:not(#mobile-menu-btn) {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Плавная прокрутка для всех устройств */
html {
    scroll-behavior: smooth;
}

/* Улучшение доступности для мобильных */
@media (max-width: 768px) {
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, select, textarea {
        font-size: 16px;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Стили для страницы тарифов */
.tariff-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.tariff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.tariff-card.vip {
    border-top-color: #10b981;
}

.tariff-card.premium {
    border-top-color: #3b82f6;
}

.tariff-card.vipplus {
    border-top-color: #8b5cf6;
}

.tariff-card.legend {
    border-top-color: #f59e0b;
}

.tariff-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.premium-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.vipplus-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.legend-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.feature-included {
    background: rgba(34, 197, 94, 0.15);
    color: #10b981;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.feature-excluded {
    background: rgba(239, 68, 68, 0.1);
    color: #6b7280;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.feature-partial {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: rgba(15, 23, 42, 0.6);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    color: #e2e8f0;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: #94a3b8;
}

.comparison-table tr:hover {
    background: rgba(30, 64, 175, 0.05);
}

.price-display {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 8px 0 4px;
    color: white;
}

.price-period {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #ef4444;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tariff-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.vip-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.premium-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.05));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.vipplus-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.legend-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Мобильная адаптация для страницы тарифов */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .price-display {
        font-size: 2rem;
    }
    
    .feature-list li {
        padding: 10px 0;
    }
    
    .grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tariff-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}