/* ========== ОБЩИЕ СТИЛИ (переменные, сброс, фон, навигация, статистика, футер) ========== */

:root {
    --blue: #1a8fff;
    --blue-dark: #0c6fd6;
    --blue-light: #5db8ff;
    --blue-glow: rgba(26,143,255,0.4);
    --dark: #06101e;
    --dark2: #0b1e36;
    --white: #ffffff;
    --gray: #c8daf0;
    --accent: #00d4ff;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}

/* ======== ФОН (HERO-BG) ======== */
.hero-bg {
    background: linear-gradient(175deg, #0a1f40 0%, #0d3166 35%, #1a5ca8 65%, #0a2e5c 100%);
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
            radial-gradient(ellipse 60% 40% at 50% 30%, rgba(100,180,255,0.18) 0%, transparent 70%),
            radial-gradient(ellipse 40% 60% at 80% 60%, rgba(0,212,255,0.12) 0%, transparent 70%),
            radial-gradient(ellipse 30% 30% at 20% 70%, rgba(26,143,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Clouds */
.clouds {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.cloud {
    position: absolute;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    filter: blur(40px);
}
.c1 { width: 500px; height: 200px; top: 50%; left: -100px; }
.c2 { width: 600px; height: 250px; top: 55%; right: -150px; }
.c3 { width: 400px; height: 150px; top: 70%; left: 20%; }

/* Stars */
.stars {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.star {
    position: absolute;
    width: 3px; height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}
@keyframes twinkle { from { opacity: 0.2; } to { opacity: 1; } }

/* Floating elements */
.floaters {
    position: absolute; inset: 0; pointer-events: none;
}
.floater {
    position: absolute;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-12px) rotate(5deg); }
}
.floater svg { filter: drop-shadow(0 0 8px var(--blue)); }

/* ======== НАВИГАЦИЯ ======== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    position: relative;
    z-index: 10;
    background: rgba(6,16,30,0.3);
    backdrop-filter: blur(10px);
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.2rem; font-weight: 900; color: var(--blue);
    text-decoration: none; letter-spacing: 0.5px;
}
.logo-icon {
    width: 36px; height: 28px;
}
.nav-links {
    display: flex; align-items: center; gap: 32px;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-light); }
.btn-nav {
    background: var(--blue);
    color: white; border: none;
    padding: 10px 22px; border-radius: 25px;
    font-weight: 700; font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px var(--blue-glow);
}
.btn-nav:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 24px var(--blue-glow); }

/* ======== СТАТИСТИКА ======== */
.stats-bar {
    background: linear-gradient(90deg, #0d2a56 0%, #1a3f7a 50%, #0d2a56 100%);
    border-top: 1px solid rgba(100,180,255,0.15);
    padding: 28px 48px;
}
.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255,255,255,0.06);
    border-radius: 60px;
    border: 1px solid rgba(100,180,255,0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 18px 40px;
    gap: 16px;
    flex-wrap: wrap;
}
.stat-item {
    display: flex; align-items: center; gap: 14px;
    text-align: left;
}
.stat-icon {
    width: 42px; height: 42px;
    background: rgba(26,143,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; color: var(--blue-light); }
.stat-num {
    font-size: 1.5rem; font-weight: 900;
    line-height: 1;
    color: white;
}
.stat-label {
    font-size: 0.82rem; color: var(--gray); font-weight: 600;
}
.stat-divider {
    width: 1px; height: 48px;
    background: rgba(100,180,255,0.2);
}

/* ======== ФУТЕР ======== */
footer {
    background: #030d1e;
    padding: 24px 48px;
    border-top: 1px solid rgba(26,143,255,0.1);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-nav {
    display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
    justify-content: center; list-style: none;
}
.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--blue-light); }
.footer-nav .active-pill {
    background: var(--blue);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
}
.social-links {
    display: flex; gap: 16px; align-items: center;
}
.social-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s, transform 0.2s;
    display: flex;
}
.social-links a:hover { color: var(--blue-light); transform: translateY(-2px); }
.social-links svg { width: 22px; height: 22px; }
.copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.footer-bottom {
    display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
    justify-content: center;
}

/* ======== АДАПТИВНОСТЬ ======== */
@media (max-width: 768px) {
    nav { padding: 14px 20px; }
    .nav-links { display: none; }
    .stats-inner { flex-direction: column; gap: 20px; border-radius: 24px; padding: 24px; }
    .stat-divider { width: 80%; height: 1px; }
    .stats-bar { padding: 20px 16px; }
    footer { padding: 20px 16px; }
}