* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  min-height: 100vh;
  color: #222;
  padding: 20px;
}

.site-header {
  max-width: 1000px;
  margin: 0 auto 30px;
  text-align: center;
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-top: 4px solid #c8102e;
}

.logo { width: 110px; height: 110px; object-fit: contain; margin-bottom: 10px; }

.site-header h1 { font-size: 26px; color: #c8102e; letter-spacing: 2px; }
.site-header h2 { font-size: 20px; color: #333; margin-top: 6px; letter-spacing: 1px; }
.site-header .ru { font-size: 13px; color: #666; margin-top: 10px; line-height: 1.6; }

.search-section { max-width: 800px; margin: 0 auto 30px; text-align: center; }

.search-box {
  display: flex; gap: 10px; background: #fff; padding: 8px;
  border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.search-box input {
  flex: 1; border: none; outline: none; padding: 14px 24px;
  font-size: 15px; border-radius: 50px; background: transparent;
}

.search-box button {
  background: linear-gradient(135deg, #c8102e 0%, #a00d24 100%);
  color: #fff; border: none; padding: 14px 36px; border-radius: 50px;
  font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.35);
}

.hint { font-size: 13px; color: #888; margin-top: 12px; }

.hidden { display: none !important; }

#resultSection { max-width: 1000px; margin: 0 auto; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 16px 24px; border-radius: 12px 12px 0 0;
  border-bottom: 2px solid #eee;
}

.result-header h3 { font-size: 18px; color: #333; }

.rating-badge {
  background: linear-gradient(135deg, #c8102e, #a00d24);
  color: #ffd700; font-size: 22px; font-weight: bold;
  padding: 6px 18px; border-radius: 8px; letter-spacing: 3px;
}

.cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;
}

.card {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06); text-align: center;
}

.card h4 {
  font-size: 15px; color: #555; margin-bottom: 12px; font-weight: 600;
}

.cert-img, .plaque-img {
  width: 100%; height: auto; border-radius: 8px; border: 1px solid #eee;
}

.info-panel {
  background: #fff; border-radius: 0 0 12px 12px; margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06); overflow: hidden;
}

.info-panel table { width: 100%; border-collapse: collapse; }

.info-panel th {
  text-align: left; padding: 14px 24px; font-size: 14px; color: #666;
  font-weight: 500; background: #fafafa; width: 42%;
  border-bottom: 1px solid #f0f0f0; vertical-align: top;
}

.info-panel td {
  padding: 14px 24px; font-size: 14px; color: #222;
  border-bottom: 1px solid #f0f0f0; word-break: break-word;
}

#noResultSection {
  max-width: 800px; margin: 0 auto; background: #fff; padding: 40px;
  text-align: center; border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.no-result-msg { font-size: 17px; color: #c8102e; }

footer {
  max-width: 1000px; margin: 40px auto 0; text-align: center;
  font-size: 13px; color: #888; line-height: 1.8;
}

@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; border-radius: 16px; }
  .search-box button { width: 100%; }
  .site-header h1 { font-size: 20px; }
  .site-header h2 { font-size: 16px; }
  .info-panel th { width: 50%; padding: 12px 14px; font-size: 13px; }
  .info-panel td { padding: 12px 14px; font-size: 13px; }
}