* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(135deg, #eef2f7 0%, #dde7f0 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  color: #243044;
}
.card {
  background: #fff; width: 100%; max-width: 460px; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(40, 70, 110, .15); padding: 28px 26px; position: relative;
}
.lang-btn {
  position: absolute; top: 16px; right: 16px; padding: 5px 12px;
  border: 1.5px solid #d4deea; background: #f7fafd; border-radius: 20px;
  font-size: 12px; color: #5a6b80; cursor: pointer; transition: all .15s;
}
.lang-btn:hover { border-color: #3a6ea5; color: #3a6ea5; }
header { text-align: center; margin-bottom: 22px; }
header h1 { font-size: 22px; color: #1a3a5c; letter-spacing: 1px; }
.sub { font-size: 13px; color: #8294a8; margin-top: 4px; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; color: #5a6b80; margin-bottom: 8px; font-weight: 600; }

.truck-group { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.truck-btn {
  padding: 11px 0; border: 1.5px solid #d4deea; background: #f7fafd; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: #5a6b80; cursor: pointer; transition: all .15s;
}
.truck-btn:hover { border-color: #6ea8e0; }
.truck-btn.active { background: #3a6ea5; border-color: #3a6ea5; color: #fff; }

input[type=number], input[type=text], select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d4deea; border-radius: 9px;
  font-size: 16px; color: #243044; outline: none; transition: border .15s; background: #fff;
}
input:focus, select:focus { border-color: #3a6ea5; }
.cargo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cargo-grid input { font-size: 14px; padding: 11px 10px; }

.reminder {
  font-size: 12.5px; line-height: 1.6; color: #8a5a1a;
  background: #fff8ec; border: 1px solid #ffe0ad; border-radius: 9px; padding: 10px 12px; margin-top: 4px;
}

.calc {
  width: 100%; padding: 14px; background: #3a6ea5; color: #fff; border: none;
  border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer;
  letter-spacing: 2px; transition: background .15s; margin-top: 6px;
}
.calc:hover { background: #2f5d8c; }

.result {
  margin-top: 22px; padding: 18px; background: #f4f8fc; border-radius: 12px; border: 1px solid #e1ebf5;
}
.row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.row.main { font-size: 15px; color: #243044; font-weight: 600; }
.quote { font-size: 32px; font-weight: 800; color: #1a7a4a; letter-spacing: .5px; }
.dist { font-size: 13px; color: #6a7c90; margin-top: 6px; }

.consult {
  margin-top: 10px; padding: 12px 14px; background: #fdeeee; border: 1px solid #f3b9b9;
  border-radius: 9px; font-size: 14px; color: #b83a3a; line-height: 1.6; font-weight: 600;
}

.disclaimer {
  margin-top: 14px; font-size: 14px; line-height: 1.75; color: #4a5a6e;
  padding-top: 12px; border-top: 1px dashed #d4deea;
}
.disclaimer.emph {
  margin-top: 12px; padding: 12px 14px; border: none;
  background: #fff3e0; border-radius: 9px;
  font-size: 15px; font-weight: 700; color: #b5651d; line-height: 1.6;
}

footer { margin-top: 16px; text-align: center; }
.meta { font-size: 11px; color: #aab6c4; }
.hidden { display: none !important; }
