/* Стили для страницы государственной пошлины */

/* Основной контент */
.content.is-size-5 {
    line-height: 1.7;
}

.notification.is-info {
    --bulma-notification-color-l: var(--bulma-info-s);

}

/* Таблица пошлин */
.table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.section {
    --bulma-section-padding: 0.5rem 0.5rem;

}

.is-flex.is-align-items-center {
    width: 100% !important;
}

.duty-table {
    background-color: var(--surface);
    color: var(--text);
}

.duty-table thead th {
    background-color: var(--primary) !important;
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 1.25rem 0.75rem;
}

.duty-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.duty-table tbody tr:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.duty-table tbody tr:hover td {
    color: white !important;
    border-color: var(--primary);
}

.duty-table tbody tr:hover .tag {
    background-color: white !important;
    color: var(--primary) !important;
}

/* Теги с суммами */
.tag.is-large {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

/* Шаги оплаты */
.steps {
    position: relative;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3rem;
    bottom: -2rem;
    width: 2px;
    background-color: var(--primary);
    opacity: 0.3;
}

.step-marker {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    z-index: 1;
}

.step-details {
    flex-grow: 1;
    padding-top: 0.25rem;
}

.step-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text);
    line-height: 1.6;
}

/* Код платежа */
.payment-code {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
    word-break: break-all;
    transition: all 0.3s ease;
}

.payment-code:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Уведомления */
.notification.is-info {
    background-color: rgba(26, 62, 114, 0.05);
    border: 1px solid var(--primary);
    border-radius: 12px;
}

.notification.is-warning.is-light {
    background-color: rgba(255, 193, 7, 0.05);
    border: 1px solid var(--warning);
    border-radius: 12px;
}

.notification.is-warning.is-light .title {
    color: var(--warning);
}

.notification.is-warning.is-light ul {
    list-style: none;
    padding-left: 0;
}

.notification.is-warning.is-light li {
    margin-bottom: 0.75rem;
}

/* Информационные карточки */
.info-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 12px;
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

/* Утилиты */
.h-100 {
    height: 100%;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .icon.is-large, 
    .icon.has-text-warning {
        display: none;
    }

    .content.is-size-5 {
        font-size: 1.1rem !important;
    }

    .step-item {
        margin-bottom: 1.5rem;
    }

    .step-item:not(:last-child)::after {
        left: 1.125rem;
        top: 2.5rem;
        bottom: -1.5rem;
    }

    .step-marker {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
        margin-right: 1rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .payment-code {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .tag.is-large {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }

    .columns.is-multiline .column {
        margin-bottom: 1rem;
    }

    .content ul {
        list-style: disc outside;
        margin-inline-start: 0em;
        margin-top: 1em;
    }
}

@media (max-width: 480px) {
    .subtitle.is-4 {
        font-size: 1rem;
    }

    .title.is-2 {
        font-size: 1rem;
    }

    .title.is-4 {
        font-size: 0.8rem;
        margin-top: 0 !important;
    }

    .content.is-size-5 {
        line-height: 0;
    }
.card-content.has-text-centered p{
    line-height: 1 !important;
}

    .has-text-weight-medium {
        font-size: 1rem;
        line-height: 1.3;
    }

    .has-text-centered {
        vertical-align: middle !important;
    }

    .step-item {

        align-items: flex-start;
    }


    .step-item:not(:last-child)::after {
        left: 1.125rem;
        top: 2.25rem;
        bottom: -1.5rem;
    }

    .step-marker {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 1rem;
        margin-right: 1rem;

        margin-top: 0.5rem;
    }

    .step-details {
        padding-top: 0;
    }

    .notification .is-flex {
        flex-direction: column;
        text-align: center;
    }

    .notification .icon {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .title.is-3 {
        font-size: 1rem;
    }
}

/* Гарантии читаемости */
.duty-table td:first-child,
.step-description,
.info-card p {
    word-break: break-word;
    hyphens: auto;
}

/* Touch-устройства */
@media (hover: none) {
    .duty-table tbody tr:hover {
        transform: none;
    }

    .info-card:hover {
        transform: none;
    }

    .payment-code:hover {
        background-color: var(--surface);
        color: var(--text);
        border-color: var(--border);
    }
}

/* Дополнительные CSS переменные */
:root {
    --warning: #ffc107;
    --success: #28a745;
    --info: #17a2b8;
}

[data-theme="dark"] {
    --warning: #ffd60a;
    --success: #34c759;
    --info: #64d2ff;
}

/* Иконки в уведомлениях */
.notification .icon {
    flex-shrink: 0;
}

/* Улучшенная прокрутка */
.state-duty-page {
    -webkit-overflow-scrolling: touch;
}

/* Полосы для таблицы */
.table.is-striped tbody tr:nth-child(even) {
    background-color: var(--surface);
}

.table.is-striped tbody tr:nth-child(odd) {
    background-color: var(--background);
}