﻿# ================= НАЛОГООБЛОЖЕНИЕ, УРОВЕНЬ 1 (даётся всем на старте) =================
Early_tax_collection = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
    }
    allow = {
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:regular_salaries
    }
    country_modifier = {
        # --- Ядро: бюрократы платят короне ---
        bureaucrats_estate_min_tax = 0.75
        bureaucrats_estate_target_satisfaction = 0.05
        crown_power_from_population = 0.05
        building_upkeep_multiplier = -0.1
        # --- Ранний аппарат — кормушка сословия ---
        estate_power_from_cabinet = 1.0
        # --- Дебаффы раннего аппарата ---
        country_cabinet_efficiency = -0.25
        court_spending_efficiency = 0.10
        max_trade_subventions = -0.10
        nobles_estate_target_satisfaction = -0.10
        burghers_estate_target_satisfaction = -0.05
        peasants_estate_target_satisfaction = -0.05
    }
    location_modifier = {
        potential_trigger = {
            total_population > 0
        }
        local_bureaucrats_desired_pop_scaled = 0.0025
    }
}

# ================= НАЛОГООБЛОЖЕНИЕ, УРОВЕНЬ 2 =================
regular_salaries = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:Early_tax_collection
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.33
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.01
        }
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:office_sale_banned
    }
    country_modifier = {
        bureaucrats_estate_min_tax = 0.825
        bureaucrats_estate_target_satisfaction = 0.15
        crown_power_from_population = 0.10
        estate_power_from_cabinet = 0.5
        tax_income_efficiency = small_tax_income_efficiency_bonus
        nobles_estate_target_satisfaction = -0.15
        max_trade_subventions = 0.05
        burghers_estate_target_satisfaction = -0.10
        peasants_estate_target_satisfaction = -0.10
        monthly_political_influence = -0.1
    }
    location_modifier = {
        potential_trigger = {
            total_population > 0
        }
        local_bureaucrats_desired_pop_scaled = 0.0075
    }
}

# ================= НАЛОГООБЛОЖЕНИЕ, УРОВЕНЬ 3 =================
office_sale_banned = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:regular_salaries
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.45
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.025
        }
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:limited_tenure
    }
    country_modifier = {
        bureaucrats_estate_min_tax = 0.90
        bureaucrats_estate_target_satisfaction = 0.25
        crown_power_from_population = 0.15
        tax_income_efficiency = medium_tax_income_efficiency_bonus
        country_cabinet_efficiency = 0.25
        court_spending_efficiency = -0.10
        max_trade_subventions = 0.15
        # --- Торговые модификаторы (профессиональный налоговый аппарат) ---
        max_trade_subventions = 0.10
        # --- Сословия ---
        nobles_estate_target_satisfaction = -0.20
        burghers_estate_target_satisfaction = -0.15
        peasants_estate_target_satisfaction = -0.15
        monthly_political_influence = -0.25
    }
    location_modifier = {
        potential_trigger = {
            total_population > 0
        }
        local_bureaucrats_desired_pop_scaled = 0.015
    }
}

# ================= НАЛОГООБЛОЖЕНИЕ, УРОВЕНЬ 4 =================
limited_tenure = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:office_sale_banned
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.60
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.05
        }
    }
    can_revoke = {
        always = no
    }
    country_modifier = {
        bureaucrats_estate_min_tax = 0.975
        bureaucrats_estate_target_satisfaction = 0.35
        crown_power_from_population = 0.20
        estate_power_from_cabinet = -0.5
        tax_income_efficiency = large_tax_income_efficiency_bonus
        country_cabinet_efficiency = 0.50
        court_spending_efficiency = -0.20
        max_trade_subventions = 0.25
        # --- Торговые модификаторы (максимальная эффективность сбора) ---
        max_trade_subventions = 0.25
        # --- Сословия ---
        nobles_estate_target_satisfaction = -0.25
        burghers_estate_target_satisfaction = -0.20
        peasants_estate_target_satisfaction = -0.20
        monthly_political_influence = -0.5
    }
    location_modifier = {
        potential_trigger = {
            total_population > 0
        }
        local_bureaucrats_desired_pop_scaled = 0.025
    }
}

# ================= НАДЗОР, УРОВЕНЬ 1 (даётся всем на старте) =================
kormlenie = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
    }
    allow = {
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:occasional_audits
    }
    country_modifier = {
        # --- Аппарат без надзора: застой и произвол ---
        monthly_complacency = 0.025
        rebel_progress = 0.10
        global_estate_power = 0.25
        court_spending_efficiency = 0.1
        global_peasant_enfranchisment = -0.50
        # --- Бюрократам рай, остальные страдают ---
        bureaucrats_estate_target_satisfaction = 0.25
        nobles_estate_target_satisfaction = -0.05
        burghers_estate_target_satisfaction = -0.025
        peasants_estate_target_satisfaction = -0.025
    }
}

# ================= НАДЗОР, УРОВЕНЬ 2 =================
occasional_audits = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:kormlenie
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.3
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.01
        }
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:permanent_inspectors
    }
    country_modifier = {
        monthly_complacency = 0.005
        global_peasant_enfranchisment = -0.25
        rebel_progress = 0.05
        global_estate_power = 0.10
        stability_cost_efficiency = 0.1
        court_spending_efficiency = -0.1
        bureaucrats_estate_target_satisfaction = 0.1
        nobles_estate_target_satisfaction = -0.075
        burghers_estate_target_satisfaction = -0.05
        peasants_estate_target_satisfaction = -0.05
        monthly_political_influence = -0.1
    }
}

# ================= НАДЗОР, УРОВЕНЬ 3 =================
permanent_inspectors = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:occasional_audits
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.45
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.025
        }
        has_estate_privilege = estate_privilege:regular_salaries
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:institutional_oversight
    }
    country_modifier = {
        monthly_complacency = -0.1
        stability_cost_efficiency = 0.25
        global_peasant_enfranchisment = 0.25
        global_estate_power = -0.25
        court_spending_efficiency = -0.15
        nobles_estate_target_satisfaction = -0.10
        burghers_estate_target_satisfaction = -0.075
        peasants_estate_target_satisfaction = -0.075
        bureaucrats_estate_target_satisfaction = -0.25
        monthly_political_influence = -0.25
    }
}

# ================= НАДЗОР, УРОВЕНЬ 4 =================
institutional_oversight = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:permanent_inspectors
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.6
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.05
        }
        has_estate_privilege = estate_privilege:office_sale_banned
    }
    can_revoke = {
        always = no
    }
    country_modifier = {
        monthly_complacency = -0.2
        rebel_progress = -0.10
        global_peasant_enfranchisment = 0.50
        stability_cost_efficiency = 0.5
        global_estate_power = -0.5
        court_spending_efficiency = -0.25
        bureaucrats_estate_target_satisfaction = -0.50
        nobles_estate_target_satisfaction = -0.125
        burghers_estate_target_satisfaction = -0.10
        peasants_estate_target_satisfaction = -0.10
        monthly_political_influence = -0.5
    }
}

# ================= ДЕЛОПРОИЗВОДСТВО, УРОВЕНЬ 1 (даётся всем на старте) =================
record_keeping_chaotic = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
    }
    allow = {
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:record_keeping_basic
    }
    country_modifier = {
        # --- Государство без записей: медленное и дикое ---
        legislative_efficiency = -0.25
        casus_belli_creation_speed = -0.25
        monthly_prestige = -0.1
        province_integration_speed = -0.25
        annexation_speed_base = -0.25
        monthly_reform_progress_modifier = -0.05
        court_spending_efficiency = 0.10
        max_tariff = -0.10
        # --- Бюрократам рай, остальные страдают ---
        bureaucrats_estate_target_satisfaction = 0.05
        nobles_estate_target_satisfaction = -0.05
        burghers_estate_target_satisfaction = -0.025
        peasants_estate_target_satisfaction = -0.025
    }
}

# ================= ДЕЛОПРОИЗВОДСТВО, УРОВЕНЬ 2 =================
record_keeping_basic = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:record_keeping_chaotic
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.30
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.01
        }
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:record_keeping_systematic
    }
    country_modifier = {
        legislative_efficiency = -0.1
        casus_belli_creation_speed = -0.1
        monthly_prestige = -0.05
        province_integration_speed = -0.10
        annexation_speed_base = -0.10
        max_tariff = 0.075
        monthly_reform_progress_modifier = -0.025
        bureaucrats_estate_target_satisfaction = 0.10
        nobles_estate_target_satisfaction = -0.075
        burghers_estate_target_satisfaction = -0.05
        peasants_estate_target_satisfaction = -0.05
        monthly_political_influence = -0.1
    }
}

# ================= ДЕЛОПРОИЗВОДСТВО, УРОВЕНЬ 3 =================
record_keeping_systematic = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:record_keeping_basic
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.45
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.025
        }
        has_estate_privilege = estate_privilege:regular_salaries
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:record_keeping_comprehensive
    }
    country_modifier = {
        legislative_efficiency = 0.25
        casus_belli_creation_speed = 0.25
        monthly_prestige = 0.2
        province_integration_speed = 0.10
        annexation_speed_base = 0.10
        max_tariff = 0.15
        change_policy_cost_modifier = -0.10
        monthly_reform_progress_modifier = 0.10
        court_spending_efficiency = -0.10
        # --- Законодательная база для высоких тарифов ---
        max_tariff = 0.15
        # --- Сословия ---
        nobles_estate_target_satisfaction = -0.10
        burghers_estate_target_satisfaction = -0.075
        peasants_estate_target_satisfaction = -0.075
        bureaucrats_estate_target_satisfaction = 0.2
        monthly_political_influence = -0.25
    }
}

# ================= ДЕЛОПРОИЗВОДСТВО, УРОВЕНЬ 4 =================
record_keeping_comprehensive = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:record_keeping_systematic
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.60
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.05
        }
        has_estate_privilege = estate_privilege:office_sale_banned
    }
    can_revoke = {
        always = no
    }
    country_modifier = {
        legislative_efficiency = 0.5
        casus_belli_creation_speed = 0.5
        monthly_prestige = 0.5
        province_integration_speed = 0.25
        annexation_speed_base = 0.25
        change_policy_cost_modifier = -0.20
        government_reform_slots = 1
        max_tariff = 0.30
        monthly_reform_progress_modifier = 0.25
        court_spending_efficiency = -0.15
        # --- Максимальный законодательный контроль над тарифами ---
        max_tariff = 0.25
        # --- Сословия ---
        bureaucrats_estate_target_satisfaction = 0.3
        nobles_estate_target_satisfaction = -0.125
        burghers_estate_target_satisfaction = -0.10
        peasants_estate_target_satisfaction = -0.10
        monthly_political_influence = -0.5
    }
}

# ================= ОБРАЗОВАНИЕ, УРОВЕНЬ 1 (даётся всем на старте) =================
church_schools = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
    }
    allow = {
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:basic_literacy
    }
    country_modifier = {
        # --- Образование в руках церкви: дёшево, но страна не учится ---
        research_speed_modifier = -0.1
        monthly_institution_spread = -0.1
        embrace_institution_cost_modifier = 0.25
        country_child_education = -0.25
        monthly_towards_spiritualist = societal_value_minor_monthly_move
        court_spending_efficiency = 0.05
        # --- Церковь довольна монополией ---
        bureaucrats_estate_target_satisfaction = 0.1
        clergy_estate_target_satisfaction = 0.1
        nobles_estate_target_satisfaction = -0.025
        burghers_estate_target_satisfaction = 0.025
        peasants_estate_target_satisfaction = 0.025
    }
    location_modifier = {
        potential_trigger = {
            total_population > 0
        }
        local_monthly_literacy = -0.01
    }
}

# ================= ОБРАЗОВАНИЕ, УРОВЕНЬ 2 =================
basic_literacy = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:church_schools
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.30
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.01
        }
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:state_schools
    }
    country_modifier = {
        embrace_institution_cost_modifier = 0.1
        bureaucrats_estate_target_satisfaction = -0.1
        nobles_estate_target_satisfaction = -0.05
        burghers_estate_target_satisfaction = 0.05
        peasants_estate_target_satisfaction = 0.05
        monthly_political_influence = -0.1
    }
    location_modifier = {
        potential_trigger = {
            total_population > 0
        }
        local_max_literacy = 25
    }
}

# ================= ОБРАЗОВАНИЕ, УРОВЕНЬ 3 =================
state_schools = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:basic_literacy
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.45
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.025
        }
        has_estate_privilege = estate_privilege:record_keeping_basic
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:education_system
    }
    country_modifier = {
        research_speed_modifier = 0.1
        monthly_institution_spread = 0.1
        country_child_education = 0.25
        monthly_towards_humanist = societal_value_minor_monthly_move
        court_spending_efficiency = -0.1
        bureaucrats_estate_target_satisfaction = -0.15
        clergy_estate_target_satisfaction = -0.1
        nobles_estate_target_satisfaction = -0.075
        burghers_estate_target_satisfaction = 0.075
        peasants_estate_target_satisfaction = 0.075
        monthly_political_influence = -0.25
    }
    location_modifier = {
        potential_trigger = {
            total_population > 0
        }
        local_monthly_literacy = 0.01
        local_max_literacy = 50
    }
}

# ================= ОБРАЗОВАНИЕ, УРОВЕНЬ 4 =================
education_system = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:state_schools
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.60
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.05
        }
        has_estate_privilege = estate_privilege:record_keeping_systematic
    }
    can_revoke = {
        always = no
    }
    country_modifier = {
        research_speed_modifier = 0.25
        monthly_institution_spread = 0.25
        embrace_institution_cost_modifier = -0.25
        country_child_education = 0.5
        monthly_towards_humanist = societal_value_monthly_move
        court_spending_efficiency = -0.15
        bureaucrats_estate_target_satisfaction = -0.20
        clergy_estate_target_satisfaction = -0.15
        nobles_estate_target_satisfaction = -0.1
        burghers_estate_target_satisfaction = 0.1
        peasants_estate_target_satisfaction = 0.1
        monthly_political_influence = -0.5
    }
    location_modifier = {
        potential_trigger = {
            total_population > 0
        }
        local_monthly_literacy = 0.02
        local_max_literacy = 75
    }
}

# ================= ВОЕННАЯ АДМИНИСТРАЦИЯ, УРОВЕНЬ 1 (даётся всем на старте) =================
feudal_obligations = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
    }
    allow = {
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:basic_logistics
    }
    country_modifier = {
        # --- Феодальный хаос: армия голодает, крепости рушатся ---
        global_defensive = -0.5
        global_levy_size_modifier = 0.25
        supply_lines = -0.5
        manpower_recovery_speed = -0.1
        war_exhaustion = 0.05
        levy_recovery_modifier = -0.1
        fort_maintenance_efficiency = -0.2
        supply_limit_modifier = -0.1
        court_spending_efficiency = 0.2
        # --- Дворяне владеют армией, крестьян выжимают на рекрутов ---
        bureaucrats_estate_target_satisfaction = 0.05
        nobles_estate_target_satisfaction = 0.1
        peasants_estate_target_satisfaction = -0.025
    }
}

# ================= ВОЕННАЯ АДМИНИСТРАЦИЯ, УРОВЕНЬ 2 =================
basic_logistics = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:feudal_obligations
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.30
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.01
        }
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:war_department
    }
    country_modifier = {
        global_manpower_modifier = 0.1
        global_defensive = -0.25
        supply_lines = -0.25
        fort_maintenance_efficiency = -0.1
        court_spending_efficiency = 0.1
        bureaucrats_estate_target_satisfaction = 0.15
        nobles_estate_target_satisfaction = 0.05
        peasants_estate_target_satisfaction = -0.05
        monthly_political_influence = -0.1
    }
}

# ================= ВОЕННАЯ АДМИНИСТРАЦИЯ, УРОВЕНЬ 3 =================
war_department = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:basic_logistics
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.45
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.025
        }
        has_estate_privilege = estate_privilege:record_keeping_basic
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:general_staff
    }
    country_modifier = {
        global_manpower_modifier = 0.15
        global_defensive = 0.5
        global_levy_size_modifier = -0.25
        supply_lines = 0.25
        manpower_recovery_speed = 0.1
        war_exhaustion = -0.05
        levy_recovery_modifier = 0.1
        fort_maintenance_efficiency = 0.1
        supply_limit_modifier = 0.1
        court_spending_efficiency = -0.1
        bureaucrats_estate_target_satisfaction = 0.15
        nobles_estate_target_satisfaction = -0.05
        peasants_estate_target_satisfaction = -0.075
        monthly_political_influence = -0.25
    }
}

# ================= ВОЕННАЯ АДМИНИСТРАЦИЯ, УРОВЕНЬ 4 =================
general_staff = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:war_department
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.60
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.05
        }
        has_estate_privilege = estate_privilege:institutional_oversight
    }
    can_revoke = {
        always = no
    }
    country_modifier = {
        global_manpower_modifier = 0.2
        global_defensive = 1.0
        global_levy_size_modifier = -0.5
        supply_lines = 0.5
        manpower_recovery_speed = 0.25
        war_exhaustion = -0.1
        levy_recovery_modifier = 0.25
        fort_maintenance_efficiency = 0.25
        supply_limit_modifier = 0.25
        court_spending_efficiency = -0.15
        bureaucrats_estate_target_satisfaction = 0.25
        nobles_estate_target_satisfaction = -0.1
        peasants_estate_target_satisfaction = -0.1
        monthly_political_influence = -0.5
    }
}

# ================= ЦЕНТРАЛИЗАЦИЯ, УРОВЕНЬ 1 (даётся всем на старте) =================
customary_levies = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
    }
    allow = {
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:early_centralization
    }
    country_modifier = {
        # --- Корона слаба: привилегии неприкосновенны, элиты вольны ---
        revoke_privilege_cost_modifier = 0.25
        estate_building_destruction_satisfaction_impact = 0.25
        building_upkeep_multiplier = 0.10
        monthly_legitimacy = -0.1
        court_spending_efficiency = 0.10
        # --- Сословия довольны феодальной вольницей ---
        bureaucrats_estate_target_satisfaction = 0.1
        nobles_estate_target_satisfaction = 0.1
        clergy_estate_target_satisfaction = 0.05
        burghers_estate_target_satisfaction = 0.05
        peasants_estate_target_satisfaction = 0.025
    }
}

# ================= ЦЕНТРАЛИЗАЦИЯ, УРОВЕНЬ 2 =================
early_centralization = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:customary_levies
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.30
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.01
        }
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:systematic_centralization
    }
    country_modifier = {
        revoke_privilege_cost_modifier = -0.10
        estate_building_destruction_satisfaction_impact = -0.25
        building_upkeep_multiplier = -0.05
        monthly_legitimacy = -0.05
        court_spending_efficiency = 0.05
        bureaucrats_estate_target_satisfaction = 0.15
        nobles_estate_target_satisfaction = -0.05
        clergy_estate_target_satisfaction = -0.05
        burghers_estate_target_satisfaction = -0.025
        peasants_estate_target_satisfaction = -0.025
        monthly_political_influence = -0.1
    }
}

# ================= ЦЕНТРАЛИЗАЦИЯ, УРОВЕНЬ 3 =================
systematic_centralization = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:early_centralization
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.45
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.025
        }
        has_estate_privilege = estate_privilege:record_keeping_systematic
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:absolute_centralization
    }
    country_modifier = {
        revoke_privilege_cost_modifier = -0.25
        estate_building_destruction_satisfaction_impact = -0.50
        building_upkeep_multiplier = -0.10
        court_spending_efficiency = -0.10
        bureaucrats_estate_target_satisfaction = 0.2
        nobles_estate_target_satisfaction = -0.1
        clergy_estate_target_satisfaction = -0.075
        burghers_estate_target_satisfaction = -0.05
        peasants_estate_target_satisfaction = -0.05
        monthly_political_influence = -0.25
    }
}

# ================= ЦЕНТРАЛИЗАЦИЯ, УРОВЕНЬ 4 =================
absolute_centralization = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:systematic_centralization
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.60
        pop_type_percentage_in_country = {
            pop_type = pop_type:bureaucrats
            value >= 0.05
        }
        has_estate_privilege = estate_privilege:office_sale_banned
    }
    can_revoke = {
        always = no
    }
    country_modifier = {
        revoke_privilege_cost_modifier = -0.5
        estate_building_destruction_satisfaction_impact = -0.75
        building_upkeep_multiplier = -0.25
        monthly_legitimacy = 0.1
        court_spending_efficiency = -0.15
        bureaucrats_estate_target_satisfaction = 0.25
        nobles_estate_target_satisfaction = -0.15
        clergy_estate_target_satisfaction = -0.1
        burghers_estate_target_satisfaction = -0.075
        peasants_estate_target_satisfaction = -0.075
        monthly_political_influence = -0.5
    }
}

# ================= ТОРГОВАЯ РЕФОРМА, УРОВЕНЬ 1 (даётся всем на старте) =================
guild_trade = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
    }
    allow = {
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:trade_charters
    }
    country_modifier = {
        # --- Гильдии монополизируют торговлю: высокий тариф, низкая эффективность ---
        global_trades_per_burgher = 1.0
        global_merchant_capacity_modifier = -0.25
        # --- Баланс: высокий тариф, низкая эффективность продаж ---
        tariff_income = 1.0
        selling_efficiency = -0.25
        # --- Влияние на сословия ---
        bureaucrats_estate_target_satisfaction = 0.10
        burghers_estate_target_satisfaction = 0.15
        nobles_estate_target_satisfaction = 0.10
        clergy_estate_target_satisfaction = 0.05
        peasants_estate_target_satisfaction = -0.15
    }
}

# ================= ТОРГОВАЯ РЕФОРМА, УРОВЕНЬ 2 =================
trade_charters = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:guild_trade
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.30
        has_estate_privilege = estate_privilege:record_keeping_basic
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:ministry_of_trade
    }
    country_modifier = {
        global_trades_per_burgher = 0.50
        merchant_maintenance_efficiency = 0.10
        global_merchant_capacity_modifier = -0.10
        trade_income = 0.05
        trade_protection = 0.1
        # --- Баланс: тариф снижается, эффективность растёт ---
        tariff_income = 0.85
        selling_efficiency = 0.10
        # --- Сословия ---
        bureaucrats_estate_target_satisfaction = 0.15
        burghers_estate_target_satisfaction = 0.05
        nobles_estate_target_satisfaction = 0.05
        clergy_estate_target_satisfaction = 0.02
        peasants_estate_target_satisfaction = -0.05
        monthly_political_influence = -0.1
    }
}

# ================= ТОРГОВАЯ РЕФОРМА, УРОВЕНЬ 3 =================
ministry_of_trade = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:trade_charters
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.45
        has_estate_privilege = estate_privilege:record_keeping_systematic
    }
    can_revoke = {
        has_estate_privilege = estate_privilege:state_mercantilism
    }
    country_modifier = {
        global_trades_per_burgher = 0.25
        merchant_maintenance_efficiency = 0.25
        global_merchant_capacity_modifier = 0.10
        trade_income = 0.10
        trade_protection = 0.25
        # --- Баланс: тариф ещё ниже, эффективность высокая ---
        tariff_income = 0.65
        selling_efficiency = 0.25
        # --- Сословия ---
        bureaucrats_estate_target_satisfaction = 0.20
        burghers_estate_target_satisfaction = -0.10
        nobles_estate_target_satisfaction = -0.05
        clergy_estate_target_satisfaction = -0.05
        peasants_estate_target_satisfaction = 0.10
        monthly_political_influence = -0.25
    }
}

# ================= ТОРГОВАЯ РЕФОРМА, УРОВЕНЬ 4 =================
state_mercantilism = {
    estate = bureaucrats_estate
    content_priority = 400
    potential = {
        has_estate_privilege = estate_privilege:ministry_of_trade
    }
    allow = {
        "estate_power(estate_type:crown_estate)" >= 0.60
        has_estate_privilege = estate_privilege:record_keeping_comprehensive
    }
    can_revoke = {
        always = no
    }
    country_modifier = {
        global_trades_per_burgher = -0.25
        merchant_maintenance_efficiency = 0.50
        global_merchant_capacity_modifier = -0.25
        trade_income = 0.25
        trade_protection = 0.50
        # --- Баланс: низкий тариф, максимальная эффективность продаж ---
        tariff_income = 0.50
        selling_efficiency = 0.50
        # --- Сословия ---
        bureaucrats_estate_target_satisfaction = 0.25
        burghers_estate_target_satisfaction = -0.25
        nobles_estate_target_satisfaction = -0.15
        clergy_estate_target_satisfaction = -0.10
        peasants_estate_target_satisfaction = 0.20
        monthly_political_influence = -0.5
    }
}