.certificate-render-root {
  position: fixed;
  left: -10000px;
  top: 0;
  pointer-events: none;
  visibility: hidden;
}

.certificate {
  width: 559px;
  height: 794px;
  position: relative;
  background: #fff;
  font-family: "Times New Roman", Times, serif;
  color: #000;
  overflow: hidden;
  box-sizing: border-box;
}

.certificate-border-outer {
  position: absolute;
  inset: 6px;
  border: 3px solid #005b9c;
  pointer-events: none;
}

.certificate-border-inner {
  position: absolute;
  inset: 12px;
  border: 1px solid #005b9c;
  pointer-events: none;
}

.certificate-watermark {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  opacity: 0.06;
  pointer-events: none;
}

.certificate-content {
  position: relative;
  z-index: 1;
  padding: 22px 28px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.cert-logo-block {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.cert-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.cert-org-text {
  font-size: 11px;
  line-height: 1.25;
  color: #005b9c;
}

.cert-org-text .org-name {
  font-weight: bold;
  font-size: 12px;
}

.cert-branch-top {
  text-align: right;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 9px;
  color: #005b9c;
  max-width: 180px;
  line-height: 1.3;
}

.cert-system-title {
  text-align: center;
  color: #005b9c;
  font-weight: bold;
  font-size: 11px;
  line-height: 1.25;
  margin: 4px 0;
}

.cert-filial {
  text-align: center;
  font-size: 10px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.cert-main-title {
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  margin: 8px 0 4px;
  letter-spacing: 0.2px;
}

.cert-number {
  text-align: center;
  font-size: 12px;
  margin-bottom: 14px;
}

.cert-fields {
  flex: 1;
  font-size: 12px;
  line-height: 1.45;
}

.cert-field-row {
  margin-bottom: 2px;
}

.cert-field-row .label {
  font-style: italic;
}

.cert-field-row .value {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cert-field-row .value-inline {
  font-style: normal;
}

.cert-field-hint {
  font-size: 8px;
  font-style: italic;
  margin-top: -2px;
  margin-bottom: 6px;
}

.cert-result {
  font-size: 11px;
  line-height: 1.35;
  margin: 10px 0 8px;
}

.cert-verdict {
  font-size: 11px;
  font-weight: bold;
  line-height: 1.35;
  margin-bottom: 12px;
}

.cert-footer {
  margin-top: auto;
  font-size: 11px;
}

.cert-mark-place {
  font-style: italic;
  margin-bottom: 10px;
}

.cert-signature-line {
  font-size: 12px;
  margin-bottom: 2px;
}

.cert-signature-line .sig-position,
.cert-signature-line .sig-name {
  text-decoration: underline;
}

.cert-signature-line .sig-line {
  display: inline-block;
  min-width: 100px;
  border-bottom: 1px solid #000;
  vertical-align: bottom;
  margin: 0 4px;
}

.cert-signature-hints {
  font-size: 8px;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cert-date {
  font-size: 12px;
}

.cert-date .date-value {
  text-decoration: underline;
}
