/* ── Секції ── */
.section { animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }

/* ── Сертифікат ── */
.cert-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}
.cert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(18,120,184,.28);
}
.cert-head {
  background: linear-gradient(135deg, #1E3FD8 0%, #1228A8 100%);
  padding: 20px 24px 18px;
  position: relative; overflow: hidden;
}
.cert-head::before {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
  border-radius: 50%;
}
.cert-body { padding: 22px 24px 26px; }

.cert-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  cursor: pointer; background: none; border: none;
  font-family: var(--font); padding: 0;
  margin-bottom: 18px;
  transition: color .15s;
}
.cert-back:hover { color: var(--blue); }

.clabel {
  font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 700; margin-bottom: 4px;
}
.cname {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -.01em;
}
.course-row {
  display: flex; align-items: center;
  gap: 9px; flex-wrap: wrap; margin-bottom: 16px;
}
.course-name { font-size: 15px; font-weight: 700; color: var(--deep); }
.grade-pill {
  font-size: 12px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px; color: #fff;
}
.grade-lbl { font-size: 12.5px; color: var(--muted); }

.cmeta {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.cmeta-item { flex: 1; min-width: 90px; }
.cmeta-item b { font-size: 13.5px; font-weight: 700; display: block; margin-top: 3px; }

.skills-title {
  font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 700; margin-bottom: 12px;
}

.cert-foot {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between;
  align-items: center; font-size: 11.5px; color: var(--muted);
}
.cert-foot code {
  font-family: monospace; font-size: 11.5px;
  color: var(--ink); font-weight: 700;
}

/* ── Not found ── */
.notfound {
  text-align: center; padding: 48px 20px;
  max-width: 400px; margin: 0 auto;
}
.notfound .big { font-size: 52px; margin-bottom: 14px; }
.notfound h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.notfound p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }

/* ── Loader ── */
.loader-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 20px; gap: 16px;
}