
:root {
  --navy: #14344a;
  --blue: #1f5a7a;
  --blue-soft: #eaf2f6;
  --ink: #17313f;
  --muted: #6d7e87;
  --line: #dce6eb;
  --paper: #ffffff;
  --bg: #f4f7f8;
  --accent: #c6953d;
  --success: #166534;
  --shadow: 0 16px 45px rgba(20, 52, 74, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 90% 5%, rgba(31, 90, 122, .08), transparent 24rem),
    var(--bg);
  color: var(--ink);
}

button, input, select { font: inherit; }

button { cursor: pointer; }

.page-shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.hero {
  padding: 14px 4px 30px;
}

.brand-row {
  display: flex;
  gap: 18px;
  align-items: center;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--navy);
  color: white;
  font-size: 28px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.eyebrow, .section-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

h1 {
  margin: 5px 0 0;
  max-width: 880px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.hero-copy {
  max-width: 760px;
  margin: 21px 0 0 76px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.type-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 26px;
}

.type-card {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  transition: .18s ease;
}

.type-card:hover {
  transform: translateY(-2px);
  border-color: #b9ced9;
}

.type-card.active {
  border-color: var(--blue);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.type-card strong, .type-card small { display: block; }

.type-card strong {
  margin: 12px 0 5px;
  font-size: 17px;
}

.type-card small {
  line-height: 1.4;
  opacity: .72;
}

.type-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.type-card.active .type-icon {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr);
  gap: 22px;
  align-items: start;
}

.calculator-panel, .result-panel, .next-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calculator-panel {
  padding: 26px;
}

.result-panel {
  padding: 26px;
  position: sticky;
  top: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.panel-head h2, .next-step h2 {
  margin: 5px 0 0;
  font-size: 25px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  padding: 7px 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-wide { grid-column: 1 / -1; }

.field > span {
  font-size: 13px;
  font-weight: 750;
  color: #3e5662;
}

.field em {
  color: var(--muted);
  font-weight: 500;
}

input, select {
  width: 100%;
  min-height: 47px;
  border: 1px solid #cad9e0;
  border-radius: 11px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,90,122,.10);
}

.input-with-unit {
  position: relative;
}

.input-with-unit input { padding-right: 58px; }

.input-with-unit > span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.advanced {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.advanced summary {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.checks {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 11px 18px;
}

.checks label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #48606b;
  font-size: 13px;
  line-height: 1.45;
}

.checks input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.compact-field {
  max-width: 380px;
  margin-top: 18px;
}

.primary-button, .secondary-button {
  border: 0;
  border-radius: 12px;
  min-height: 50px;
  padding: 11px 18px;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  margin-top: 25px;
  background: var(--navy);
  color: white;
  box-shadow: 0 10px 24px rgba(20,52,74,.16);
}

.primary-button:hover { background: #0f2a3c; }

.secondary-button {
  width: 100%;
  margin-top: 18px;
  background: var(--blue-soft);
  color: var(--blue);
}

.result-placeholder {
  min-height: 260px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}

.placeholder-number {
  color: #b4c8d1;
  font-size: 70px;
  line-height: .8;
}

.result-type {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.price-card {
  margin: 12px 0 18px;
  padding: 22px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  border-radius: 15px;
  color: white;
}

.price-card span, .price-card small { display: block; }

.price-card span { opacity: .78; font-size: 13px; }
.price-card strong {
  display: block;
  margin: 7px 0 3px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.03em;
}

.price-card small { opacity: .68; }

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.result-row span { color: var(--muted); }
.result-row strong { text-align: right; }

.result-note {
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 3px solid var(--accent);
  background: #fbf7ef;
  border-radius: 0 10px 10px 0;
  color: #685a42;
  font-size: 12.5px;
  line-height: 1.55;
}

.legal {
  margin: 20px 0 0;
  color: #8a989f;
  font-size: 11.5px;
  line-height: 1.55;
}

.next-step {
  margin-top: 22px;
  padding: 25px 28px;
}

.next-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.hidden { display: none !important; }

@media (max-width: 880px) {
  .type-picker, .workspace { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .hero-copy { margin-left: 0; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 20px, 1220px); padding-top: 20px; }
  .field-grid, .checks { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .calculator-panel, .result-panel { padding: 20px; }
  .brand-row { align-items: flex-start; }
  .brand-mark { width: 46px; height: 46px; font-size: 22px; }
  h1 { font-size: 31px; }
}


.howto-box {
  margin: -4px 0 22px;
  padding: 14px 16px;
  border: 1px solid #cbdde5;
  border-radius: 12px;
  background: #f5f9fb;
  color: #47606c;
  font-size: 13px;
  line-height: 1.5;
}

.howto-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.howto-box p {
  margin: 0;
}

.scope-note {
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #f7f8f8;
  border: 1px solid var(--line);
  color: #4f5f67;
  font-size: 14px;
  line-height: 1.55;
}

.scope-note strong {
  color: #b42318;
  font-size: 16px;
  font-weight: 900;
}

.minimum-note {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 11px;
  background: #f3f7f9;
  border: 1px solid #d8e5eb;
  color: #526a75;
  font-size: 12px;
  line-height: 1.5;
}

.minimum-note strong,
.minimum-note span {
  display: block;
}

.minimum-note strong {
  color: var(--navy);
  margin-bottom: 3px;
}


.inquiry-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.inquiry-title {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.inquiry-grid {
  display: grid;
  gap: 9px;
}

.inquiry-grid input {
  min-height: 42px;
  font-size: 13px;
}

.inquiry-button {
  width: 100%;
  margin-top: 10px;
  min-height: 47px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.inquiry-button:hover {
  filter: brightness(.95);
}

.inquiry-hint {
  margin-top: 7px;
  color: #8a989f;
  font-size: 11px;
  line-height: 1.4;
}


.method-badge {
  display: inline-block;
  margin: 16px 0 0 76px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #edf3f6;
  color: #526b78;
  font-size: 11.5px;
  font-weight: 750;
}

.simple-option {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
}

.simple-option label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #4c626d;
  font-size: 13px;
  line-height: 1.45;
}

.simple-option input,
.conditional-box input[type="checkbox"],
.facility-box input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex: 0 0 auto;
  margin-top: 2px;
}

.conditional-box,
.facility-box {
  margin-top: 4px;
  padding: 15px 16px;
  border: 1px solid #d7e4ea;
  border-radius: 12px;
  background: #f8fafb;
}

.conditional-title {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.conditional-hint,
.facility-subtitle {
  margin-top: 7px;
  color: #798991;
  font-size: 11.5px;
  line-height: 1.45;
}

.facility-box {
  margin-top: 20px;
  background: #fbfaf7;
  border-color: #e8dfcf;
}

.mini-grid {
  margin-top: 14px;
}

@media (max-width: 880px) {
  .method-badge { margin-left: 0; }
}


.luxury-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.conditional-subbox {
  margin-top: 13px;
  padding: 13px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dfe9ee;
}

.calculated-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}

.calculated-info span {
  color: #687b84;
}

.calculated-info strong {
  color: var(--navy);
  font-size: 16px;
}


.field-note {
  display: block;
  margin-top: -2px;
  color: #87969d;
  font-size: 11px;
  line-height: 1.35;
}

.default-dn-note {
  margin-top: 10px;
  margin-bottom: 2px;
}


.simple-inline-check {
  min-height: 47px;
  margin-top: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #cad9e0;
  border-radius: 11px;
  background: #fff;
  color: #3e5662;
  font-size: 13px;
  font-weight: 750;
}

.simple-inline-check input {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex: 0 0 auto;
}


.form-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.form-section-label.section-gap {
  margin-top: 28px;
}

.form-section-label span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.form-section-label strong {
  color: var(--navy);
  font-size: 15px;
}
