:root {
    --primary: #0058a3;
    --primary-light: #1b7fd4;
    --dark: #041524;
    --accent: #f5b335;
    --bg-gradient: linear-gradient(135deg, #021b38 0%, #03436d 50%, #0396a6 100%);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #020b16;
    color: #111827;
}

/* Навбар */

.glass-nav {
    background: rgba(3, 24, 48, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.navbar .nav-link {
    position: relative;
    color: #e5e7eb !important;
    margin-left: 0.75rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease-out;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

/* Hero */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1482192596544-9eb780fc7f66?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.7), transparent 55%),
                radial-gradient(circle at bottom, rgba(14, 165, 233, 0.6), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #e5e7eb;
    opacity: 0.7;
    animation: scroll-bounce 1.5s infinite;
}

/* Карточки событий */

.section-gradient {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.1), transparent 60%), #020617;
    color: #e5e7eb;
}

.section-title {
    color: #f9fafb;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.event-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.9));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.event-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.event-card:hover .card-overlay {
    opacity: 1;
}

.event-badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-date {
    font-weight: 600;
    color: #e5e7eb;
}

/* Общие карточки */

.content-card {
    border-radius: 18px;
    padding: 1.75rem;
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.65);
}

.info-card {
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
}

/* Статистика / параллакс */

.stats-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.stat-item {
    min-width: 140px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* CTA */

.cta-section {
    background: var(--bg-gradient);
}

/* Page header */

.page-header {
    padding-top: 7rem;
    padding-bottom: 3rem;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 65%), #020617;
    color: #f9fafb;
}

/* Анимации */

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 1.1s ease-out forwards;
}

.animate-bounce {
    animation: bounce-soft 1.5s infinite;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
}

/* Glass эффекты */

.glass-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Кнопка свечения */

.glow-btn {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.3);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.glow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
}

/* Footer */

.footer {
    background: #020617;
    color: #9ca3af;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Адаптивность */

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding-top: 5rem;
    }

    .stats-grid {
        flex-direction: column;
    }
}
