.nd-mortgage {
  --nd-green: var(--primary-color, #007900);
  --nd-dark: var(--primary-dark, #1b5e20);
  --nd-light: var(--primary-bg, #e8f5e9);
  --nd-tint: var(--color-f8f9fa, #f8f9fa);
  --nd-muted: #585e59;
  --nd-line: #e0e5e1;
  --nd-radius: 24px;
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.55;
  padding-top: var(--nd-header-height, 98px);
}
.nd-mortgage [hidden] { display: none !important; }
.nd-mortgage :is(section[id], [id]:target) { scroll-margin-top: calc(var(--nd-header-height, 98px) + 20px); }
.nd-mortgage :is(a, button, summary, input, select):focus-visible,
.nd-options label:has(:focus-visible) span { outline: 2px solid var(--nd-green); outline-offset: 4px; }
.nd-mortgage :is(h1, h2, h3, p, figure, fieldset, dl, ol, ul) { margin: 0; }
.nd-mortgage :is(h1, h2, h3) { font-family: inherit; font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.nd-mortgage a:not(.btn) { color: var(--nd-dark); text-underline-offset: .2em; }
.nd-mortgage img { display: block; max-width: 100%; }
.nd-mortgage button, .nd-mortgage input, .nd-mortgage select { font-family: inherit; }
.nd-mortgage .btn { min-height: 46px; justify-content: center; border: 1px solid var(--nd-green); text-align: center; white-space: normal; }
.nd-mortgage .btn.nd-outline { color: var(--nd-dark); background: #fff; border-color: #cddccd; }
.nd-mortgage .btn.nd-outline:hover { background: var(--nd-light); color: var(--nd-dark); }
.nd-hero { background: #f4f8f5; padding: 21px 0 30px; }
.nd-crumbs { display: flex; align-items: center; gap: 10px; color: var(--nd-muted); font-size: .8125rem; margin-bottom: 26px; }
.nd-crumbs a { text-decoration: none; }
.nd-crumbs a:hover { text-decoration: underline; }
.nd-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.nd-hero-copy { padding: 12px 0; }
.nd-kicker { display: flex; gap: 9px; align-items: center; color: var(--nd-dark); font-weight: 600; font-size: .875rem; }
.nd-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--nd-green); }
.nd-hero h1 { font-size: clamp(2.2rem, 3.8vw, 3.5rem); margin: 18px 0 19px; text-wrap: balance; }
.nd-hero h1 em { font-style: normal; color: var(--nd-green); white-space: nowrap; }
.nd-mortgage .nd-hero-text { font-size: 1.125rem; color: #3f4942; max-width: 500px; }
.nd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 15px; }
.nd-mortgage .nd-hero-note { color: var(--nd-muted); font-size: .8125rem; max-width: 470px; }
.nd-hero-note a { white-space: nowrap; }
.nd-hero-photo { position: relative; min-width: 0; border-radius: var(--nd-radius); overflow: hidden; background: #d7e3da; }
.nd-hero-photo picture { display: block; }
.nd-hero-photo img { width: 100%; height: clamp(350px, 35vw, 470px); object-fit: cover; object-position: 48% 53%; }
.nd-hero-photo figcaption { position: absolute; bottom: 16px; left: 16px; max-width: calc(100% - 32px); }
.nd-hero-photo figcaption a:not(.btn) { display: block; padding: 8px 12px; background: #fff; border-radius: 8px; color: #1a1a1a; font-size: .8125rem; font-weight: 600; text-decoration: none; }
.nd-hero-photo figcaption span { color: var(--nd-muted); font-weight: 400; }
.nd-mortgage .nd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 23px; }
.nd-trust > div { padding: 12px 17px; background: #fff; border: 1px solid #e7ede8; border-radius: 14px; }
.nd-trust dt { color: var(--nd-dark); font-weight: 700; font-size: 1.125rem; }
.nd-trust dd { color: var(--nd-muted); margin: 0; font-size: .875rem; }
.nd-section { padding: clamp(43px, 6vw, 80px) 0; }
.nd-tint { background: var(--nd-tint); }
.nd-heading { margin-bottom: 26px; max-width: 760px; }
.nd-mortgage h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.nd-mortgage h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.nd-heading p { color: var(--nd-muted); margin-top: 9px; }
.nd-calc { display: grid; grid-template-columns: 1.55fr 1fr; border: 1px solid var(--nd-line); border-radius: var(--nd-radius); overflow: hidden; box-shadow: 0 4px 24px #0000000a; }
.nd-calc-main, .nd-result { padding: clamp(20px, 3vw, 36px); min-width: 0; }
.nd-choice { border: 0; padding: 0; min-width: 0; }
.nd-choice legend { font-weight: 600; margin-bottom: 8px; font-size: .875rem; }
.nd-options { display: flex; gap: 5px; padding: 5px; border-radius: 12px; background: #eff3ef; }
.nd-options label { flex: 1; position: relative; min-width: 0; display: flex; }
.nd-options input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.nd-options span { display: grid; width: 100%; padding: 8px 10px; min-height: 42px; place-items: center; text-align: center; border-radius: 8px; font-weight: 600; font-size: .875rem; line-height: 1.21; cursor: pointer; }
.nd-options :checked + span { color: var(--nd-dark); box-shadow: 0 1px 5px #123a1b19; background: #fff; }
.nd-mortgage .nd-scenario { color: var(--nd-muted); font-size: .875rem; margin: 10px 0 16px; }
.nd-mobile-estimate { display: none; }
.nd-mortgage .nd-selected { padding: 8px 12px; background: #edf5ee; border-radius: 8px; margin: 0 0 12px; font-size: .875rem; }
.nd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.nd-fields .nd-field-wide { grid-column: 1 / -1; }
.nd-fields label, .nd-compare-settings label { font-size: .875rem; font-weight: 600; display: grid; align-content: start; gap: 5px; min-width: 0; }
.nd-fields label { align-content: end; }
.nd-bank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.nd-bank-grid article { border: 1px solid var(--nd-line); border-radius: 12px; padding: 14px; }
.nd-bank-grid h4 { margin: 0 0 6px; color: var(--nd-dark); font-size: 1rem; }
.nd-input { display: flex; align-items: center; overflow: hidden; min-width: 0; position: relative; }
.nd-input > span { padding-right: 12px; color: var(--nd-muted); font-size: .875rem; font-weight: 500; position: absolute; right: 0; pointer-events: none; }
.nd-mortgage .nd-input input, .nd-mortgage select { margin: 0; display: block; width: 100%; min-width: 0; height: 47px; border: 1px solid #ccd7ce; border-radius: 8px; background: #fff; color: #1a1a1a; padding: 0 12px; font-size: 1rem; font-weight: 500; }
.nd-mortgage .nd-input input { padding-right: 38px; appearance: textfield; }
.nd-mortgage .nd-input input::-webkit-inner-spin-button { appearance: none; }
.nd-mortgage .nd-input input:focus-visible { outline-offset: -3px; }
.nd-mortgage select { appearance: none; padding-right: 29px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23585e59' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; }
.nd-mortgage .nd-note { color: var(--nd-muted); font-size: .8125rem; margin-top: 12px; }
.nd-notice { padding: 10px 12px; margin-top: 12px; color: #704718; background: #fff6e8; border-left: 3px solid #ad722a; border-radius: 6px; font-size: .875rem; }
.nd-notice ul { padding-left: 17px; }
.nd-text-button { background: none; padding: 5px 0; color: var(--nd-dark); border: 0; min-height: 44px; font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.nd-result { background: #f1f7f1; display: flex; align-items: flex-start; flex-direction: column; }
.nd-result-label { font-weight: 600; color: #414a42; }
.nd-payment { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--nd-dark); margin-bottom: 13px; }
.nd-payment output { font-size: clamp(2.25rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.nd-later { color: var(--nd-dark); font-weight: 600; font-size: .875rem; }
.nd-mortgage .nd-breakdown { width: 100%; margin: 7px 0 17px; }
.nd-breakdown div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; border-top: 1px solid #dce8dc; padding: 8px 0; font-size: .875rem; }
.nd-breakdown dt { color: #4d574e; }
.nd-breakdown dd { margin: 0; font-weight: 600; text-align: right; margin-left: auto; }
.nd-terms { margin-top: 16px; padding-left: 14px; border-left: 3px solid #d5e8d6; font-size: .875rem; color: var(--nd-muted); }
.nd-terms p + p { margin-top: 6px; }
.nd-compare-settings { display: grid; grid-template-columns: minmax(0, 245px) minmax(0, 145px); gap: 15px; margin-bottom: 16px; }
.nd-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nd-compare-card { padding: clamp(16px, 3vw, 29px); border: 1px solid var(--nd-line); background: #fff; border-radius: var(--nd-radius); min-width: 0; }
.nd-compare-house { border-color: #b8d7ba; }
.nd-compare-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.nd-compare-card i { color: var(--nd-dark); font-size: .9em; padding-right: 4px; }
.nd-compare-card output { font-weight: 700; font-size: clamp(1.125rem, 2.3vw, 1.55rem); }
.nd-compare-house output { color: var(--nd-dark); }
.nd-bar { background: #e9eeea; height: 7px; border-radius: 6px; margin: 11px 0 17px; }
.nd-bar span { display: block; height: 100%; background: #747e75; border-radius: 6px; width: 0; transition: width .18s ease; }
.nd-compare-house .nd-bar span { background: var(--nd-green); }
.nd-mortgage .nd-compare-cash { margin-top: 10px; font-size: .875rem; font-weight: 600; }
.nd-mortgage .nd-compare-summary { margin-top: 13px; font-weight: 600; }
.nd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nd-mortgage .nd-card { max-width: none; width: 100%; margin: 0; }
.nd-card > img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.nd-card > div { padding: 17px 19px 19px; }
.nd-card p { color: var(--nd-muted); margin: 7px 0 10px; }
.nd-link { display: inline-block; color: var(--nd-dark); font-size: .875rem; font-weight: 700; text-decoration: underline; }
.nd-card .nd-muted-link { margin-left: 7px; }
.nd-catalog-options { max-width: 430px; margin-bottom: 18px; }
.nd-catalog-link { margin-top: 16px; }
.nd-catalog-card { position: relative; }
.nd-catalog-card > div { display: grid; gap: 6px; }
.nd-catalog-card p { margin: 0; font-size: .875rem; }
.nd-catalog-type { color: var(--nd-dark); font-weight: 600; font-size: .8125rem; }
.nd-catalog-card .nd-price { color: #1a1a1a; font-size: 1.125rem; font-weight: 700; }
.nd-catalog-card .nd-card-pay { color: var(--nd-dark); font-weight: 700; }
.nd-catalog-card .nd-actions { margin: 5px 0 0; align-items: center; gap: 12px; }
.nd-catalog-card .btn { padding: 8px 10px; min-height: 42px; }
.nd-empty { background: #fff; border: 1px solid var(--nd-line); border-radius: 16px; padding: 18px; }
.nd-empty + .nd-cards { margin-top: 13px; }
.nd-route, .nd-steps { display: grid; list-style: none; gap: 12px; padding: 0; counter-reset: nd-step; }
.nd-route { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.nd-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
:is(.nd-route, .nd-steps) > li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--nd-line);
  border-radius: 14px;
  background: var(--nd-tint);
  counter-increment: nd-step;
}
:is(.nd-route, .nd-steps) > li::before {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--nd-light);
  color: var(--nd-dark);
  font-size: .75rem;
  font-weight: 700;
  content: counter(nd-step);
}
.nd-step-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--nd-green);
  color: #fff;
  font-size: 1rem;
}
:is(.nd-route, .nd-steps) strong { line-height: 1.3; overflow-wrap: anywhere; }
:is(.nd-route, .nd-steps) span { color: var(--nd-muted); font-size: .875rem; line-height: 1.4; }
.nd-proof { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.nd-mortgage .nd-checklist { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.nd-checklist li { padding-left: 25px; position: relative; }
.nd-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--nd-green); font-weight: 700; }
.nd-review { position: relative; overflow: hidden; display: block; border-radius: var(--nd-radius); }
.nd-review img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.nd-play { position: absolute; display: grid; place-items: center; color: #fff; background: var(--nd-green); inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 53px; height: 53px; border-radius: 50%; }
.nd-review-label { position: absolute; bottom: 13px; left: 13px; background: white; color: #1a1a1a; font-size: .875rem; padding: 6px 10px; border-radius: 8px; }
.nd-faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: 22px; }
.nd-faq-list { min-width: 0; display: grid; gap: 8px; }
.nd-faq-list details { background: white; border: 1px solid var(--nd-line); border-radius: 12px; }
.nd-faq-list summary { cursor: pointer; color: #1a1a1a; font-weight: 600; padding: 13px 42px 13px 15px; position: relative; list-style: none; }
.nd-faq-list summary::-webkit-details-marker { display: none; }
.nd-faq-list summary::after { content: "+"; position: absolute; right: 15px; top: 8px; font-size: 1.35rem; color: var(--nd-green); }
.nd-faq-list details[open] summary::after { content: "−"; }
.nd-faq-list p { font-size: .9375rem; color: var(--nd-muted); padding: 0 15px 14px; }
.nd-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 5vw, 64px); padding: clamp(20px, 5vw, 52px); background: #edf6ee; border: 1px solid #daebda; border-radius: var(--nd-radius); }
.nd-lead h2 { margin-bottom: 10px; }
.nd-lead p + .nd-link { margin-top: 10px; }
.nd-lead .nd-lead-summary { margin-top: 13px; color: var(--nd-dark); font-size: .875rem; font-weight: 600; }
.nd-lead-fields { display: grid; gap: 16px; min-width: 0; padding: 0; border: 0; }
.nd-lead-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--color-white, #fff);
}
.nd-lead-field-body { display: grid; gap: 5px; color: #1a1a1a; font-size: .875rem; font-weight: 600; }
.nd-lead-field-body :is(input, select) {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding-inline: 10px;
  border: 1px solid var(--nd-line);
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 500;
}
.nd-lead-field-body select { padding-right: 26px; }
.nd-lead-fields .nd-consent { display: flex; align-items: baseline; gap: 7px; font-size: .875rem; }
.nd-lead-fields .nd-consent input { accent-color: var(--nd-green); }
.nd-lead-fields .btn:disabled { background: #3d733d; border-color: #3d733d; color: #fff; cursor: not-allowed; box-shadow: none; transform: none; }
.nd-lead-fields .btn:disabled i { transform: none; }
.nd-lead-fields .nd-note { margin-top: 0; }
.nd-mortgage .nd-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1024px) {
  .nd-hero-grid { gap: 24px; }
  .nd-route { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nd-calc, .nd-proof, .nd-lead, .nd-faq { grid-template-columns: minmax(0, 1fr); }
  .nd-cards { gap: 11px; }
  .nd-card > div { padding: 13px; }
  .nd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nd-faq .nd-heading { margin-bottom: 0; }
}
@media (max-width: 650px) {
  .nd-hero { padding: 12px 0 18px; }
  .nd-crumbs { margin-bottom: 14px; }
  .nd-hero-grid, .nd-compare-grid, .nd-cards { grid-template-columns: minmax(0, 1fr); }
  .nd-hero-grid { gap: 15px; }
  .nd-hero-copy { padding: 0; }
  .nd-hero h1 { margin: 11px 0; }
  .nd-hero-photo img { height: auto; aspect-ratio: 1.42; }
  .nd-hero-photo figcaption { bottom: 9px; left: 9px; }
  .nd-hero-photo figcaption a:not(.btn) { padding: 5px 8px; }
  .nd-mortgage .nd-hero-text { font-size: 1rem; }
  .nd-actions { margin: 16px 0 10px; }
  .nd-actions .btn { padding-inline: 12px; }
  .nd-mortgage .nd-trust { gap: 6px; margin-top: 10px; }
  .nd-trust > div { padding: 7px 6px; border-radius: 8px; }
  .nd-trust dt { font-size: .85rem; }
  .nd-trust dd { font-size: .75rem; line-height: 1.3; }
  .nd-heading { margin-bottom: 16px; }
  .nd-calc-main, .nd-result { padding: 14px; }
  .nd-fields { gap: 10px; }
  .nd-mortgage .nd-mobile-estimate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 6px; padding: 7px 10px; margin-bottom: 12px; border-radius: 8px; background: #eef6ee; color: var(--nd-dark); font-size: .875rem; }
  .nd-mobile-estimate strong { font-size: 1rem; }
  .nd-mortgage .nd-fields select { font-size: .875rem; }
  .nd-options span { padding: 6px 3px; font-size: .8125rem; }
  .nd-route, .nd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-cards { gap: 16px; }
}
@media (max-width: 480px) {
  .nd-lead-form { padding: 14px; }
  .nd-lead-field { gap: 8px; padding: 10px; }
  .nd-route, .nd-steps { grid-template-columns: minmax(0, 1fr); }
  :is(.nd-route, .nd-steps) > li {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    padding-right: 44px;
  }
  .nd-step-icon { grid-row: span 2; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nd-mortgage *, .nd-mortgage *::before, .nd-mortgage *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
