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

:root {
    --imio-blue: #1A365D;
    --imio-blue-light: #2D5A8C;
    --imio-blue-lighter: #3D7BBD;
    --imio-orange: #E67E22;
    --imio-orange-light: #F39C12;
    --dark-bg: #F5F7FA;
    --glass-bg: rgba(26, 54, 93, 0.05);
    --glass-border: rgba(26, 54, 93, 0.15);
    --text-light: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #7F8C8D;
    --gradient-primary: linear-gradient(135deg, var(--imio-blue), var(--imio-blue-light));
    --gradient-accent: linear-gradient(45deg, var(--imio-blue), var(--imio-orange));
    --shadow-sm: 0 2px 8px rgba(26, 54, 93, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 54, 93, 0.12);
    --shadow-lg: 0 8px 32px rgba(26, 54, 93, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #F5F7FA 0%, #EEF2F5 50%, #E8ECEF 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Общие компоненты */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Анимированные частицы */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Навигация */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.75rem 0;
    background: var(--imio-blue);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--imio-orange);
    transform: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--imio-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    color: var(--accent-gold);
}

.dropdown-item.active {
    color: var(--accent-gold);
}

.dropdown-item.disabled {
    color: #64748b;
    cursor: not-allowed;
}

/* Основной контент */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* Hero секция */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-purple), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

/* Статистические карточки */
.stats {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Модули процессов */
.processes {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.process-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.process-card.active {
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.process-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.process-card:not(.disabled):hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.process-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    transform: rotate(10deg) scale(1.1);
}

.process-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.process-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.process-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-coming {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Футер */
.main-footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .stats-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility классы */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Компактные стили для дизайна */
.card-compact {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFD 100%);
    border: 1px solid #E8EEF5;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card-compact:hover {
    border-color: var(--imio-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-compact {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-compact:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stats-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFD 100%);
    border: 1.5px solid #E8EEF5;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.stat-card:hover {
    border-color: var(--imio-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.75rem 0 0.5rem 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.section-compact {
    padding: 1.5rem 0;
}

.container-max {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Улучшенные стили для элементов */
.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--imio-blue);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table thead {
    background: var(--gradient-primary);
    color: white;
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #E8EEF5;
}

table tbody tr:hover {
    background: #F9FBFD;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Формы */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E8EEF5;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--imio-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

/* Модальные и карточки с контентом */
.content-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.content-card h2 {
    color: var(--imio-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-card h3 {
    color: var(--imio-blue-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Значки статуса */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, #D4EDDA, #C3E6CB);
    color: #155724;
    border: 1px solid #A8D8A8;
}

.badge-warning {
    background: linear-gradient(135deg, #FFF3CD, #FDE69A);
    color: #856404;
    border: 1px solid #FFEAA7;
}

.badge-error {
    background: linear-gradient(135deg, #F8D7DA, #F5C6CB);
    color: #721C24;
    border: 1px solid #F1B0B7;
}

.badge-info {
    background: linear-gradient(135deg, #D1ECF1, #BEE5EB);
    color: #0C5460;
    border: 1px solid #ABDDE5;
}