/* Подарочный сертификат: экран и печать (A4 альбомная) */
.cert {
  position: relative; overflow: hidden; text-align: left; margin: 0 auto 28px; max-width: 900px;
  background: #fff; color: #1b1340; border: 4px solid #1b1340; border-radius: 28px;
  box-shadow: 10px 10px 0 #1b1340; padding: clamp(20px, 4vw, 44px);
  background-image: radial-gradient(#e6dcff 1.6px, transparent 1.6px); background-size: 22px 22px;
}
.cert::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 79, 163, .14), transparent 40%, rgba(46, 196, 255, .14));
}
.cert > * { position: relative; }
.cert-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cert-logo { font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 22px; }
.cert-logo b { color: #ff4fa3; }
.cert-title { font-size: clamp(26px, 5vw, 46px); margin: 14px 0 6px; }
.cert-to { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(20px, 3.4vw, 30px); color: #7b3fe4; margin: 0 0 10px; }
.cert-plan { font-size: 17px; max-width: 640px; margin: 0 0 12px; }
.cert-msg { font-size: 19px; font-weight: 800; font-style: italic; background: #fff6cc; border: 2px dashed #1b1340; border-radius: 14px; padding: 10px 14px; margin: 0 0 8px; }
.cert-from { font-weight: 800; margin: 0 0 6px; }
.cert-bottom { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 20px; }
.cert-code {
  background: #ffd23f; border: 3px solid #1b1340; border-radius: 18px; padding: 12px 18px; box-shadow: 4px 4px 0 #1b1340;
  display: flex; flex-direction: column; rotate: -2deg;
}
.cert-code span { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.cert-code b { font-family: "Unbounded", sans-serif; font-size: clamp(20px, 3.4vw, 28px); letter-spacing: .04em; white-space: nowrap; }
.cert-code small { font-weight: 700; }
.cert-how ol { margin: 6px 0 0; padding-left: 20px; }
.cert-how li { margin: 2px 0; font-weight: 700; font-size: 15px; }
.cert-qr { width: 120px; height: 120px; background: #fff; border: 3px solid #1b1340; border-radius: 12px; padding: 6px; }
.cert-qr svg { width: 100%; height: 100%; display: block; }
.cert-deco { font-size: 26px; letter-spacing: 4px; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cert-used { font-weight: 900; color: var(--pink); }
@media (max-width: 700px) {
  .cert-bottom { grid-template-columns: 1fr; }
  .cert-deco { display: none; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff !important; }
  .no-print, .footer { display: none !important; }
  .page { padding: 0; max-width: none; }
  .cert { box-shadow: none; margin: 0; max-width: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Пример сертификата на странице покупки */
.cert-sample { rotate: 2deg; max-width: 460px; justify-self: center; padding: 24px; box-shadow: 8px 8px 0 #1b1340; }
.cert-sample .cert-to { font-size: 24px; margin-top: 12px; }
.cert-sample .cert-msg { font-size: 16px; }
.cert-sample .cert-code { display: inline-flex; margin-top: 8px; }
.tariffs-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .tariffs-2 { grid-template-columns: 1fr; } .cert-sample { rotate: 0deg; } }
