:root {
  color-scheme: light;
  --bg: #f5faf8;
  --ink: #102522;
  --muted: #63716e;
  --line: #dbe7e3;
  --accent: #075e50;
  --accent-2: #18a18b;
  --danger: #b94735;
  --paper: #ffffff;
  --soft: #eaf6f3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top right, #dff4ef, transparent 34%), var(--bg);
  color: var(--ink);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 6vw, 80px);
  background: rgb(245 250 248 / .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: var(--accent); color: #fff; font-weight: 900;
}
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 700; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 80px 0 56px; }
.eyebrow { color: var(--accent-2); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 850px; font-size: clamp(42px, 7vw, 86px); line-height: .95; letter-spacing: -0.06em; margin: 14px 0 24px; }
h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; }
.lead { max-width: 720px; color: var(--muted); font-size: 20px; line-height: 1.75; }
button, input, select, textarea {
  font: inherit;
  border-radius: 16px;
  border: 1px solid var(--line);
}
button {
  min-height: 48px;
  padding: 0 20px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}
button:active { transform: translateY(1px); }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.panel {
  margin: 28px 0;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgb(255 255 255 / .78);
  box-shadow: 0 24px 80px rgb(12 54 48 / .08);
}
.section-title { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.section-title > span {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 999px; background: var(--soft); color: var(--accent); font-weight: 900;
}
.section-title p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.upload-box {
  border: 1px dashed #9fcac1; border-radius: 22px; padding: 24px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #f9fffd;
}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
input, select, textarea { width: 100%; padding: 13px 14px; background: #fff; color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.check input { width: auto; }
.weights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.weights label { grid-template-columns: 110px 1fr 52px; align-items: center; }
.full { margin-top: 12px; }
textarea { min-height: 110px; resize: vertical; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.score { font-size: 42px; font-weight: 950; color: var(--accent); letter-spacing: -0.05em; }
.risk { color: var(--danger); }
.table-wrap { margin-top: 22px; overflow: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; background: #fff; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f2faf7; color: var(--accent); }
.progress { margin: 16px 0; color: var(--muted); line-height: 1.8; }
.advice {
  white-space: pre-wrap;
  line-height: 1.8;
  color: #243c38;
  padding: 20px;
  border-radius: 20px;
  background: #f8fffc;
  border: 1px solid var(--line);
}
.guide {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center;
  padding: 22px; background: rgb(18 36 33 / .64); backdrop-filter: blur(8px);
}
.guide.open { display: grid; }
.guide-card {
  position: relative; width: min(980px, 100%); padding: clamp(26px, 4vw, 52px);
  background: #fffdf6; border-radius: 28px; box-shadow: 0 50px 140px rgb(0 0 0 / .28);
}
.close { position: absolute; right: 22px; top: 18px; border: 0; background: transparent; font-size: 34px; color: var(--muted); }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.guide-steps article { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.guide-steps b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: #fff; }
.wide { width: 100%; }
@media (max-width: 820px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav a { margin: 0 12px 0 0; }
  .form-grid, .weights, .cards, .guide-steps { grid-template-columns: 1fr; }
  .weights label { grid-template-columns: 1fr; }
}
