:root {
  --navy: #0f1b2d;
  --gold: #f5b800;
  --gray: #eceff3;
  --muted: #5c6b7a;
  --line: #e2e6ea;
  --white: #fff;
  --sub: #d5dbe3;
  --max: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-bottom: 68px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--gray);
  color: var(--navy);
  line-height: 1.45;
}

img { max-width: 100%; display: block; }

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.rule {
  width: 48px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 18px;
  border-radius: 2px;
}

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 36px 24px 20px;
  position: relative;
  overflow: hidden;
}

.hero.photo {
  background:
    linear-gradient(180deg, rgba(15, 27, 45, 0.82), rgba(15, 27, 45, 0.92)),
    url("../assets/hero-m.jpg") center/cover;
}

.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; }

.sub {
  font-size: 17px;
  line-height: 1.45;
  color: var(--sub);
  margin-top: 14px;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-width: 520px;
}

.search input,
.field,
select,
textarea {
  font-family: inherit;
  font-size: 17px;
  padding: 16px;
  border-radius: 6px;
  border: none;
  background: var(--white);
  color: var(--navy);
  width: 100%;
}

.search input::placeholder { color: #8a94a0; }

.search input:focus,
.field:focus,
select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.suggest-wrap { position: relative; }

.suggest {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.16);
  z-index: 5;
  overflow: hidden;
}

.suggest.open { display: block; }

.suggest .hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px 6px;
}

.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  padding: 10px 14px;
  cursor: pointer;
}

.suggest button:hover,
.suggest button:focus { background: var(--gray); }

.btn {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  padding: 16px;
  border-radius: 6px;
  border: none;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: block;
  width: 100%;
}

.btn:hover { filter: brightness(0.97); }
.btn:focus { outline: 2px solid var(--white); outline-offset: 2px; }
.btn.secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.phone-link {
  margin-top: 10px;
  font-size: 15px;
  color: var(--sub);
}

.phone-link a,
.phone-link b { color: var(--white); font-weight: 700; text-decoration: none; }
.phone-link a:hover { color: var(--gold); }

.lower { background: var(--gray); padding: 16px 24px 28px; }
.lower-inner { max-width: var(--max); margin: 0 auto; }

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.06);
}

.row { display: flex; gap: 12px; align-items: flex-start; }

.ic {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic img { width: 28px; height: 28px; object-fit: contain; }

.t { font-size: 17px; font-weight: 700; line-height: 1.25; }
.d { font-size: 15px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

.stats { display: flex; gap: 8px; margin-bottom: 12px; }

.stat {
  flex: 1;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px 10px;
}

.stat .n { font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

.fine { font-size: 12px; line-height: 1.55; color: var(--muted); text-align: left; }
.fine a { color: var(--navy); }

.demo-banner {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.demo-banner span { color: var(--muted); font-weight: 500; }

.chart-card {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 14px 12px;
  margin-bottom: 12px;
  scroll-margin-bottom: 68px;
}

.chart-h { font-size: 17px; font-weight: 700; }
.chart-s { font-size: 13px; color: var(--muted); margin: 4px 0 10px; line-height: 1.35; }

.chart { touch-action: none; user-select: none; cursor: ew-resize; }

.chart-plot { position: relative; height: 168px; }

.chart svg { width: 100%; height: 168px; display: block; }

.chart .area { fill: rgba(15, 27, 45, 0.08); }
.chart.gold .area { fill: rgba(245, 184, 0, 0.22); }
.chart .line {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart.gold .line { stroke: var(--gold); }
.chart .guide {
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  opacity: 0.45;
}

.chart .knob {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--navy);
  box-shadow: 0 2px 6px rgba(15, 27, 45, 0.25);
  pointer-events: none;
  z-index: 2;
}

.chart .tip {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.chart .tip:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--navy);
  border-bottom-width: 0;
}

.chart .axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: 0 10px;
}

.draghint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.draghint b { color: var(--navy); }

.result .num {
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.result .kicker { color: var(--navy); }

.result .tag {
  display: inline-block;
  margin-top: 8px;
  background: var(--gray);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
}

.bars { margin-top: 16px; }
.bar {
  height: 10px;
  border-radius: 4px;
  background: var(--gray);
  margin-bottom: 8px;
  overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--navy); }
.bar i.g { background: var(--gold); width: 62%; }
.lbl {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-section {
  background: var(--navy);
  color: var(--white);
  padding: 40px 24px 36px;
}

.form-inner { max-width: var(--max); margin: 0 auto; }

.form-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
}

.form-section .sub { margin-bottom: 18px; }

.form-card {
  background: var(--white);
  color: var(--navy);
  border-radius: 10px;
  padding: 20px;
  margin-top: 8px;
}

.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}

.form-card .grp { margin-bottom: 14px; }

.form-card input,
.form-card select {
  border: 1px solid var(--line);
  background: #fafbfc;
}

.form-card .btn { margin-top: 4px; }

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

.form-success {
  display: none;
  background: var(--gray);
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.45;
}

.form-success.show { display: block; }
.form-success b { display: block; margin-bottom: 6px; font-size: 17px; }

.footer {
  background: var(--gray);
  padding: 28px 24px 96px;
}

.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer .fine + .fine { margin-top: 10px; }

.crosslink {
  margin-bottom: 16px;
  font-size: 14px;
}

.crosslink a { color: var(--navy); font-weight: 700; }

.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  z-index: 20;
  text-decoration: none;
  border-top: 3px solid var(--gold);
}

.sticky-call:hover { color: var(--gold); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 800px) {
  h1 { font-size: 52px; }
  .hero { padding: 72px 40px 48px; }
  .lower { padding: 32px 40px 48px; }
  .form-section { padding: 56px 40px 48px; }
  .footer { padding: 36px 40px 48px; }
  .form-section h2 { font-size: 40px; }
  .result .num { font-size: 56px; }
  .sticky-call { display: none; }
  .footer { padding-bottom: 48px; }
}

@media (min-width: 1100px) {
  :root { --max: 860px; }
}
