@media (max-width: 1060px) {
  .hero-grid {
    gap: 42px;
    grid-template-columns: 1fr minmax(360px, 400px);
  }

  .process-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .process-step:nth-child(3),
  .process-step:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .product-rail {
    grid-template-columns: 1fr 1fr;
  }

  .product-block:last-child {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 80px 0;
  }

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
  }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    align-items: stretch;
    padding: 22px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #06111f;
    box-shadow: var(--shadow-md);
    flex-direction: column;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav > a:not(.button) {
    padding: 8px 0;
    font-size: 1.05rem;
  }

  .primary-nav .nav-access,
  .primary-nav .button-primary {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero-grid,
  .example-grid,
  .eligibility-grid,
  .faq-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .calculator-panel {
    max-width: 640px;
  }

  .example-grid,
  .eligibility-grid,
  .faq-layout,
  .contact-shell {
    gap: 48px;
  }

  .eligibility-grid .section-heading,
  .faq-layout .section-heading {
    position: static;
  }

  .trust-grid div {
    padding-inline: 20px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .header-inner {
    min-height: 64px;
  }

  .primary-nav {
    inset-block-start: 64px;
  }

  .hero {
    padding: 52px 0 68px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .calculator-panel,
  .lead-form {
    padding: 22px;
  }

  .calculator-heading {
    flex-direction: column;
  }

  .calculator-badge {
    order: -1;
  }

  .form-grid-two,
  .process-rail,
  .product-rail,
  .document-rail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .process-step:nth-child(3),
  .process-step:nth-child(4) {
    border-top: 0;
  }

  .product-block:last-child {
    grid-column: auto;
  }

  .product-block {
    min-height: auto;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:first-child {
    min-height: 84px;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid div:last-child {
    border-bottom: 0;
  }

  .result-primary {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .example-numbers div {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .legal-note {
    flex-direction: column;
    gap: 12px;
  }
}
