main.wrap > h1 {
  display: none;
}

.nm-calculator-page {
  --red: #d62828;
  --red-soft: #fff1f1;
  --ink: #0f1724;
  --muted: #667085;
  --line: #e6e9ef;
  --surface: #ffffff;
  --soft: #f7f8fb;
  --shadow: 0 16px 42px rgba(17, 24, 39, 0.09);
  --radius: 12px;
  box-sizing: border-box;
  width: min(1720px, calc(100vw - 48px));
  margin: 18px 0 56px calc(50% - min(1720px, calc(100vw - 48px)) / 2);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  line-height: 1.45;
}

.nm-calculator-page *,
.nm-calculator-page *::before,
.nm-calculator-page *::after {
  box-sizing: border-box;
}

.nm-calculator-page a {
  color: inherit;
  text-decoration: none;
}

.nm-calculator-page .page-shell {
  display: grid;
  grid-template-columns: minmax(560px, 0.95fr) minmax(620px, 1.05fr);
  gap: 32px;
  width: 100%;
  margin: 0 auto;
}

.nm-calculator-page .calculator-card,
.nm-calculator-page .delivery-card {
  min-width: 0;
  padding: clamp(28px, 3vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nm-calculator-page .section-heading {
  margin-bottom: 30px;
}

.nm-calculator-page .section-heading h1,
.nm-calculator-page .section-heading h2 {
  max-width: 620px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 2.1vw, 36px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: 0;
}

.nm-calculator-page .section-heading h2 {
  max-width: none;
}

.nm-calculator-page .section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.nm-calculator-page .calc-form {
  display: grid;
  gap: 28px;
}

.nm-calculator-page .form-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.nm-calculator-page .row-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 999px;
  font-size: 28px;
  font-weight: 900;
}

.nm-calculator-page .row-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.nm-calculator-page .field-card {
  min-width: 0;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.nm-calculator-page .field-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.nm-calculator-page .segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1px;
  border: 1px solid #d9dde6;
  border-radius: 9px;
  overflow: hidden;
}

.nm-calculator-page .segment--triple {
  grid-template-columns: 1fr 1fr 1fr;
}

.nm-calculator-page .segment label {
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.nm-calculator-page .segment input {
  position: absolute;
  width: auto;
  height: auto;
  opacity: 0;
  pointer-events: none;
}

.nm-calculator-page .segment span {
  display: grid;
  min-height: 52px;
  place-items: center;
  margin: 0;
  padding: 0 14px;
  border-radius: 8px;
  color: #151a25;
  font-weight: 750;
  text-align: center;
  white-space: normal;
}

.nm-calculator-page .segment input:checked + span {
  color: var(--red);
  border: 2px solid var(--red);
}

.nm-calculator-page .input-wrap,
.nm-calculator-page .select-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d9dde6;
  border-radius: 9px;
  background: #fff;
}

.nm-calculator-page .input-wrap:focus-within,
.nm-calculator-page .select-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.1);
}

.nm-calculator-page input,
.nm-calculator-page select {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  font: inherit;
  font-size: 18px;
  font-weight: 650;
}

.nm-calculator-page select {
  min-height: 54px;
  appearance: none;
  cursor: pointer;
}

.nm-calculator-page .select-wrap {
  position: relative;
}

.nm-calculator-page .select-wrap::after {
  color: #101828;
  font-size: 20px;
  content: "⌄";
  pointer-events: none;
}

.nm-calculator-page .helper-text {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.nm-calculator-page .helper-text strong {
  color: var(--muted);
}

.nm-calculator-page .result-card {
  margin-top: 22px;
  padding: 28px 30px;
  background: #fbfcff;
  border: 1px solid rgba(230, 233, 239, 0.7);
  border-radius: 10px;
}

.nm-calculator-page .cost-list {
  display: grid;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px dashed #d3d8e2;
}

.nm-calculator-page .cost-list div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  font-size: 17px;
}

.nm-calculator-page .cost-list strong {
  font-size: 18px;
  white-space: nowrap;
}

.nm-calculator-page .total-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: end;
  padding-top: 26px;
}

.nm-calculator-page .total-block > span {
  max-width: 360px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.nm-calculator-page .total-block strong {
  color: var(--red);
  font-size: clamp(34px, 3.2vw, 42px);
  line-height: 1;
  white-space: nowrap;
}

.nm-calculator-page .total-block p {
  grid-column: 2;
  margin: 2px 0;
  color: #151a25;
  font-size: 17px;
  text-align: right;
}

.nm-calculator-page .footnote {
  margin: 26px 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.nm-calculator-page .table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.nm-calculator-page table {
  width: 100%;
  border-collapse: collapse;
}

.nm-calculator-page th,
.nm-calculator-page td {
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.nm-calculator-page th {
  color: #626b7d;
  background: #fff;
  font-size: 14px;
}

.nm-calculator-page th:last-child,
.nm-calculator-page td:last-child {
  text-align: right;
}

.nm-calculator-page tbody tr {
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.nm-calculator-page tbody tr:hover,
.nm-calculator-page tbody tr.is-selected {
  background: linear-gradient(90deg, #fff0f0, #fff);
}

.nm-calculator-page tbody tr.is-selected td:last-child {
  color: var(--red);
  font-weight: 900;
}

.nm-calculator-page .city-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
}

.nm-calculator-page .table-wrap td.is-active-type,
.nm-calculator-page .table-wrap tr.is-selected td.is-active-type {
  color: var(--red);
  font-weight: 900;
}

.nm-calculator-page .notice {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 56px;
  padding: 17px 20px;
  color: #626b7d;
  background: #fafbfe;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.nm-calculator-page .notice p {
  margin: 0;
}

@media (max-width: 1180px) {
  .nm-calculator-page {
    width: min(100% - 32px, 960px);
    margin-left: auto;
    margin-right: auto;
  }

  .nm-calculator-page .page-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nm-calculator-page {
    width: min(100% - 24px, 680px);
    margin-top: 14px;
    margin-bottom: 40px;
  }

  .nm-calculator-page .page-shell {
    gap: 18px;
  }

  .nm-calculator-page .calculator-card,
  .nm-calculator-page .delivery-card {
    padding: 22px 16px;
  }

  .nm-calculator-page .section-heading {
    margin-bottom: 22px;
  }

  .nm-calculator-page .section-heading p {
    font-size: 16px;
  }

  .nm-calculator-page .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nm-calculator-page .row-icon {
    display: none;
  }

  .nm-calculator-page .field-card {
    padding: 16px;
  }

  .nm-calculator-page .segment {
    grid-template-columns: 1fr;
  }

  .nm-calculator-page .segment--triple {
    grid-template-columns: 1fr;
  }

  .nm-calculator-page .segment span {
    min-height: 48px;
  }

  .nm-calculator-page .result-card {
    padding: 22px 16px;
  }

  .nm-calculator-page .cost-list div {
    font-size: 15px;
  }

  .nm-calculator-page .total-block {
    grid-template-columns: 1fr;
  }

  .nm-calculator-page .total-block p {
    grid-column: auto;
    text-align: left;
  }

  .nm-calculator-page .total-block strong {
    white-space: normal;
  }

  .nm-calculator-page .footnote {
    margin-left: 0;
  }

  .nm-calculator-page th,
  .nm-calculator-page td {
    padding: 15px 14px;
  }

  .nm-calculator-page .notice {
    margin-top: 22px;
  }
}
