:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f6f7f2;
  color: #192a22;
  --green: #185e42;
  --muted: #50615a;
  --line: #d5dfd5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { width: min(1120px, calc(100% - 48px)); margin: auto; padding: 22px 0; font-weight: 700; font-size: .9rem; color: var(--green); }
main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro { padding-top: 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.2; letter-spacing: -.055em; }
h2 { font-size: 1.2rem; margin-bottom: 20px; }
.intro-copy { color: var(--muted); line-height: 1.8; margin-bottom: 30px; }
.rules { padding: 22px 24px; background: #e9f0e8; border: 1px solid #d6e2d6; border-radius: 16px; }
.rules h2 { margin-bottom: 12px; color: var(--green); font-size: 1rem; }
.rules ul { margin: 0 0 18px; padding-left: 1.3rem; }
.rules li { line-height: 1.65; margin: 6px 0; }
.rules p { color: var(--muted); margin: 0; border-top: 1px solid #ccd9cd; padding-top: 14px; font-size: .86rem; line-height: 1.65; }
.application { padding: clamp(22px, 4vw, 38px); background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 48px #293e2110; }
form { display: grid; gap: 19px; }
.field, .field-pair { min-width: 0; display: grid; gap: 7px; }
.field-pair { grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: .9rem; font-weight: 650; }
input, button { font: inherit; }
input { color: inherit; width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c8bd; background: #fbfcfa; border-radius: 8px; }
input:focus-visible, button:focus-visible { outline: 2px solid #247753; outline-offset: 3px; }
small { color: var(--muted); line-height: 1.55; }
button { cursor: pointer; color: white; background: var(--green); min-height: 48px; border: 0; border-radius: 9px; padding: 11px 16px; font-weight: 700; }
button:not(:disabled):hover { background: #104b34; }
button:disabled { cursor: wait; opacity: .7; }
.error { color: #a22728; line-height: 1.5; margin: 0; }
.success { background: #edf5ef; border-radius: 12px; padding: 18px; line-height: 1.65; }
.success h3 { margin-bottom: 8px; color: var(--green); }
.success p:last-child { margin-bottom: 0; }
code { overflow-wrap: anywhere; font-size: .85rem; }
@media (max-width: 780px) {
  main { grid-template-columns: minmax(0, 1fr); padding: 24px 0 40px; gap: 24px; }
  .intro { padding-top: 4px; }
  .intro-copy { margin-bottom: 20px; }
}
@media (max-width: 400px) {
  main, .top-inner { width: calc(100% - 32px); }
  .field-pair { grid-template-columns: 1fr; }
}
