/* ============================================
   БАЗА
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafbff;
    color: #0b0f1c;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   ШАПКА
   ============================================ */
header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #0b0f1c 0%, #2563eb 60%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.4px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}

nav ul a {
    color: #1e293b;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

nav ul a:hover {
    background: #eef2ff;
    color: #2563eb;
}

/* ============================================
   ГЛАВНЫЙ ЗАГОЛОВОК (HERO)
   ============================================ */
.hero {
    text-align: center;
    padding: 60px 0 30px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, #0b0f1c 20%, #2563eb 50%, #7c3aed 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 19px;
    color: #475569;
    max-width: 640px;
    margin: 14px auto 0;
}

/* ============================================
   СТАТИСТИКА (горизонтальная полоса)
   ============================================ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    margin: 20px 0 30px;
}

.stats-bar .stat {
    text-align: center;
}

.stats-bar .stat .number {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: #0b0f1c;
}

.stats-bar .stat .label {
    font-size: 14px;
    color: #64748b;
}

/* ============================================
   КАРТОЧКИ (универсальные)
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 36px 0;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #2563eb30;
    box-shadow: 0 16px 48px -12px rgba(37, 99, 235, 0.12);
}

.card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ============================================
   ТАЙМЛАЙН (сжатый, как на главной)
   ============================================ */
.timeline-compact {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 28px 24px;
    margin: 36px 0;
}

.timeline-compact h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: 0.2s;
}

.timeline-item:hover {
    background: #f1f5f9;
}

.timeline-item .icon {
    font-size: 24px;
}

.timeline-item .info {
    flex: 1;
}

.timeline-item .info strong {
    font-weight: 600;
}

.timeline-item .info .power {
    font-size: 14px;
    color: #64748b;
}

.timeline-item .year {
    background: #e9edf3;
    padding: 2px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    display: inline-block;
    background: #0b0f1c;
    color: #fff;
    padding: 12px 34px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 15, 28, 0.10);
}

.btn-gradient {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.btn-gradient:hover {
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

/* ============================================
   АВТОРИЗАЦИЯ
   ============================================ */
.auth-container {
    max-width: 480px;
    margin: 50px auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 44px 38px;
}

.auth-container h1 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.auth-container p {
    text-align: center;
    color: #64748b;
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1e293b;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    font-size: 15px;
    background: #fafbff;
    transition: 0.2s;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: #2563eb;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.06);
}

.auth-link {
    text-align: center;
    margin-top: 18px;
}

.auth-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

/* ============================================
   ФУТЕР
   ============================================ */
footer {
    background: #fafbff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    padding: 28px 0;
    margin-top: 60px;
    color: #94a3b8;
    font-size: 13px;
}

footer p {
    margin: 4px 0;
}

/* ============================================
   УТОЧНЯЮЩИЙ БЛОК (серый)
   ============================================ */
.legal-note {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 20px 28px;
    background: #f1f4f9;
    border-radius: 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 12px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 34px;
    }

    .stats-bar {
        gap: 24px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-wrap: wrap;
    }

    .timeline-item .year {
        margin-left: auto;
    }

    .auth-container {
        padding: 28px 20px;
    }
}