* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #2b2b2b;
  background: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.cert-page {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.cert-header {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
  padding: 0 0 132px;
}

.cert-logo {
  display: block;
  width: 150px;
  max-height: 78px;
  object-fit: contain;
}

.cert-header span {
  height: 2px;
  background: #cfcfcf;
}

.cert-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.query-panel {
  background: #eef4fb;
  padding: 44px 54px 36px;
}

.query-panel label {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.query-form {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 10px;
}

.query-form input {
  width: 100%;
  height: 70px;
  border: 1px solid #b9cbe3;
  padding: 0 34px;
  color: #333;
  font-size: 30px;
  font-weight: 700;
  outline: none;
}

.query-form input::placeholder {
  color: #717171;
}

.query-form button {
  height: 72px;
  border: 0;
  background: #003f96;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.query-form button:hover,
.query-form button:focus {
  background: #002b6f;
}

.result-panel {
  margin-top: 104px;
  border: 1px solid #d6d6d6;
  min-height: 360px;
  padding: 42px 54px;
  font-size: 26px;
  line-height: 1.85;
}

.result-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.result-panel p {
  margin: 8px 0;
}

.result-panel .certificate-no {
  color: #003f96;
}

.result-panel .muted {
  color: #777;
}

.result-panel .error {
  color: #b42318;
}

@media (max-width: 860px) {
  .cert-page {
    width: min(100% - 24px, 760px);
  }

  .cert-header {
    gap: 24px;
    padding-bottom: 64px;
  }

  .cert-logo {
    width: 120px;
  }

  .cert-header h1 {
    font-size: 28px;
  }

  .query-panel {
    padding: 28px 20px;
  }

  .query-panel label {
    font-size: 18px;
  }

  .query-form {
    grid-template-columns: 1fr;
  }

  .query-form input,
  .query-form button {
    height: 56px;
    font-size: 20px;
  }

  .result-panel {
    margin-top: 56px;
    padding: 28px 20px;
    font-size: 18px;
  }

  .result-panel h2 {
    font-size: 20px;
  }
}
