/* Письмо Санте: письмо, ответ, конверт, открытка, диплом — листы без шапки сайта, всё в мм листа */
@import url("https://fonts.googleapis.com/css2?family=Andika:wght@400;700&family=Caveat:wght@600;700&family=Nanum+Pen+Script&display=swap");

.sxf[hidden], #sx-to-own-box[hidden], #sx-nom-own-box[hidden] { display: none; }
.sx-field { display: flex; flex-direction: column; gap: 2px; font-size: 14px; margin-bottom: 6px; }
.sx-field input { font: 16px var(--body); padding: 6px 8px; border: 1.5px solid #d9cfb8; border-radius: 8px; }
.sx-check { display: block; font-size: 14px; margin: 2px 0; }
.sx-check input:disabled + * , .sx-check:has(input:disabled) { opacity: .45; }
.sx-sub { margin: 0 0 4px; font-size: 14px; font-weight: 700; }

.sheet.bare .sheet-body { display: block; }
.sx-page { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column; color: #3d3420;
  --hand: "Caveat", cursive; --print: "Andika", var(--body); font-family: var(--print);
  background: radial-gradient(circle at 92% 6%, rgba(255, 214, 120, .18) 0, transparent 30%), radial-gradient(circle at 6% 96%, rgba(150, 215, 140, .16) 0, transparent 32%), linear-gradient(180deg, #fffdf5 0%, #fdf6e3 100%); }
.lang-ko .sx-page { --hand: "Nanum Pen Script", cursive; --print: var(--body); }
.sx-emo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; line-height: 1; font-weight: 400; }
.sx-name { font: 700 1.45em/1 var(--hand); color: #2c4a7a; }
.lang-ko .sx-name { font-size: 1.7em; font-weight: 400; }
.sx-blank { display: inline-block; min-width: 45mm; border-bottom: 1.4px solid #8a7a4a; height: 1em; vertical-align: baseline; }
.sx-h { font: 700 32pt/1.1 var(--hand); color: #4a6b2a; text-align: center; margin: 1mm 0 0; }
.lang-ko .sx-h { font-weight: 400; font-size: 36pt; }
.sx-h .sx-emo { font-size: 20pt; vertical-align: 3px; }
.sx-subtitle { text-align: center; color: #8a7a4a; font-size: 10pt; margin: 0 0 3mm; font-style: italic; }
.sx-foot { position: absolute; left: 0; right: 0; bottom: 5mm; text-align: center; font-size: 8pt; color: #8a7a4a; z-index: 2; }

/* письмо ребёнка */
.sx-p-letter { padding: 12mm 13mm 13mm; }
.sx-p-letter .sheet-fields { position: relative; z-index: 1; margin-bottom: 1mm; }
.sx-deco { position: absolute; left: 0; top: 4mm; width: 100%; height: 40mm; pointer-events: none; }
.sx-letter { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3mm; }
.sx-greet { font-size: 15pt; line-height: 1.4; font-weight: 700; }
.sx-greet2 { font-size: 13pt; font-weight: 700; margin-top: -1.5mm; }
.sx-sec { font-size: 12pt; font-weight: 700; color: #4a6b2a; }
.sx-sec i { font-weight: 400; color: #8a7a4a; font-size: 10pt; }
.sx-deeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm; }
.sx-deed { background: #fff; border: 1.3px solid #d6c79a; border-radius: 4mm; padding: 2mm 2.5mm; display: flex; align-items: center; gap: 2mm; }
.sx-deed-e { font-size: 17pt; flex: none; }
.sx-deed-t { flex: 1; font-size: 9.5pt; line-height: 1.2; }
.sx-star { width: 9mm; height: 9mm; flex: none; }
.sx-draw-row { flex: 1; min-height: 0; display: grid; grid-template-columns: 2fr 1fr; gap: 3mm; }
.sx-frame { position: relative; min-height: 0; background: #fff; border: 1.6px dashed #b8862c; border-radius: 5mm; }
.sx-frame-wide { flex: 1; }
.sx-frame-cap { position: absolute; left: 4mm; right: 3mm; top: 2.5mm; font-size: 10.5pt; font-weight: 700; color: #8a6a2a; }
.sx-frame-cap .sx-emo { font-size: 13pt; vertical-align: -2px; }
.sx-sign { font-size: 12pt; font-weight: 700; text-align: right; padding-right: 2mm; }
.sx-wblock { display: flex; flex-direction: column; gap: 1mm; }
.sx-wrow { display: flex; align-items: flex-end; gap: 3mm; }
.sx-wpre { font-size: 12pt; font-weight: 700; padding-bottom: 1mm; white-space: nowrap; }
.sx-wline { flex: 1; position: relative; height: 11.5mm; border-top: 1px solid #cfdcbf; border-bottom: 1.5px solid #6b8f4a; }
.sx-wline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed #cfdcbf; }
.sx-wshort .sx-wline { flex: none; width: 24mm; }
.sx-trace { position: absolute; left: 2mm; bottom: -1.4mm; font: 30pt/1 "Andika", var(--body); color: transparent; -webkit-text-stroke: .9px #9aa98a; letter-spacing: 1.5mm; white-space: nowrap; }
.lang-ko .sx-trace { font-family: var(--body); bottom: .3mm; font-size: 26pt; }
.sx-ruled { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 1mm 0; }
.sx-rline { flex: 1; position: relative; border-bottom: 1.3px solid #9fb88a; }
.sx-rhint { position: absolute; left: 0; bottom: 1.2mm; font-size: 9pt; font-style: italic; color: #a89a6a; }

/* ответ */
.sx-p-answer, .sx-p-cert { background: linear-gradient(180deg, #fbfdff 0%, #eef5fb 100%); }
.sx-border { position: absolute; left: 8mm; top: 8mm; pointer-events: none; }
.sx-ans { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18mm 24mm 22mm; }
.sx-p-answer .sx-foot { bottom: 16.5mm; }
.sx-ans-top { text-align: center; font-size: 38pt; }
.sx-ans-h { color: #b8453a; font-size: 36pt; margin-bottom: 3mm; }
.sx-ans-body { flex: 1; min-height: 0; font: 600 22.5pt/1.3 var(--hand); color: #2c4a7a; }
.lang-ko .sx-ans-body { font-size: 27pt; font-weight: 400; line-height: 1.35; }
.sx-ans-body p { margin: 0 0 2.4mm; text-indent: 8mm; }
.sx-ans-body p.sx-hello { text-indent: 0; font-weight: 700; font-size: 25pt; }
.sx-ans-foot { display: flex; align-items: center; justify-content: flex-end; gap: 6mm; }
.sx-stamp { width: 32mm; height: 32mm; transform: rotate(-12deg); flex: none; }
.sx-ans-sign { font: 700 21pt/1.2 var(--hand); color: #2c4a7a; text-align: right; }
.lang-ko .sx-ans-sign { font-weight: 400; font-size: 24pt; }
.sx-ans-place { font: 400 9pt/1.3 var(--print); color: #8a7a4a; margin-top: 1.5mm; }

/* конверт */
.sx-p-env { padding: 0; }
.sx-full { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.sx-env-head { position: relative; z-index: 2; padding: 6mm 13mm 0; }
.sx-p-env .sx-h { font-size: 24pt; margin: 0; }
.sx-steps { margin: 1mm 0 0; padding-left: 5mm; font-size: 8.5pt; color: #6b5e3a; columns: 2; column-gap: 8mm; }
.sx-svg-t { font-family: "Andika", var(--body); }
.sx-svg-hand { font-family: var(--hand); font-weight: 700; }
.lang-ko .sx-svg-hand { font-weight: 400; }

/* открытка: половина листа, внутри А5-«картонка», повёрнутая на 90° */
.sx-p-card { padding: 0; background: #fffdf7; }
.sx-half { position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden; }
.sx-half-top { top: 0; }
.sx-half-bottom { top: 50%; }
.sx-fold { position: absolute; left: 0; right: 0; top: 50%; border-top: .5mm dashed #b8862c; z-index: 3; }
.sx-card-in { position: absolute; left: 50%; top: 50%; transform: rotate(90deg); display: flex; flex-direction: column; align-items: center; }
.sx-card-front { padding: 13mm 10mm 9mm; }
.sx-card-hi { font: 700 32pt/1 var(--hand); text-align: center; }
.sx-card-to { font: 700 36pt/1.05 var(--hand); text-align: center; }
.lang-ko .sx-card-hi, .lang-ko .sx-card-to { font-weight: 400; }
.sx-card-pic { flex: 1; min-height: 0; width: 100%; margin: 4mm 0; }
.sx-card-year { font: 700 28pt/1 var(--hand); letter-spacing: 2mm; }
.sx-card-flakes { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.sx-card-back { justify-content: center; gap: 3mm; }
.sx-card-flake { width: 16mm; height: 16mm; }
.sx-card-made { font-size: 11pt; color: #6b5e3a; }
.sx-card-name { font: 700 26pt/1.1 var(--hand); color: #2c4a7a; }
.sx-card-line { min-width: 60mm; height: 9mm; }
.sx-card-site { font-size: 8pt; color: #a08c5a; margin-top: 4mm; }

/* диплом */
.sx-p-cert .sx-border { pointer-events: none; }
.sx-cert { position: absolute; left: 21mm; right: 21mm; top: 21mm; bottom: 21mm; border: 1.6mm double #d4a94a; border-radius: 4mm; background: rgba(255, 255, 255, .72);
  display: flex; flex-direction: column; align-items: center; padding: 8mm 9mm 7mm; text-align: center; }
.sx-medal { width: 34mm; height: 45mm; flex: none; }
.sx-cert-title { font: 700 54pt/.95 var(--hand); margin-top: 2mm; }
.lang-ko .sx-cert-title { font: 700 44pt/1.1 var(--body); letter-spacing: 8mm; margin-right: -8mm; }
.sx-cert-sub { font-style: italic; font-size: 14pt; color: #8a6a2a; letter-spacing: 1mm; }
.lang-ko .sx-cert-sub { font-style: normal; font: 700 17pt/1.2 var(--body); letter-spacing: 1mm; }
.sx-cert-for { margin-top: auto; font-size: 13pt; color: #6b5e3a; max-width: 140mm; }
.sx-cert-name { font: 700 44pt/1.1 var(--hand); color: #2c4a7a; min-height: 16mm; max-width: 100%; overflow-wrap: anywhere; }
.lang-ko .sx-cert-name { font-weight: 400; }
.sx-cert-name.sx-blank { width: 110mm; }
.sx-cert-line2 { font-size: 13pt; color: #6b5e3a; }
.sx-cert-nom { margin-top: 4mm; font: 700 26pt/1.15 var(--hand); max-width: 140mm; }
.lang-ko .sx-cert-nom { font: 400 22pt/1.45 var(--hand); }
.sx-cert-foot { margin-top: auto; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 2mm; }
.sx-cert-sig { display: flex; flex-direction: column; align-items: center; gap: 1mm; }
.sx-cert-who { font: 700 18pt/1 var(--hand); color: #2c4a7a; white-space: nowrap; }
.lang-ko .sx-cert-who { font-weight: 400; font-size: 20pt; }
.sx-cert-line { width: 36mm; border-bottom: 1.2px solid #8a7a4a; }
.sx-three .sx-cert-line { width: 30mm; }
.sx-three .sx-cert-stamp { width: 24mm; height: 24mm; }
.sx-cert-stamp { width: 28mm; height: 28mm; }
.sx-cert-date { margin-top: 3mm; font-size: 10pt; color: #8a7a4a; }
.sx-stamp-corner { position: absolute; right: 7mm; top: 9mm; width: 30mm !important; height: 30mm !important; }
