:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #172033; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(880px, calc(100% - 32px)); margin: 48px auto; }
.hero { margin-bottom: 24px; }
.eyebrow { color: #4263eb; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 8px 0; font-size: clamp(28px, 5vw, 38px); letter-spacing: -.03em; }
.hero p { margin: 0; color: #63708a; }
.panel { padding: 26px; border: 1px solid #e5eaf3; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgb(29 48 82 / 6%); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: #34405a; font-size: 14px; font-weight: 650; }
label span { color: #8b95a8; font-size: 12px; font-weight: 500; }
input { grid-column: 1 / -1; width: 100%; height: 46px; padding: 0 13px; border: 1px solid #dce2ec; border-radius: 9px; color: #172033; font: inherit; font-weight: 400; outline: none; }
input:focus { border-color: #4263eb; box-shadow: 0 0 0 3px rgb(66 99 235 / 12%); }
button { margin-top: 22px; height: 46px; padding: 0 22px; border: 0; border-radius: 9px; color: #fff; background: #3157db; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #2548c6; }
.alert { margin-top: 18px; padding: 12px 14px; border: 1px solid #ffd1cc; border-radius: 9px; color: #9b2c21; background: #fff5f3; }
.result-panel { margin-top: 20px; }
.rules-panel { margin-top: 20px; }
.rules-panel h2 { margin-bottom: 16px; }
.rules-table-wrap { overflow-x: auto; }
.rules-table { min-width: 760px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2 { margin: 5px 0 0; font-size: 23px; }
.total { text-align: right; }
.total small, .facts small { display: block; color: #78839a; font-size: 12px; }
.total strong { display: block; margin-top: 2px; color: #168052; font-size: 27px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; padding: 16px; border-radius: 12px; background: #f6f8fc; }
.facts strong { display: block; margin-top: 7px; font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #edf0f5; text-align: left; }
th { color: #78839a; font-size: 12px; font-weight: 600; }
.fee { color: #168052; font-weight: 750; }
.note { margin: 14px 0 0; color: #78839a; font-size: 12px; line-height: 1.7; }
footer { margin: 18px 4px; color: #8791a3; font-size: 12px; text-align: center; }
@media (max-width: 600px) { .shell { margin: 26px auto; } .panel { padding: 19px; } .field-grid { grid-template-columns: 1fr; gap: 14px; } button { width: 100%; } .facts { grid-template-columns: repeat(2, 1fr); } .result-heading { align-items: flex-start; } }
