/* Certifikát a diplom: vlastní vzhled nezávislý na motivu, A4 na šířku (1123 × 794 px). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fraunces-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fraunces-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fraunces-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/baloo-2-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/baloo-2-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

.cert { position: relative; width: 1123px; height: 794px; box-sizing: border-box; overflow: hidden; transform-origin: 0 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert * { box-sizing: border-box; }
[data-cert-fit] { position: relative; overflow: hidden; }

/* dospělí */
.cert-adult { padding: 34px; background: #f6f1e7; color: #14213d; font-family: Manrope, system-ui, sans-serif; }
.cert-inner { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 48px 64px 40px; border: 2px solid #14213d; outline: 1px solid #b08d57; outline-offset: -10px; background: radial-gradient(circle at 50% 0%, #fffdf8 0%, #fbf6ec 70%); text-align: center; }
.cert-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; fill: #14213d; opacity: 0.09; }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.cert-adult .cert-brand span { color: #b08d57; }
.cert-kicker { margin-top: 26px; color: #b08d57; font-weight: 700; font-size: 15px; letter-spacing: 6px; }
.cert-adult .cert-title { margin: 6px 0 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 46px; line-height: 1.05; }
.cert-confirm { margin-top: 24px; color: #4a5568; font-size: 17px; }
.cert-name { margin-top: 8px; padding: 0 40px 8px; border-bottom: 1.5px solid #b08d57; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 54px; line-height: 1.05; }
.cert-line { max-width: 40em; margin: 16px 0 0; color: #2d3748; font-size: 17px; line-height: 1.5; }
.cert-stats { display: flex; gap: 18px; margin-top: 26px; }
.cert-stats > span { display: flex; flex-direction: column; min-width: 170px; padding: 12px 20px; border-radius: 12px; background: #ffffff; box-shadow: 0 0 0 1px #e6dcc6; }
.cert-stats small { color: #8a7350; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.cert-stats b { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 30px; line-height: 1.15; }
.cert-note { margin-top: 10px; color: #718096; font-size: 13px; }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; width: 100%; margin-top: auto; }
.cert-signer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font-size: 13px; color: #4a5568; }
.cert-sign { color: #14213d; font-family: Caveat, cursive; font-weight: 600; font-size: 32px; line-height: 1; }
.cert-signer i, .cert-kids-foot i { display: block; width: 220px; height: 1px; background: currentColor; }
.cert-signer i { background: #14213d; }
.cert-verify { display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; text-align: right; }
.cert-verify > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.cert-verify small { color: #718096; font-size: 12px; }
.cert-verify small:first-child { color: #8a7350; font-weight: 700; letter-spacing: 1.5px; }
.cert-verify b { font-size: 15px; }
.cert-qr { display: block; width: 78px; height: 78px; padding: 4px; border-radius: 6px; background: #ffffff; box-shadow: 0 0 0 1px #e6dcc6; }
.cert-qr svg { display: block; width: 100%; height: 100%; }
.cert-qr svg path, .cert-qr svg rect[fill="black"] { fill: #14213d; }

/* děti */
.cert-kids { background: linear-gradient(180deg, #8fd3ff 0%, #c9ecff 60%, #e8f8ff 100%); color: #12305a; font-family: "Baloo 2", system-ui, sans-serif; }
.cert-kids-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.cert-kids-text { position: absolute; left: 60px; top: 56px; width: 660px; display: flex; flex-direction: column; gap: 10px; }
.cert-kids .cert-brand { font-size: 22px; }
.cert-kids-badge { align-self: flex-start; margin-top: 14px; padding: 4px 18px; border-radius: 999px; background: #ffd84d; font-weight: 800; font-size: 20px; letter-spacing: 4px; }
.cert-kids .cert-title { margin: 0; font-weight: 800; font-size: 62px; line-height: 0.95; }
.cert-kids-congrats { color: #2a4f86; font-size: 22px; }
.cert-kids-name { margin-top: 4px; color: #3f63ff; font-weight: 800; font-size: 60px; line-height: 1; }
.cert-kids-text p { max-width: 30em; margin: 6px 0 0; font-size: 22px; line-height: 1.3; }
.cert-kids-stats { display: flex; gap: 12px; margin-top: 10px; }
.cert-kids-stats > span { display: flex; flex-direction: column; padding: 10px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 5px 0 rgba(18, 48, 90, 0.12); }
.cert-kids-stats small { color: #2a4f86; font-weight: 700; font-size: 15px; }
.cert-kids-stats b { font-weight: 800; font-size: 28px; line-height: 1.1; }
.cert-kids-foot { position: absolute; left: 60px; right: 60px; bottom: 40px; display: flex; align-items: flex-end; gap: 48px; }
.cert-kids-foot > span { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 16px; }
.cert-kids-foot > span > b { font-size: 20px; }
.cert-kids-foot .cert-sign { color: #12305a; font-size: 34px; }
.cert-kids-foot i { width: 200px; height: 2px; background: #12305a; }
.cert-kids-verify { color: #2a4f86; font-size: 15px !important; }
.cert-kids-verify b { color: #12305a; font-size: 15px !important; }
.cert-kids .cert-qr { margin-left: auto; width: 84px; height: 84px; box-shadow: none; }

/* stránka k tisku */
body.cert-print { margin: 0; background: #e7e5df; font-family: Manrope, system-ui, sans-serif; }
.cert-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; padding: 0.8rem 1.2rem; background: #ffffff; box-shadow: 0 1px 0 #d6d6d0; }
.cert-toolbar a { color: #111111; }
.cert-toolbar button { padding: 0.55rem 1.1rem; border: 0; border-radius: 10px; background: #111111; color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; }
.cert-toolbar small { color: #5f5f5c; }
.cert-sheet { width: min(1123px, calc(100vw - 2rem)); margin: 1.2rem auto; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }

@page { size: A4 landscape; margin: 0; }
@media print {
  body.cert-print { background: none; }
  .cert-toolbar { display: none; }
  .cert-sheet { width: 297mm; height: 210mm !important; margin: 0; box-shadow: none; overflow: hidden; }
  .cert { transform: none !important; }
}
