:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --ink: #1a1614;
  --muted: #6b635c;
  --accent: #c17a85;
  --accent-dark: #8f4a58;
  --accent-soft: #f5e8ec;
  --line: #e8e1d9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
}

@page {
  size: A4 landscape;
  margin: 0;
}

.cert-page {
  width: 297mm;
  height: 210mm;
  margin: 0;
  padding: 0;
  background: #fff;
}

.cert-sample {
  position: relative;
  width: 297mm;
  height: 210mm;
  overflow: hidden;
}

.cert-sample__paper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 14mm 16mm 12mm;
  background:
    radial-gradient(ellipse 70% 80% at 18% 50%, rgba(245, 232, 236, 0.35), transparent 60%),
    radial-gradient(ellipse 55% 65% at 82% 40%, rgba(196, 168, 106, 0.08), transparent 55%),
    linear-gradient(180deg, #fffefb 0%, #faf4ef 52%, #f3ebe3 100%);
  border: 2px solid rgba(193, 122, 133, 0.55);
}

.cert-sample__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 84pt;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.cert-sample__paper > :not(.cert-sample__watermark) {
  position: relative;
  z-index: 1;
}

.cert-sample__paper::before,
.cert-sample__paper::after,
.cert-sample::before,
.cert-sample::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c17a85;
  z-index: 2;
  pointer-events: none;
}

.cert-sample__paper::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.cert-sample__paper::after {
  top: 8px;
  right: 8px;
  border-left: 0;
  border-bottom: 0;
}

.cert-sample::before {
  left: 8px;
  bottom: 8px;
  border-right: 0;
  border-top: 0;
}

.cert-sample::after {
  right: 8px;
  bottom: 8px;
  border-left: 0;
  border-top: 0;
}

.cert-sample__inner {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 28mm 1fr;
  gap: 8mm;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

.cert-sample__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-right: 4mm;
  border-right: 1px solid rgba(232, 225, 217, 0.95);
  text-align: center;
}

.cert-sample__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.cert-sample__mark {
  display: inline-grid;
  place-items: center;
  width: 12mm;
  height: 12mm;
  margin-bottom: 2mm;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8a4ae, #8f4a58);
  color: #fffcfa;
  font-family: var(--font-display);
  font-size: 16pt;
  font-weight: 700;
}

.cert-sample__logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17pt;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--ink);
}

.cert-sample__tagline {
  margin: 1.5mm 0 0;
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.35;
  color: var(--accent-dark);
  font-weight: 600;
}

.cert-sample__title {
  margin: 0 0 3mm;
  font-family: var(--font-display);
  font-size: 32pt;
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
}

.cert-sample__title::after {
  content: "";
  display: block;
  width: 42mm;
  height: 1.5px;
  margin: 3mm auto 0;
  background: linear-gradient(90deg, #c4a86a, #c17a85, #a35d6a);
}

.cert-sample__intro {
  margin: 0 0 2mm;
  font-size: 13.5pt;
  color: var(--muted);
}

.cert-sample__name {
  margin: 0 0 3mm;
  font-family: var(--font-display);
  font-size: 28pt;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}

.cert-sample__name::after {
  content: "";
  display: block;
  width: 55mm;
  height: 1px;
  margin: 2mm auto 0;
  background: var(--line);
}

.cert-sample__body {
  margin: 0 auto 3mm;
  max-width: 150mm;
  font-size: 13.5pt;
  line-height: 1.45;
  color: var(--muted);
}

.cert-sample__body strong {
  display: block;
  margin-top: 1.5mm;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5pt;
  line-height: 1.35;
}

.cert-sample__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2mm;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert-sample__tags li {
  padding: 1mm 2.5mm;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  font-size: 10pt;
  color: var(--muted);
}

.cert-sample__footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4mm;
  align-items: end;
  margin-top: auto;
  padding-top: 3mm;
  border-top: 1px solid rgba(232, 225, 217, 0.85);
  text-align: left;
  font-size: 10pt;
  color: var(--muted);
}

.cert-sample__meta p,
.cert-sample__sign p {
  margin: 0;
}

.cert-sample__sign {
  text-align: center;
}

.cert-sample__sign-name {
  font-family: var(--font-display);
  font-size: 14pt;
  font-style: italic;
  color: var(--ink);
}

.cert-sample__sign-name::after {
  content: "";
  display: block;
  width: 32mm;
  height: 1px;
  margin: 2mm auto 1.5mm;
  background: var(--accent);
}

.cert-sample__sign-role {
  font-size: 9pt;
}

.cert-sample__number {
  margin: 0;
  text-align: right;
  font-size: 10pt;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-weight: 600;
}
