:root {
  --navy: #0f2438;
  --ink: #16212d;
  --muted: #607083;
  --line: #e4e9ef;
  --soft: #f5f7fa;
  --gold: #b68a35;
  --blue: #2f6f9f;
  --green: #16805d;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 36, 56, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.brand { font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.brand small { color: var(--gold); }
.nav { display: flex; gap: 22px; font-size: .94rem; color: var(--muted); }
.nav a:hover { color: var(--navy); }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 90px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(15,36,56,.96), rgba(20,60,83,.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cpath fill='%23ffffff' fill-opacity='.08' d='M0 560 1200 220v580H0z'/%3E%3Cpath fill='%23b68a35' fill-opacity='.10' d='M880 0h320v800H610z'/%3E%3C/svg%3E");
  color: var(--white);
}
.hero h1, .report-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: .98;
  margin: 12px 0 20px;
  max-width: 920px;
}
.hero p, .report-hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 720px; color: rgba(255,255,255,.82); }
.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: .78rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.trust-row span, .badge {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
  padding: 9px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,.9);
}

.valuation-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}
.valuation-form h1 { margin-top: 0; }
label { display: grid; gap: 7px; font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
label small { color: var(--muted); font-weight: 500; }
input, select {
  width: 100%;
  height: 48px;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  padding: 0 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus { outline: 3px solid rgba(47,111,159,.18); border-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.button:hover { filter: brightness(.96); }
.button:disabled { opacity: .72; cursor: wait; }
.button-wide { width: 100%; }
.ghost { background: #eef3f7; color: var(--navy); }
.form-note { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

.section { padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 72px); }
.container { max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 560px; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.15; margin: 0 0 18px; color: var(--navy); }
h3 { margin: 0 0 8px; color: var(--navy); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-grid article, .score-card, .panel, .notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,36,56,.06);
}

.report-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #1c5364);
}
.quality-ring {
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  font-weight: 900;
  background: conic-gradient(var(--gold) calc(var(--score) * 1%), rgba(255,255,255,.2) 0);
  position: relative;
}
.quality-ring:before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--navy); }
.quality-ring { isolation: isolate; }
.quality-ring strong,
.quality-ring span {
  position: relative;
  z-index: 1;
  line-height: 1;
}
.quality-ring strong { color: #fff; }
.quality-ring span { margin-top: 4px; font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.82); }

.value-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.value-band div { padding: 24px; border-right: 1px solid var(--line); }
.value-band div:last-child { border-right: 0; }
.value-band span, .score-card span { display: block; color: var(--muted); font-size: .9rem; }
.value-band strong { display: block; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2.1rem); margin-top: 7px; }
.bar-range { height: 12px; border-radius: 999px; background: #e7edf2; margin: 28px 0 32px; overflow: hidden; }
.bar-range span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green), var(--gold)); }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.score-card strong { font-size: 2rem; color: var(--navy); }
.progress { height: 8px; border-radius: 999px; background: #e8eef4; overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; background: var(--green); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.three-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.panel.accent { background: #f7fbf8; border-color: #cfe5d9; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
li { margin-bottom: 10px; }

.content-page header {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: var(--soft);
}
.content-page header > *, .content-body { max-width: 880px; margin-left: auto; margin-right: auto; }
.content-page h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.05; color: var(--navy); margin: 14px auto 16px; }
.content-page header p { font-size: 1.18rem; color: var(--muted); }
.content-body { padding: 46px 18px 76px; }
.content-body p { color: #35465a; }
.cta-block { margin: 42px 0; padding: 28px; border-radius: 8px; background: var(--navy); color: #fff; }
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,.82); }
details { border-top: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 800; color: var(--navy); }

.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 920px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { color: var(--muted); background: #f8fafc; }
.error { color: #9f2430; font-weight: 700; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
}
.footer strong { color: var(--navy); }
.footer-links { display: grid; gap: 8px; }

@media (max-width: 900px) {
  .hero, .split, .report-grid, .three-columns { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .nav { display: none; }
  .score-grid, .value-band { grid-template-columns: repeat(2, 1fr); }
  .report-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .form-grid, .feature-grid, .score-grid, .value-band { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .footer { flex-direction: column; }
}
