:root {
  --bg1: #eaf3ff;
  --bg2: #f7fbff;
  --card: rgba(255, 255, 255, 0.28);
  --card-strong: rgba(255, 255, 255, 0.44);
  --border: rgba(255, 255, 255, 0.54);
  --text: #122033;
  --muted: #5d6f88;
  --primary: #1789fc;
  --primary-strong: #0f6fd1;
  --shadow: 0 25px 60px rgba(23, 137, 252, 0.14);
  --shadow-soft: 0 12px 30px rgba(18, 32, 51, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Times New Roman", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(23, 137, 252, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(0, 168, 255, 0.16), transparent 28%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto 40px;
  display: grid;
  gap: 22px;
}

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 30px;
}

.glass-soft {
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.result-card {
  padding: 28px;
}

.top-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 2px 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-top {
  margin-bottom: 24px;
}

.school-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.school-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
  box-shadow: 0 12px 28px rgba(23, 137, 252, 0.14);
}

.school-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.school-overline {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-strong);
  letter-spacing: 0.08em;
}

.school-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.school-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 760px;
}

.hero-title-block {
  padding: 8px 4px 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(23, 137, 252, 0.10);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-title-block h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.2;
}

.hero-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.section-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.lookup-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.field input {
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  outline: none;
  padding: 0 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.field input:focus {
  border-color: rgba(23, 137, 252, 0.65);
  box-shadow: 0 0 0 4px rgba(23, 137, 252, 0.10);
}

.captcha-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 16px;
}

.captcha-box {
  display: grid;
  gap: 8px;
}

.captcha-box label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.captcha-image {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.80);
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.55);
}

.captcha-image svg {
  max-width: 100%;
  height: auto;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 12px 24px rgba(23, 137, 252, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.message {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
}

.message.error {
  background: rgba(255, 92, 92, 0.12);
  color: #a12626;
  border: 1px solid rgba(255, 92, 92, 0.20);
}

.message.success {
  background: rgba(38, 191, 108, 0.12);
  color: #117442;
  border: 1px solid rgba(38, 191, 108, 0.18);
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.result-header h2 {
  margin: 0 0 4px;
  font-size: 30px;
}

.result-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.info-item {
  background: rgba(255, 255, 255, 0.60);
  border-radius: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 700;
}

.info-item strong {
  font-size: 16px;
  line-height: 1.4;
}

.score-table-wrap {
  overflow-x: auto;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
}

.score-table th,
.score-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
}

.score-table th {
  background: rgba(23, 137, 252, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .form-grid,
  .captcha-wrap,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    display: grid;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 20px, 1100px);
    margin: 16px auto 24px;
  }

  .hero-card,
  .result-card {
    padding: 18px;
  }

  .top-ribbon {
    font-size: 12px;
  }

  .school-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .school-logo {
    width: 68px;
    height: 68px;
  }

  .school-name {
    font-size: 22px;
  }

  .school-subtitle {
    font-size: 14px;
  }

  .hero-title-block h1 {
    font-size: 28px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
.copyright-footer {
  position: fixed;
  right: 20px;
  bottom: 14px;
  text-align: right;
  font-size: 14px;
  line-height: 1.45;
  color: #1f3b73;
  z-index: 999;
  opacity: 0.9;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 10px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .copyright-footer {
    right: 12px;
    bottom: 10px;
    font-size: 11px;
    line-height: 1.4;
    padding: 5px 8px;
    max-width: 80%;
  }
}