.site-header {
  width: calc(100% - 56px);
  max-width: 1380px;
  margin: 20px auto 22px;
  min-height: 112px;
  padding: 22px 30px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%);
  box-shadow: 0 14px 32px rgba(16, 42, 67, .16);
}

.nav-left { min-width: 0; }

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 27px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-title img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .2));
}

.brand-subtitle {
  margin-top: 3px;
  color: #b8c9d9;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .3px;
}

.nav-right { display: flex; align-items: center; }

.back-home {
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: .18s;
}

.back-home:hover {
  background: rgba(255, 255, 255, .17);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-1px);
}

.quick-nav {
  width: calc(100% - 56px);
  max-width: 1380px;
  margin: 0 auto;
  padding: 9px 14px;
  gap: 8px;
}

.quick-nav a {
  padding: 8px 16px;
  border-radius: 22px;
  font-size: 14px;
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 20px);
    margin: 10px auto 14px;
    padding: 18px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .brand-title { gap: 9px; font-size: 21px; }
  .brand-title img { width: 43px; height: 43px; }
  .brand-subtitle { font-size: 12px; }
  .back-home { height: 38px; padding: 0 12px; font-size: 13px; }
  .quick-nav { width: calc(100% - 20px); margin: 0 auto; }
}

.scene-card-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.scene-card-button small {
  display: block;
  margin-top: 10px;
  color: #245db4;
  font-size: 12px;
  font-weight: 650;
}

.scene-card-button.active {
  border-color: #245db4;
  background: #eef5ff;
}

.scene-detail {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #cfe0f4;
  border-radius: 11px;
  background: #f7fbff;
}

.scene-detail[hidden] { display: none; }
.scene-detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.scene-detail-head h3 { margin: 3px 0 0; font-size: 20px; }
.scene-detail-head button { border: 0; background: transparent; color: #245db4; cursor: pointer; font: inherit; font-size: 13px; }
.scene-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 18px; }
.scene-detail-grid > div { padding: 14px 16px; border: 1px solid #dfe8f2; border-radius: 9px; background: #fff; }
.scene-detail-grid strong { color: #163c67; }
.scene-detail-grid p { margin: 5px 0 0; color: #627894; font-size: 13px; }
.scene-detail-note { margin: 14px 0 8px; color: #49627d; }
.policy-link { color: #245db4; font-size: 13px; }

.checklist-cta {
  gap: 9px;
  padding: 7px 13px;
  border-color: #e3a23d;
  background: #fff8e9;
  color: #8a5510;
  box-shadow: 0 5px 14px rgba(181, 110, 19, .12);
  text-align: left;
  transition: .18s;
}

.checklist-cta:hover {
  border-color: #c6811f;
  background: #fff2d2;
  box-shadow: 0 7px 17px rgba(181, 110, 19, .18);
  transform: translateY(-1px);
}

.checklist-cta-icon {
  padding: 3px 5px;
  border-radius: 4px;
  background: #d99221;
  color: #fff;
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0;
}

.checklist-cta > span:last-child { display: flex; flex-direction: column; }
.checklist-cta strong { font-size: 14px; line-height: 1.35; }
.checklist-cta small { color: #a36c25; font-size: 10px; font-weight: 500; line-height: 1.35; }

.checklist-promo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px 28px;
  border: 1px solid #cfe0f4;
  border-left: 4px solid #245db4;
  border-radius: 14px;
  background: linear-gradient(120deg, #ffffff 0%, #f4f8fd 100%);
  box-shadow: 0 7px 22px rgba(24, 59, 101, .05);
  scroll-margin-top: 76px;
}

.checklist-file {
  width: 76px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #c4daf2;
  border-radius: 9px;
  background: #fff;
  color: #245db4;
  box-shadow: 0 5px 14px rgba(36, 93, 180, .1);
}

.checklist-file strong { font-size: 22px; line-height: 1; }
.checklist-file span { margin-top: 8px; color: #627894; font-size: 11px; }
.checklist-copy h2 { margin: 4px 0 5px; color: #163c67; font-size: 22px; line-height: 1.35; }
.checklist-copy > p:not(.eyebrow) { margin: 0; color: #536b87; }
.checklist-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.checklist-badges span { padding: 3px 9px; border-radius: 999px; background: #eaf3fd; color: #245db4; font-size: 11px; font-weight: 650; }
.checklist-actions { display: flex; gap: 9px; }
.checklist-actions .button { white-space: nowrap; }

@media (max-width: 620px) {
  .scene-detail { padding: 18px; }
  .scene-detail-grid { grid-template-columns: 1fr; }
}

.estimate-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

#estimate { scroll-margin-top: 76px; }

.estimate-modes {
  display: inline-flex;
  padding: 4px;
  border-radius: 8px;
  background: #edf3f8;
}

.estimate-modes button {
  min-width: 112px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #627894;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.estimate-modes button.active {
  background: #fff;
  color: #245db4;
  box-shadow: 0 2px 7px rgba(22, 60, 103, .12);
}

.data-help-toggle {
  border: 0;
  background: transparent;
  color: #245db4;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.data-help {
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid #cfe0f4;
  border-radius: 10px;
  background: #f7fbff;
  color: #536b87;
}

.data-help[hidden], .estimate-mode-panel[hidden] { display: none; }
.data-help strong { color: #163c67; }
.data-help ol { margin: 8px 0; padding-left: 21px; }
.data-help li { margin: 4px 0; }
.data-help p { margin: 6px 0 0; font-size: 13px; }
.estimate-mode-panel { display: none; }
.estimate-mode-panel.active { display: block; }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 18px; align-items: stretch; }
.calc-form, .detail-form { min-width: 0; }
.form-section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 13px; }
.form-section-title strong { color: #163c67; font-size: 16px; }
.form-section-title span { color: #7b8da3; font-size: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-grid label, .bonus-row label { min-width: 0; color: #263f5d; font-weight: 650; }
.field-grid input, .bonus-row input, .bonus-row select {
  display: block;
  width: 100%;
  min-height: 43px;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid #d7e2ed;
  border-radius: 8px;
  background: #fff;
  color: #152a48;
  font: inherit;
  outline: none;
}

.field-grid input:focus, .bonus-row input:focus, .bonus-row select:focus { border-color: #245db4; box-shadow: 0 0 0 3px rgba(36, 93, 180, .1); }
.field-grid small { display: block; min-height: 20px; margin-top: 3px; color: #7b8da3; font-size: 11px; font-weight: 400; line-height: 1.45; }
.income-field-note { color: #496b92 !important; }
.income-field-help { margin-top: 6px; color: #245db4; font-size: 11px; }
.income-field-help summary { cursor: pointer; font-weight: 650; }
.income-field-help > div { display: grid; gap: 3px; margin-top: 7px; padding: 9px 10px; border-left: 3px solid #7ea7d5; border-radius: 0 7px 7px 0; background: #f3f8fd; color: #58718d; font-weight: 400; line-height: 1.45; }
.income-field-help b { color: #24527f; }
.income-field-help em { color: #7b8da3; font-style: normal; }
.calc-form > .button, .detail-form > .button { margin-top: 15px; }
.detail-section { margin-bottom: 15px; padding: 18px; border: 1px solid #dfe8f2; border-radius: 11px; background: #fbfdff; }
.bonus-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 13px; margin-top: 13px; }
.factor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 13px; }
.factor-grid label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #dfe8f2; border-radius: 8px; background: #fff; color: #49627d; cursor: pointer; }
.factor-grid input { width: 16px; height: 16px; accent-color: #245db4; }
.detail-result { margin-top: 17px; }
.calc-result { min-height: 100%; }
.estimate-result.pay { background: #7a4313; }
.result-breakdown { margin: 14px 0; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.result-breakdown > div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; color: #d8e6f7; font-size: 13px; }
.result-breakdown b { color: #fff; white-space: nowrap; }
.income-conversion { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; margin: 11px 0; color: #d8e6f7; font-size: 12px; }
.income-conversion b { grid-column: 1/-1; color: #fff; margin-bottom: 3px; }
.result-warnings { margin-top: 12px; padding: 11px 13px; border-left: 4px solid #e5a13a; border-radius: 8px; background: #fff3d8; color: #5e4b2d; font-size: 12px; }
.result-warnings b { color: #9a6414; font-size: 13px; }
.result-warnings ul { margin: 5px 0 0; padding-left: 18px; }
.result-warnings li { margin: 3px 0; }
.result-disclaimer { display: block; margin-top: 12px; color: #bdd0e7; font-size: 11px; }

@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-result { min-height: 0; }
  .checklist-promo { grid-template-columns: auto minmax(0, 1fr); }
  .checklist-actions { grid-column: 2; }
}

@media (max-width: 620px) {
  .estimate-toolbar { align-items: stretch; flex-direction: column; }
  .estimate-modes { display: flex; width: 100%; }
  .estimate-modes button { flex: 1; min-width: 0; padding: 8px; }
  .data-help-toggle { align-self: flex-start; text-align: left; }
  .field-grid, .bonus-row, .factor-grid { grid-template-columns: 1fr; }
  .form-section-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .detail-section { padding: 15px; }
  .income-conversion { grid-template-columns: 1fr; }
  .checklist-promo { grid-template-columns: 1fr; padding: 21px 18px; }
  .checklist-file { width: 64px; height: 72px; }
  .checklist-copy h2 { font-size: 20px; }
  .checklist-actions { grid-column: 1; width: 100%; }
  .checklist-actions .button { flex: 1; padding-inline: 10px; }
  .checklist-cta { flex: 1 1 190px; }
}
