/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(120deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    padding-bottom: 60px;
}

/* Навигация */
nav {
    background: linear-gradient(90deg, #2c3e50, #4a6491);
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

nav a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

nav a i {
    font-size: 1.2rem;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Заголовки */
h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

h1 i {
    color: #3498db;
}

.subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    font-weight: 300;
}

h2 {
    color: #3498db;
    margin: 2rem 0 1rem;
    font-size: 2rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Карточки */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.card h3 i {
    color: #e74c3c;
}

/* Статус */
.status {
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

.status.active {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

/* Инфо-бокс */
.info-box {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-left: 5px solid #3498db;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.3);
    background: linear-gradient(90deg, #2980b9, #1f6398);
}

/* Архитектура */
.architecture {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #bdc3c7;
}

.arch-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-width: 120px;
}

.arch-step i {
    font-size: 2.5rem;
    color: #3498db;
}

.arch-step span {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.fa-arrow-right {
    color: #7f8c8d;
    font-size: 1.5rem;
}

/* Списки */
.goals, .steps {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.goals li, .steps li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-left: 0.5rem;
}

.goals li i {
    color: #27ae60;
    margin-right: 10px;
}

.steps {
    list-style-type: decimal;
    background: #f8f9fa;
    padding: 2rem 2rem 2rem 3rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

/* Футер */
footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    color: #7f8c8d;
    border-top: 1px solid #e8e8e8;
    background: white;
}

footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

footer a:hover {
    text-decoration: underline;
}

/* Код */
code {
    background: #2d3436;
    color: #dfe6e9;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Контент */
.content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    margin-top: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .architecture {
        flex-direction: column;
    }
    
    .fa-arrow-right {
        transform: rotate(90deg);
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Стили для страницы статуса */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.status-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-top: 5px solid;
}

.status-card.green { border-color: #27ae60; }
.status-card.blue { border-color: #3498db; }
.status-card.orange { border-color: #f39c12; }
.status-card.purple { border-color: #9b59b6; }

.status-card h3 {
    justify-content: center;
    margin-bottom: 1rem;
}

.status-text {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.status-detail {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Мониторинг */
.monitoring {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.metric {
    display: grid;
    grid-template-columns: 200px 1fr 60px;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric label {
    font-weight: 600;
    color: #2c3e50;
}

.progress-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Обновления */
.updates {
    list-style: none;
    padding: 0;
}

.updates li {
    padding: 1rem;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.updates li i {
    color: #3498db;
}

.updates li .fa-check { color: #27ae60; }
.updates li .fa-spinner { 
    color: #f39c12;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
