:root {
  --brand: #2563eb;
  --brand-deep: #1e40af;
  --green: #16a34a;
  --ink: #1f2937;
  --ink-soft: #6b7280;
  --paper: #ffffff;
  --sand: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 50% 0%, #eaf1ff 0%, #f1f5f9 55%, #e7edf6 100%);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 40px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow:
    0 20px 50px -20px rgba(15, 23, 42, 0.25),
    0 4px 14px -8px rgba(15, 23, 42, 0.15);
  text-align: center;
}

.logo {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 16px;
}

.name {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: var(--ink);
}

.address {
  margin: 10px auto 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 4px;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 8px 18px -6px rgba(22, 163, 74, 0.6);
}

.check svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.issued {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
}

.dept {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.dept[hidden] {
  display: none;
}

.dept-label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.chooser {
  margin: 18px 0 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chooser[hidden] {
  display: none;
}

.chooser-title {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.chooser-link {
  display: block;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--sand);
  background: #f8fafc;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.chooser-link:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--brand-deep);
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 0;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.contact-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.fill {
  fill: currentColor;
}

.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp {
  background: #e8f9ee;
  color: #128c4a;
  border-color: #bbf0cf;
}

.whatsapp:hover {
  background: #d8f5e3;
}

.phone {
  background: #eff6ff;
  color: var(--brand-deep);
  border-color: #bfdbfe;
}

.phone:hover {
  background: #e0edff;
}

.note {
  margin: 20px 6px 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 520px) {
  body {
    padding-top: 56px;
  }

  .card {
    padding: 34px 34px 28px;
  }

  .logo {
    width: 96px;
    height: 96px;
  }

  .name {
    font-size: 21px;
  }

  .contacts {
    flex-direction: row;
  }

  .contact {
    flex: 1;
  }
}
