/* TARIFFS & PRICE PAGE STYLES (NOTARIATUS DESIGN SYSTEM) */

.tariffs-page {
    padding: 24px 0 48px;
}

.tariffs-hero {
    background: #ffffff;
    border: 1px solid var(--portal-border, #e5eaf2);
    border-radius: var(--portal-card-radius, 20px);
    padding: 32px 36px 28px;
    margin-bottom: 24px;
    box-shadow: var(--portal-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.04));
}

.tariffs-hero__header {
    margin-bottom: 20px;
}

.tariffs-hero__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--portal-dark, #0f172a);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.tariffs-hero__subtitle {
    font-size: 15px;
    color: var(--portal-gray, #64748b);
    margin: 0;
    line-height: 1.55;
    max-width: 880px;
}

.tariffs-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 22px;
}

.tariffs-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--portal-bg-light, #f8fafc);
    border: 1px solid var(--portal-border, #e5eaf2);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--portal-slate, #1e293b);
}

.tariffs-stat-chip svg {
    color: var(--portal-primary, #b21b3c);
    flex-shrink: 0;
}

.tariffs-stat-chip b {
    color: var(--portal-dark, #0f172a);
}

/* LIVE SEARCH FILTER */
.tariffs-filter-box {
    position: relative;
    margin-top: 10px;
}

.tariffs-filter-input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 48px;
    font-size: 15px;
    color: var(--portal-dark, #0f172a);
    background: var(--portal-bg-light, #f8fafc);
    border: 1px solid var(--portal-border, #e5eaf2);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tariffs-filter-input:focus {
    background: #ffffff;
    border-color: var(--portal-primary, #b21b3c);
    box-shadow: 0 0 0 3px rgba(178, 27, 60, 0.12);
}

.tariffs-filter-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--portal-gray-light, #94a3b8);
    pointer-events: none;
}

.tariffs-filter-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.tariffs-filter-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* TARIFFS MODERN TABLE */
.tariffs-section {
    margin-bottom: 36px;
}

.tariffs-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--portal-dark, #0f172a);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.tariffs-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--portal-border, #e5eaf2);
    border-radius: var(--portal-card-radius, 16px);
    overflow: hidden;
    box-shadow: var(--portal-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.04));
}

.tariffs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.tariffs-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.tariffs-table th.col-service {
    width: 48%;
}

.tariffs-table th.col-fed {
    width: 24%;
}

.tariffs-table th.col-reg {
    width: 28%;
}

.tariffs-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #334155;
    line-height: 1.5;
}

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

.tariffs-table tbody tr {
    transition: background-color 0.15s ease;
}

.tariffs-table tbody tr:hover {
    background-color: #f8fafc;
}

.tariffs-table .tariff-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
}

.tariffs-table .tariff-fed-val {
    font-size: 13.5px;
    color: #2563eb;
    font-weight: 600;
    word-break: break-word;
}

.tariffs-table .tariff-reg-val {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

.tariffs-table .tariff-reg-text {
    font-size: 13.5px;
    color: #334155;
    font-weight: 500;
    line-height: 1.45;
}

.tariffs-table .tariff-reg-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.tariffs-table .tariff-scale-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 8px;
    transition: all 0.15s ease;
}

.tariffs-table .tariff-scale-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.tariffs-table .tariff-scale-toggle svg {
    transition: transform 0.2s ease;
}

.tariffs-table .tariff-scale-toggle.is-open svg {
    transform: rotate(180deg);
}

.tariffs-table .tariff-scale-details {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.tariffs-table .tariff-scale-details.is-open {
    display: block;
    animation: tariffFadeIn 0.2s ease-in-out;
}

@keyframes tariffFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.tariffs-table .tariff-scale-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tariffs-table .tariff-scale-list--direct {
    gap: 5px;
}

.tariffs-table .tariff-scale-item {
    font-size: 12.5px;
    line-height: 1.45;
    color: #334155;
    position: relative;
    padding-left: 14px;
    word-break: break-word;
}

.tariffs-table .tariff-scale-item::before {
    content: "•";
    color: #94a3b8;
    font-weight: bold;
    position: absolute;
    left: 2px;
    top: 0;
}

/* REMOTE ACTIONS BADGE IN TABLE */
.tariffs-table .tariff-remote-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* BENEFITS & EXEMPTIONS BLOCK (ЛЬГОТЫ) */
.tariffs-benefits-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--portal-card-radius, 20px);
    padding: 26px 30px;
    margin-bottom: 32px;
}

.tariffs-benefits-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tariffs-benefits-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tariffs-benefits-title {
    font-size: 19px;
    font-weight: 800;
    color: #065f46;
    margin: 0;
}

.tariffs-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.tariffs-benefit-item {
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #166534;
}

.tariffs-benefit-item strong {
    color: #065f46;
    display: block;
    margin-bottom: 4px;
}

/* CTA TO REGION NOTARIES */
.tariffs-cta-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--portal-card-radius, 20px);
    padding: 32px 36px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tariffs-cta-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.tariffs-cta-desc {
    font-size: 14.5px;
    color: #94a3b8;
    margin: 0;
}

.tariffs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--portal-primary, #b21b3c);
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(178, 27, 60, 0.3);
}

.tariffs-cta-btn:hover {
    background: var(--portal-primary-hover, #961330);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(178, 27, 60, 0.4);
}

/* EMPTY RESULTS FILTER */
.tariffs-empty-filter {
    padding: 36px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--portal-border, #e5eaf2);
    border-radius: 16px;
    font-size: 15px;
    color: var(--portal-gray, #64748b);
    display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tariffs-hero {
        padding: 22px 18px 20px;
        border-radius: 16px;
    }
    .tariffs-hero__title {
        font-size: 22px;
    }
    .tariffs-hero__subtitle {
        font-size: 13.5px;
    }
    .tariffs-table, 
    .tariffs-table thead, 
    .tariffs-table tbody, 
    .tariffs-table th, 
    .tariffs-table td, 
    .tariffs-table tr {
        display: block;
    }

    .tariffs-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .tariffs-table tr {
        border-bottom: 2px solid #e2e8f0;
        padding: 16px 14px;
    }

    .tariffs-table tr:last-child {
        border-bottom: none;
    }

    .tariffs-table td {
        border: none;
        padding: 6px 0;
        position: relative;
    }

    .tariffs-table td.col-service {
        padding-bottom: 10px;
    }

    .tariffs-table td.col-fed,
    .tariffs-table td.col-reg {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding-top: 8px;
        border-top: 1px dashed #f1f5f9;
    }

    .tariffs-table td.col-fed::before {
        content: "Госпошлина:";
        font-weight: 500;
        color: #64748b;
        font-size: 13px;
    }

    .tariffs-table td.col-reg::before {
        content: "Рег. тариф:";
        font-weight: 500;
        color: #64748b;
        font-size: 13px;
    }

    .tariffs-table .tariff-reg-wrapper {
        align-items: flex-end;
    }

    .tariffs-cta-card {
        padding: 24px 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    .tariffs-cta-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}
