/* Kouzelná Linka — shared design system (redesign 2026).
   Night spruce bookends around warm snow-white paper; Merriweather headings, Figtree text, Caveat notes.
   Loaded by every page whose bodyClass contains "kl-page"; page styles live in kl-home/kl-order/kl-account. */
:root {
  --night: #0c1b21;
  --night-2: #13282f;
  --night-3: #1c3840;
  --pine: #123129;
  --night-line: rgba(255, 255, 255, .12);
  --page: #faf7f1;
  --paper: #fffdf7;
  --paper-2: #f3ecdf;
  --white: #ffffff;
  --ink: #17211f;
  --ink-2: #3b4743;
  --muted: #6b746f;
  --line: #e4ddd0;
  --line-2: #cfc6b6;
  --red: #d42b33;
  --red-press: #b31f28;
  --red-tint: #fbe7e6;
  --gold: #e8b931;
  --gold-soft: #f3cf76;
  --gold-deep: #94700f;
  --gold-tint: #fbf0d2;
  --green: #2fbf62;
  --green-cta: #177a41;
  --green-ink: #1f7a43;
  --green-tint: #e4f5e9;
  --on-night: #f6f2e8;
  --on-night-2: #b9c5c2;
  --mark-1: rgba(232, 185, 49, .5);
  --mark-2: rgba(212, 43, 51, .22);
  --mark-3: rgba(47, 191, 98, .26);

  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Comic Sans MS", cursive;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 64px;
  --shadow-paper: 0 1px 1px rgba(60, 40, 10, .06), 0 18px 40px -16px rgba(60, 40, 10, .28);
  --shadow-float: 0 22px 50px -22px rgba(8, 20, 24, .5), 0 2px 6px rgba(8, 20, 24, .08);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.06; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #2f2300; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 10px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }
.tnum { font-variant-numeric: tabular-nums; }
.show-xs { display: none; }
@media (max-width: 459px) { .hide-xs { display: none; } .show-xs { display: inline; } }
@media (min-width: 980px) { .mobile-only { display: none !important; } }
@media (max-width: 979px) { .desktop-only { display: none !important; } }

/* ---------- Type ---------- */
.section { padding-block: 80px; }
.h2 { font-size: clamp(1.75rem, 7vw, 2.8rem); font-weight: 900; line-height: 1.16; letter-spacing: -.01em; }
.h2 em { color: var(--red); }
.night .h2 em { color: var(--gold); }
.h2 em, .em-wave {
  padding-bottom: .1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 6c5-4 10-4 15 0s10 4 15 0 7-3 10-1' fill='none' stroke='%23e8b931' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 40px 10px repeat-x;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sub { font-size: 1.125rem; color: var(--ink-2); max-width: 54ch; }
.night .sub { color: var(--on-night-2); }
.hand-note { font: 600 1.55rem/1.15 var(--font-hand); color: var(--red); }
.night .hand-note { color: var(--gold); }
.hand-note::before { content: "✦"; display: inline-block; margin-right: .35em; font-family: var(--font-text); font-size: .62em; color: var(--gold); transform: translateY(-.18em); }
.fine { font-size: .875rem; color: var(--muted); }
.link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }
.stars-row { display: inline-flex; gap: 2px; color: var(--gold); letter-spacing: 2px; vertical-align: middle; }
.stars-row .i { width: 1em; height: 1em; }
.tag { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; font: 800 .6rem/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: #2f2300; vertical-align: middle; }
mark { color: inherit; padding: 0 1px; border-radius: 2px; }
mark.m1 { background: linear-gradient(transparent 55%, var(--mark-1) 55%); }
mark.m2 { background: linear-gradient(transparent 55%, var(--mark-2) 55%); }
mark.m3 { background: linear-gradient(transparent 55%, var(--mark-3) 55%); }
@media (min-width: 980px) { .section { padding-block: 120px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 16px; border: 0; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, color .2s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.975); }
.btn .i { width: 20px; height: 20px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.0625rem; border-radius: 18px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; gap: 8px; border-radius: 12px; }
.btn-sm .i { width: 17px; height: 17px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(212, 43, 51, .85); }
.btn-red:hover { background: var(--red-press); }
.btn-gold { background: var(--gold); color: #2f2300; box-shadow: 0 12px 26px -12px rgba(232, 185, 49, .8); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-green { background: var(--green-cta); color: #fff; box-shadow: 0 12px 26px -12px rgba(28, 138, 75, .9); }
.btn-green:hover { background: #167440; }
.btn-glass { background: rgba(255, 255, 255, .08); color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .24); }
.btn-glass:hover { background: rgba(255, 255, 255, .15); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26332f; }
.btn-line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-danger { background: var(--red-press); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--page); box-shadow: 0 1px 0 var(--line); color: var(--ink); transition: background-color .3s, box-shadow .3s, color .3s; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
/* no live blur over the animated night sky: an almost opaque bar looks the same and costs nothing */
.site-header[data-tone="night"] { background: var(--night); color: var(--on-night); box-shadow: none; }
.site-header[data-tone="night"].is-scrolled { background: var(--night); box-shadow: 0 1px 0 var(--night-line); }
.main-nav { display: none; gap: 2px; margin-left: auto; }
.main-nav a { padding: 8px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .86; }
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; background: rgba(160, 150, 120, .16); }
.header-cta { margin-left: auto; }
.header-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.header-meta .i { width: 16px; height: 16px; color: var(--green-ink); }
.header-meta b { color: var(--ink); }
.site-header[data-tone="night"] .header-meta { color: var(--on-night-2); }
.site-header[data-tone="night"] .header-meta b { color: var(--on-night); }
.site-header[data-tone="night"] .header-meta .i { color: var(--gold); }
.menu-btn { width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: inherit; display: grid; place-items: center; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; transition: transform .2s var(--ease), box-shadow .2s; }
.menu-btn[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { content: ""; display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-90deg); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 22px; background: var(--page); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(8, 20, 24, .45); display: grid; gap: 2px; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 1.15rem/1.2 var(--font-display); }
.mobile-menu .btn { margin-top: 14px; }
body.menu-open { overflow: hidden; }
@media (min-width: 980px) {
  .main-nav { display: flex; }
  .header-cta { margin-left: 10px; }
  .menu-btn, .mobile-menu { display: none !important; }
}
@media (max-width: 380px) { .logo-word { font-size: 18px !important; line-height: 20px !important; } .logo-mark { width: 30px !important; height: 34px !important; } .header-cta { padding: 0 12px; } }

/* ---------- Logo A: a swinging ornament with a ringing phone ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.logo-mark { display: inline-grid; width: 34px; height: 39px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; overflow: visible; }
/* Whole-pixel size and line box: the regular and italic faces then share one rounded baseline. */
.logo-word { font: 700 21px/22px var(--font-display); letter-spacing: -.01em; }
.logo-word em { font-style: italic; color: var(--red); font-size: inherit; line-height: inherit; vertical-align: baseline; }
.site-header[data-tone="night"] .logo-word em, .site-footer .logo-word em { color: var(--gold); }
.lg .lg-swing { transform-box: view-box; transform-origin: 20px 0; animation: lgSwing 9s ease-in-out infinite; }
.lg .lg-phone { transform-box: view-box; transform-origin: 20px 29px; animation: lgRing 9s ease-in-out infinite; }
.lg .lg-waves path { opacity: 0; animation: lgWave 9s ease-out infinite; }
.lg .lg-waves path + path { animation-delay: .12s; }
.lg .lg-spark { transform-box: view-box; transform-origin: 35px 13.5px; animation: lgTwinkle 3.2s ease-in-out infinite; }
@keyframes lgSwing { 0% { transform: rotate(0); } 4% { transform: rotate(8deg); } 9% { transform: rotate(-6deg); } 14% { transform: rotate(3.5deg); } 19% { transform: rotate(-1.5deg); } 24%, 100% { transform: rotate(0); } }
@keyframes lgRing { 0%, 28%, 100% { transform: rotate(0); } 30%, 34%, 38% { transform: rotate(-14deg); } 32%, 36%, 40% { transform: rotate(14deg); } 42% { transform: rotate(0); } }
@keyframes lgWave { 0%, 29% { opacity: 0; } 33% { opacity: .95; } 45%, 100% { opacity: 0; } }
@keyframes lgTwinkle { 0%, 100% { transform: scale(.55); opacity: .45; } 50% { transform: scale(1.1); opacity: 1; } }

/* ---------- Night surfaces + starry canvas ---------- */
.night { background: var(--night); color: var(--on-night); position: relative; isolation: isolate; overflow: hidden; }
.sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.sky canvas { width: 100%; height: 100%; display: block; }

/* ---------- Village skyline (homepage hero, night page heads) ---------- */
.ground { position: absolute; left: 0; right: 0; bottom: -3px; height: var(--vh); z-index: -1; pointer-events: none; }
.village-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Night page head: sky, headline, village ---------- */
.page-head { --vh: 118px; padding: 28px 0 calc(var(--vh) + 8px); }
.page-head::before { content: ""; position: absolute; z-index: -2; top: -220px; right: -220px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 214, .075), rgba(255, 244, 214, 0) 62%); pointer-events: none; }
@media (min-width: 980px) { .page-head::before { top: -200px; right: -120px; width: 640px; height: 640px; } }
.page-head > .wrap { position: relative; z-index: 1; display: grid; gap: 14px; }
.page-head h1 { font-weight: 900; font-size: clamp(2rem, 7.8vw, 3.4rem); line-height: 1.12; letter-spacing: -.015em; max-width: 20ch; color: var(--on-night); }
.page-head h1 em { color: var(--gold); padding-bottom: .08em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 6c5-4 10-4 15 0s10 4 15 0 7-3 10-1' fill='none' stroke='%23e8b931' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 40px 10px repeat-x; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.page-head .sub { color: var(--on-night-2); }
@media (min-width: 640px) { .page-head { --vh: 160px; padding-top: 40px; } }
@media (min-width: 980px) { .page-head { --vh: max(190px, 10vw); padding-top: 52px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs a { display: inline-block; padding-block: 2px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.night .crumbs { color: var(--on-night-2); }
.night .crumbs a { color: var(--on-night); }

/* ---------- Voice sample player (articles, blog, order pages) ---------- */
.voice { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--night); color: var(--on-night); box-shadow: 0 22px 44px -30px rgba(12, 27, 33, .8); }
.voice-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); }
.voice-copy { display: grid; gap: 3px; min-width: 0; }
.voice-copy strong { font: 700 1.1rem/1.25 var(--font-display); }
.voice-copy span { font-size: .9rem; line-height: 1.4; color: var(--on-night-2); font-style: italic; }
.voice-player { grid-column: 1 / -1; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.voice-play { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--gold); color: #2f2300; transition: transform .15s var(--ease); }
.voice-play:active { transform: scale(.94); }
.voice-play .i { width: 18px; height: 18px; }
.voice .wave { height: 26px; }
.voice-time { font-size: .82rem; font-weight: 700; min-width: 34px; text-align: right; }
@media (min-width: 720px) { .voice { grid-template-columns: 56px minmax(0, 1fr) minmax(240px, 1.05fr); padding: 16px 18px; } .voice-player { grid-column: auto; } }

/* ---------- Reading progress ---------- */
.read-progress { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 59; height: 3px; background: linear-gradient(90deg, var(--gold), var(--red)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--r-lg); padding: 22px 20px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; align-content: start; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { font-size: 1.5rem; }
.card-head .link { font-size: .9rem; white-space: nowrap; }
@media (min-width: 980px) { .card { padding: 26px; } }

.state-note { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }

/* ---------- Payment marks ---------- */
.pay-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 46px; padding: 0 9px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #d4d4d4; }
.pb svg { width: auto; height: 14px; display: block; }
.pb-visa svg { height: 12px; }
.pb-mc svg { height: 19px; }
.pb-img { display: block; height: 30px; width: auto; }
.site-footer .pb { box-shadow: none; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-weight: 700; font-size: .975rem; }
.field-label small, .field > label small { font-weight: 500; color: var(--muted); }
.input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white); font-size: 1.0625rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
textarea.input { padding: 14px 16px; min-height: 120px; line-height: 1.5; resize: vertical; }
.input::placeholder { color: #a39c8e; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 33, 31, .09); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(212, 43, 51, .1); }
select.input { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: right 18px top 50%, right 13px top 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.hint { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.counter { color: var(--muted); font-size: .8125rem; }
.hint .counter { float: right; margin-left: 8px; }
.err:empty { display: none; }
.err:not(:empty) { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; background: var(--red-tint); color: var(--red-press); font-weight: 700; font-size: .9rem; line-height: 1.35; animation: errIn .25s var(--ease) both; }
.err:not(:empty)::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: .75rem; font-weight: 900; }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--gold-tint); font-size: .9375rem; line-height: 1.45; }
.notice .i { color: var(--gold-deep); margin-top: 1px; }
.notice.is-ok { background: var(--green-tint); color: #155a32; }
.notice.is-ok .i { color: var(--green-ink); }
.notice.is-error { background: var(--red-tint); color: var(--red-press); }
.notice.is-error .i { color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-grid; place-items: center; min-width: 50px; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 700; cursor: pointer; transition: background-color .2s, box-shadow .2s, color .2s; }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.check { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; transition: background-color .2s, box-shadow .2s; background: var(--white); }
.check .box .i { width: 16px; height: 16px; color: #fff; stroke-width: 3.2; opacity: 0; }
.check:has(input:checked) .box { background: var(--ink); box-shadow: none; }
.check:has(input:checked) .box .i { opacity: 1; }
.check:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.check.is-invalid, .has-error .check { box-shadow: inset 0 0 0 1.5px var(--red); }

.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background-color .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--paper-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; gap: 1px; min-height: 52px; padding: 6px 10px; border-radius: 12px; font-weight: 700; text-align: center; cursor: pointer; line-height: 1.15; transition: background-color .2s, box-shadow .2s; }
.seg span small { font-weight: 600; font-size: .75rem; color: var(--muted); }
.seg input:checked + span { background: var(--white); box-shadow: 0 2px 8px rgba(40, 30, 10, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }

.phone-input { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.phone-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 33, 31, .09); }
.phone-input .cc { border: 0; border-right: 1.5px solid var(--line); border-radius: 0; background-color: var(--paper-2); padding: 0 30px 0 14px; min-height: 54px; font-weight: 700; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: right 15px top 50%, right 10px top 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.phone-input .cc:focus { outline: none; }
.phone-input .input { border: 0; border-radius: 0; box-shadow: none; }
.phone-input .input:focus { box-shadow: none; }
.phone-input:has(.input[aria-invalid="true"]) { border-color: var(--red); }
.has-error .input, .has-error .phone-input, .has-error.phone-input { border-color: var(--red); background-color: #fff7f7; }
.has-error .chip span, .has-error .seg { box-shadow: inset 0 0 0 1.5px var(--red); }

/* ---------- Bottom sheet, spinner ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; background: rgba(8, 20, 24, .45); animation: fade .25s both; }
.sheet-panel { background: var(--page); border-radius: 26px 26px 0 0; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); max-height: 86vh; overflow: auto; animation: sheetUp .35s var(--ease) both; }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head b { font: 700 1.3rem/1 var(--font-display); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--ink); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(4px); } to { opacity: 1; transform: none; } }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 253, 247, .98);
  box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -20px rgba(40, 30, 10, .4);
  transform: translateY(120%); transition: transform .4s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sticky-cta > span { display: grid; line-height: 1.25; min-width: 0; }
.sticky-cta b { font-size: .975rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta small { color: var(--muted); font-size: .8125rem; }
.sticky-cta .btn { margin-left: auto; min-height: 46px; }
@media (min-width: 980px) { .sticky-cta { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: #08130f; color: var(--on-night-2); padding-block: 48px 110px; font-size: .9375rem; content-visibility: auto; contain-intrinsic-size: auto 560px; }
.footer-grid { display: grid; gap: 30px; }
.site-footer .logo { color: #fff; }
.footer-tag { margin-top: 12px; max-width: 34ch; }
.footer-social { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .2s, color .2s; }
.footer-social a:hover { background: var(--gold); color: #2f2300; }
.footer-social .i { width: 20px; height: 20px; }
.footer-mail { display: inline-block; padding-block: 3px; margin-top: 10px; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-links h2 { font-family: var(--font-text); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-links ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-links a, .footer-links button { text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-links button { min-height: 24px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .875rem; }
.page-plain .site-footer, .page-objednat .site-footer { padding-bottom: 48px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } .site-footer { padding-bottom: 48px; } }

/* ---------- Diploma v2 (SVG, shared by the homepage and the order page) ---------- */
.dp { display: block; width: 100%; height: auto; border-radius: 14px; }
.dp-brand { font: 800 17px var(--font-text); letter-spacing: .3em; fill: #f7dd92; }
.dp-title { font: 700 60px var(--font-display); fill: #2b1f16; }
.dp-label { font: 800 14px var(--font-text); letter-spacing: .24em; fill: #8d6c3b; }
.dp-name { font: 700 92px var(--font-display); fill: #2b1f16; }
.dp-for { font: italic 400 30px var(--font-display); fill: #4b3828; }
.dp-date { font: 700 24px var(--font-display); fill: #2b1f16; }
.dp-small { font: 800 11.5px var(--font-text); letter-spacing: .22em; fill: #9a7b4a; }
.dp-sign { font: 700 56px var(--font-hand); fill: #233a63; }
.dp-url { font: 700 15px var(--font-text); letter-spacing: .1em; fill: #a3844f; }
.dp .dp-arch-top { stop-color: #0b1c29; }
.dp .dp-arch-bottom { stop-color: #19384c; }
.dp[data-who="mikulas"] .dp-arch-top { stop-color: #2a0d17; }
.dp[data-who="mikulas"] .dp-arch-bottom { stop-color: #4c1a29; }
.dp[data-who="santa"] .dp-arch-top { stop-color: #0d261e; }
.dp[data-who="santa"] .dp-arch-bottom { stop-color: #1d4636; }

/* ---------- Waveform player (voice samples and the call recording) ---------- */
.wave { display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: background-color .15s; }
.wave i.on { background: var(--gold); }

/* ---------- Consent banner on the new pages ---------- */
.kl-page .kl-consent, .kl-page .kl-consent h2, .kl-page .kl-consent-actions button { font-family: var(--font-text); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .lg * { animation: none !important; }
}
