<h2>Article 5: Contract Price and Terms of Payment</h2>
<div class="article">
  <h3>Contract Price</h3>
  <p>
    The contract price is calculated based on the agreed railway corridor, cargo details, applicable rate
    schedule, and any approved operational surcharges.
  </p>
  <table class="details-table">
    <tbody>
      <tr>
        <th>Corridor</th>
        <td>{{pricing.originLabel}} → {{pricing.destinationLabel}}</td>
        <th>Currency</th>
        <td>{{pricing.currency}}</td>
      </tr>
      <tr>
        <th>Payment currency</th>
        <td>{{paymentArticle}}</td>
        <th>Equipment return</th>
        <td>{{pricing.equipmentReturn}}</td>
      </tr>
    </tbody>
  </table>
  {{#if pricing.equipmentReturn}}
  <p><strong>Equipment return:</strong> {{pricing.equipmentReturn}}</p>
  {{/if}}

  <h3>Charges</h3>
  <table class="schedule">
    <thead>
      <tr><th>Item</th><th>Description</th><th>Amount</th></tr>
    </thead>
    <tbody>
      {{#each pricing.lineItems}}
      <tr>
        <td>{{label}}</td>
        <td>{{description}}</td>
        <td>{{currency}} {{amount}}</td>
      </tr>
      {{/each}}
      {{#if pricing.surcharges.length}}
      <tr>
        <th colspan="3">Surcharges and Adjustments</th>
      </tr>
      {{#each pricing.surcharges}}
      <tr>
        <td>{{label}}</td>
        <td>{{description}}</td>
        <td>{{currency}} {{amount}}</td>
      </tr>
      {{/each}}
      {{/if}}
      <tr class="total-row">
        <td colspan="2"><strong>Total contract value</strong></td>
        <td><strong>{{pricing.currency}} {{pricing.totalAmount}}</strong></td>
      </tr>
    </tbody>
  </table>
  <h3>Terms of payment</h3>
  <p>
    Unless otherwise agreed in writing, the Client shall settle the contract value in
    <strong>{{paymentArticle}}</strong> before the service is performed and in accordance with EDR payment
    instructions. Bank charges, penalties, demurrage, storage, and third-party charges remain the
    responsibility of the Client where applicable.
  </p>
</div>
