* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: #0a0e27;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-y: auto;
}

/* ==================== STARS ANIMATION ==================== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Индивидуальные звёзды */
.star {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 6px currentColor;
}

/* Анимация появления - плавное появление и исчезновение */
@keyframes starAppear {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Вспомогательные варианты размеров */
.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
}

.star.large {
    width: 3px;
    height: 3px;
}

/* ==================== BLUR EFFECTS ==================== */
.blurs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(200, 100, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 100, 200, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(150, 100, 255, 0.04) 0%, transparent 60%);
    filter: blur(80px);
    animation: blur-shift 20s ease-in-out infinite;
}

@keyframes blur-shift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 30%, rgba(200, 100, 255, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(255, 100, 200, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(150, 100, 255, 0.04) 0%, transparent 60%);
    }
    50% {
        background: 
            radial-gradient(circle at 80% 20%, rgba(200, 100, 255, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 30% 80%, rgba(255, 100, 200, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(150, 100, 255, 0.04) 0%, transparent 60%);
    }
}

/* ==================== HEADER ==================== */
.header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9), rgba(20, 25, 50, 0.9));
    border-bottom: 2px solid rgba(200, 100, 255, 0.3);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(200, 100, 255, 0.3);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.5)); }
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(224, 224, 224, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ==================== CONTAINER ==================== */
.container {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ==================== CARDS GRID ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: rgba(30, 35, 60, 0.6);
    border: 1px solid rgba(200, 100, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 100, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    border-color: rgba(200, 100, 255, 0.5);
    background: rgba(30, 35, 60, 0.8);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 100, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.card-header h2 {
    font-size: 1.5rem;
    color: #a78bfa;
    flex: 1;
    line-height: 1.3;
}

.card-badge {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: #0a0e27;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

.card-content {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-content p {
    color: rgba(224, 224, 224, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
    margin: 15px 0;
}

.info-list li {
    color: rgba(224, 224, 224, 0.7);
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.5;
}

.info-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ec4899;
    font-weight: bold;
}

.info-list strong {
    color: #a78bfa;
}

/* ==================== CARD LINKS ==================== */
.card-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 100, 255, 0.1);
    position: relative;
    z-index: 2;
}

.link-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(236, 72, 153, 0.2));
    color: #a78bfa;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(200, 100, 255, 0.3);
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(236, 72, 153, 0.4));
    border-color: rgba(200, 100, 255, 0.6);
    color: #ec4899;
    transform: translateX(5px);
}

/* ==================== RESOURCES SECTION ==================== */
.resources-section {
    margin-top: 80px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    font-weight: 700;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.resource-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(30, 35, 60, 0.6);
    border: 1px solid rgba(200, 100, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #a78bfa;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 140px;
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.resource-link:hover {
    border-color: rgba(200, 100, 255, 0.5);
    background: rgba(30, 35, 60, 0.8);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(200, 100, 255, 0.15);
}

.resource-link:hover .resource-icon {
    transform: scale(1.2);
}

.resource-link span:last-child {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==================== FOOTER ==================== */
.footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(200, 100, 255, 0.2);
    background: rgba(10, 14, 39, 0.8);
    margin-top: 80px;
}

.footer p {
    color: rgba(224, 224, 224, 0.6);
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-info {
    font-size: 0.85rem !important;
    color: rgba(224, 224, 224, 0.4) !important;
    margin-top: 10px !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 15px 25px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .card-header {
        flex-direction: column;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}
