/* Стили для страницы порядка аттестации */

/* Основной контент */
.content.is-size-5 {
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.section {
    --bulma-section-padding: 0.5rem 0.5rem;

}

/* Карточки шагов */
.step-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.step-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

.step-content {
    min-height: 100%;
}

/* Карточки документов */
.document-card {
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary);
    border-radius: 12px;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.document-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Списки */
.step-content ul,
.step-content ol {
    margin-left: 1rem;
}

.step-content li {
    margin-bottom: 0.5rem;
}

/* Блок загрузки */
.download-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.file-info {
    font-size: 0.9rem;
}

/* Важные блоки */
.important-content .icon {
    flex-shrink: 0;
}

/* Утилиты высоты */
.h-100 {
    height: 100%;
}

.is-flex-grow-1 {
    flex-grow: 1;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {


    .content.is-size-5 {
        font-size: 1.1rem !important;
    }

    .step-card {
        padding: 1.25rem !important;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .step-content {
        margin-left: 1rem !important;
    }

    .download-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .file-info {
        margin-left: 0 !important;
    }

    .columns.is-multiline .column {
        margin-bottom: 1rem;
    }

    .document-icon {
        display: none;
    }
    .icon.has-text-warning.mr-3{
        display: none;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .subtitle.is-4 {
        font-size: 1rem;
    }

    .title.is-2 {
        font-size: 1.2rem;
        text-align: center;
    }

    .box.step-card.mb-5 p,
    .box.step-card.mb-5 li {
        font-size: 0.8rem !important;

    }

    .download-box .button {
        min-height: 44px;
        width: 100%;
        display: inline-flex;
        align-items: center;
    }

    .title.is-3 {
        font-size: 1rem;
    }

    .title.is-4 {
        font-size: 1rem;
    }

    .mb-2 {
        margin-bottom: 0rem !important;
    }

    .card-content li {
        font-size: 0.8rem !important;
    }

    .step-card {
        padding: 1rem !important;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    .step-content {
        margin-left: 0.75rem !important;
        
    }

    .document-card .is-flex {
        flex-direction: column;
        text-align: center;
    }

    .card-content {
        background-color: var(--bulma-card-content-background-color);
        padding: 0 0 1rem 0;
    }
    .important-content p{
        font-size: 0.8rem;
    }
}

/* Гарантии читаемости */
.step-content p,
.step-content li,
.document-card li,
.important-content p {
    word-break: break-word;
    hyphens: auto;
}

/* Touch-устройства */
@media (hover: none) {

    .step-card:hover,
    .document-card:hover {
        transform: none;
    }

    .step-card:hover .step-number {
        transform: none;
    }

    .download-box .button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Улучшенная прокрутка */
.procedure-page {
    -webkit-overflow-scrolling: touch;
}

/* Иконки */
.icon {
    transition: transform 0.3s ease;
}

.button:hover .icon {
    transform: translateY(-1px);
}

/* Уведомления */
.notification.is-info.is-light {
    background-color: rgba(26, 62, 114, 0.1);
}

.notification.is-warning.is-light {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--warning);
}

/* Дополнительные CSS переменные */
:root {
    --warning: #ffc107;
}

[data-theme="dark"] {
    --warning: #ffd60a;
}