/* ==================== СТРАНИЦА ҰБТ-ҒА ДАЙЫНДЫҚ ==================== */
.ubt-page {
    min-height: 100vh;
}

.ubt-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.ubt-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.ubt-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.ubt-description {
    text-align: center;
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 50px;
}

/* ==================== СЕТКА КАРТОЧЕК ==================== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

/* ==================== КАРТОЧКА ==================== */
.step-item {
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cardPopIn 0.6s ease forwards;
    opacity: 0;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }
.step-item:nth-child(5) { animation-delay: 0.5s; }
.step-item:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes cardPopIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Прогресс (круг сверху) */
.step-progress {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.step-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.step-item:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.step-inner-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-line {
    display: none;
}

/* Карточка контента */
.step-content {
    flex: 1;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    padding-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.step-item:hover .step-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

/* Заголовок карточки */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.step-badge i {
    font-size: 0.9rem;
}

.step-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

/* Название */
.step-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Метаинформация */
.step-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.step-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.step-info i {
    color: #667eea;
}

/* Кнопки действий */
.step-actions {
    display: flex;
    gap: 12px;
}

.step-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.step-btn:hover::before {
    width: 300px;
    height: 300px;
}

.step-btn i,
.step-btn span {
    position: relative;
    z-index: 1;
}

.step-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.step-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.step-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ==================== НЕТ ФАЙЛОВ ==================== */
.steps-container .no-files {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
    background: white;
    border-radius: 25px;
}

.steps-container .no-files i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #667eea;
}

.steps-container .no-files p {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.steps-container .no-files-hint {
    font-size: 1rem;
    color: #bbb;
}

.steps-container .no-files code {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1024px) {
    .ubt-title {
        font-size: 3rem;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .ubt-section {
        padding: 40px 15px;
    }
    
    .ubt-title {
        font-size: 2.5rem;
    }
    
    .ubt-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step-circle {
        width: 60px;
        height: 60px;
    }
    
    .step-inner-circle {
        width: 48px;
        height: 48px;
    }
    
    .step-number {
        font-size: 1.5rem;
    }
    
    .step-card {
        padding: 25px;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .ubt-title {
        font-size: 2rem;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
    }
    
    .step-inner-circle {
        width: 40px;
        height: 40px;
    }
    
    .step-number {
        font-size: 1.2rem;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-actions {
        flex-direction: column;
    }
}

