:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-muted: #ebe7dd;
  --text: #1d2320;
  --muted: #65706a;
  --line: #d8d1c5;
  --accent: #0f766e;
  --accent-dark: #0b4f49;
  --amber: #a15c07;
  --danger: #9f2d2d;
  --focus: #1d4ed8;
  --shadow: 0 18px 45px rgba(32, 29, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(216, 209, 197, 0.9);
  background: rgba(246, 244, 239, 0.93);
  backdrop-filter: blur(12px);
}

.brand,
.header-link,
.site-footer a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 46%, var(--text) 46%, var(--text) 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--text) 46%, var(--text) 54%, transparent 54%),
    var(--surface);
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--text);
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: 56px 0 40px;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(36px, 7vw, 76px);
}

h2 {
  font-size: 24px;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  color: #3f4743;
  font-size: 14px;
}

.signal-panel,
.form-shell,
.info-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.signal-panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.signal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.signal-head strong {
  color: var(--text);
  font-size: 28px;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 10px;
  height: 180px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
    #f8f7f3;
}

.signal-bars span {
  height: var(--h);
  min-height: 24px;
  border-radius: 6px 6px 3px 3px;
  background: var(--accent);
}

.signal-bars span:nth-child(2),
.signal-bars span:nth-child(5) {
  background: var(--amber);
}

.score-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.score-list div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.score-list dt {
  font-weight: 800;
}

.score-list dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 8px 0 72px;
}

.info-column {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.info-block {
  padding: 20px;
}

.info-block.muted {
  background: var(--surface-muted);
}

.info-block h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.info-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.info-block p {
  margin: 0;
  color: var(--muted);
}

.form-shell {
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-head {
  max-width: 700px;
  margin-bottom: 24px;
}

.form-head p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.consent {
  font-weight: 700;
}

.field label span {
  color: var(--danger);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #bdb5aa;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 11px 12px;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.28);
  outline-offset: 2px;
  border-color: var(--focus);
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #3f4743;
  font-size: 14px;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.submit-button {
  min-height: 50px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.form-message.success {
  color: var(--accent-dark);
}

.form-message.error {
  color: var(--danger);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 16px;
  }

  .intro-section,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .intro-section {
    min-height: auto;
    padding-top: 40px;
  }

  .signal-panel {
    order: -1;
  }

  .info-column {
    position: static;
  }
}

@media (max-width: 640px) {
  main,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }

  .signal-panel,
  .form-shell,
  .info-block {
    padding: 18px;
  }

  .score-list,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
