* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f4f6f9;
    color: #1f2933;
}
header {
    background: #b3242b;
    color: #fff;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header h1 { font-size: 18px; margin: 0; font-weight: 600; }
nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
}
nav a:hover { background: rgba(255,255,255,0.18); }
nav a.active { background: rgba(255,255,255,0.28); }
.container { max-width: 880px; margin: 24px auto; padding: 0 18px; }
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 22px;
    margin-bottom: 18px;
}
h2 { font-size: 16px; margin: 0 0 16px; color: #b3242b; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field { flex: 1; min-width: 150px; margin-bottom: 14px; }
label { display: block; font-size: 13px; color: #52606d; margin-bottom: 6px; }
input, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd2d9;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
input:focus, select:focus { outline: none; border-color: #b3242b; }
button.primary {
    background: #b3242b;
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
button.primary:hover { background: #931c22; }
button.ghost {
    background: #e4e7eb;
    color: #323f4b;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.msg { margin-top: 14px; font-size: 14px; padding: 10px 14px; border-radius: 8px; }
.msg.error { background: #fdecea; color: #ab091e; }
.msg.ok { background: #e3f9e5; color: #0b6b2f; }
.msg.warn { background: #fff4e5; color: #a35000; }
.result-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.result-table th, .result-table td {
    border: 1px solid #e4e7eb;
    padding: 10px 12px;
    text-align: left;
}
.result-table th { background: #f4f6f9; color: #52606d; font-weight: 600; }
.price-big { font-size: 22px; font-weight: 700; color: #b3242b; }
.tag { display: inline-block; background: #fff4e5; color: #a35000; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
.muted { color: #7b8794; font-size: 12px; }
.datalist-wrap { position: relative; }
.footnote { font-size: 12px; color: #7b8794; margin-top: 10px; line-height: 1.6; }
