@font-face { font-family: Roboto; src: url("assets/Roboto-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Roboto; src: url("assets/Roboto-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Magistral; src: url("assets/Magistral.woff2") format("woff2"); font-display: swap; }

:root {
  --blue: #033dff;          /* Allrisk */
  --night: #060b2e;
  --ink: #101a3d;
  --cream: #fff6ea;
  --peach: #ff9a6b;
  --gold: #ffc96b;
  --rose: #ff6f91;
  --glow: 255, 154, 107;     /* mění se podle přání */
  --hill: clamp(6.5rem, 15vh, 10rem);
  --pad: clamp(1.25rem, 5vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--cream); background-color: #fff6ea;
  /* obloha přes celou stránku: noc → svítání → den; přesné body dopočítá sen.js podle sekcí */
  background-image: linear-gradient(180deg, #04071c 0%, #04071c 22%, #1a1a66 38%, #6a2f8a 48%, #e0607f 54%, #ff9a7a 60%, #ffd2a0 70%, #fff1de 80%, #fff6ea 100%);
  font: 1.0625rem/1.65 Roboto, system-ui, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { font-family: Magistral, Roboto, sans-serif; font-weight: 400; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--cream); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { font: 700 .78rem/1.2 Roboto, sans-serif; letter-spacing: .22em; text-transform: uppercase; opacity: .78; margin-bottom: 1.1rem; }

/* ---------- hvězdy: jen CSS dlaždice, bez JS ---------- */
.stars, .stars::after { position: absolute; inset: 0; pointer-events: none; }
.stars {
  z-index: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 23px 41px, #fff 98%, transparent),
    radial-gradient(1px 1px at 91px 133px, #fff 98%, transparent),
    radial-gradient(1.6px 1.6px at 151px 67px, #fff 98%, transparent),
    radial-gradient(1px 1px at 197px 183px, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 61px 201px, #fff 98%, transparent);
  background-size: 223px 229px; opacity: .8;
}
.stars::after {
  content: "";
  background-image:
    radial-gradient(1.8px 1.8px at 47px 89px, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 263px 31px, #fff 98%, transparent),
    radial-gradient(1.5px 1.5px at 171px 277px, #fff 98%, transparent);
  background-size: 337px 311px; animation: twinkle 3.6s ease-in-out infinite;
}
.stars-fade { -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }

/* ---------- hlavička ---------- */
.brand { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 1.1rem var(--pad); pointer-events: none; }
.brand-link { pointer-events: auto; }
.brand-link { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 1.05rem Magistral, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.brand-link img { width: 38px; filter: brightness(0) invert(1); opacity: .92; }

/* ---------- 1 · hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: center;
  padding: 5.5rem var(--pad) calc(var(--hill) + 4rem); overflow: hidden; cursor: crosshair;
  isolation: isolate; background: linear-gradient(180deg, #03061f 0%, #0a1660 55%, #2a2a9c 100%);
}
.hero-copy { position: relative; z-index: 3; width: min(1180px, 100%); margin-inline: auto; }
.hero h1 { font-size: clamp(3.2rem, min(10.5vw, 15vh), 9.6rem); text-shadow: 0 0 60px rgba(var(--glow), .25); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--peach) 45%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wish {
  display: block; margin: clamp(1.4rem, 4vh, 2.4rem) 0 .7rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left;
  font: clamp(1.35rem, 3.4vw, 2.6rem)/1.15 Magistral, sans-serif; text-transform: uppercase; letter-spacing: .03em; min-height: 2.4em;
}
.wish-text { display: inline-block; color: rgb(var(--glow)); text-shadow: 0 0 28px rgba(var(--glow), .55); transition: opacity .45s, filter .45s, transform .45s, color .8s; }
.wish-text.out { opacity: 0; filter: blur(8px); transform: translateY(-.35em); }
.hint { font-size: 1rem; opacity: .92; display: flex; gap: .5rem; align-items: center; }
#hero { cursor: pointer; }
.hint .spark { display: inline-block; color: var(--gold); animation: jiskra 1.6s ease-in-out infinite; }
#hero.klikl .hint .spark { animation: none; }
@keyframes jiskra { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.5) rotate(20deg); opacity: 1; text-shadow: 0 0 10px var(--gold); } }
@media (prefers-reduced-motion: reduce) { .hint .spark { animation: none; } }
.spark { color: var(--gold); animation: twinkle 2.4s ease-in-out infinite; }
.cta {
  display: inline-flex; align-items: center; min-height: 52px; margin-top: 2rem; padding: .85rem 1.6rem; border-radius: 999px;
  border: 1.5px solid rgba(255, 246, 234, .55); text-decoration: none; font-weight: 700; letter-spacing: .01em;
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); transition: background .25s, transform .25s;
}
.cta:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.horizon { position: absolute; inset: auto 0 0 0; height: clamp(15rem, 40vh, 24rem); z-index: 1; pointer-events: none; }
.glow {
  position: absolute; left: 50%; bottom: 10%; width: 140%; height: 150%; transform: translateX(-50%);
  background: radial-gradient(50% 45% at 62% 78%, rgba(var(--glow), .75), rgba(var(--glow), .22) 45%, transparent 75%);
  transition: background .9s; animation: breathe 7s ease-in-out infinite;
}
.couple { position: absolute; z-index: 2; right: clamp(4%, 16vw, 22%); bottom: calc(var(--hill) * .5); width: clamp(170px, min(26vw, 34vh), 290px); filter: drop-shadow(0 0 1px rgba(var(--glow), .6)); }
.hill { position: absolute; z-index: 3; bottom: -1px; left: 0; width: 100%; height: var(--hill); fill: #04071c; }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 1.4rem; width: 44px; height: 44px; transform: translateX(-50%); display: grid; place-items: center; }
.scroll-cue span { width: 2px; height: 26px; background: linear-gradient(var(--cream), transparent); animation: drip 2s ease-in-out infinite; }

.shoot {
  position: absolute; z-index: 2; width: 140px; height: 2px; pointer-events: none; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff 80%, rgba(var(--glow), 1));
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, .6);
  transform: rotate(var(--a, 24deg)); transform-origin: right center;
  animation: shoot .9s cubic-bezier(.2, .6, .3, 1) forwards;
}

/* ---------- 2 · druhá strana mince ---------- */
.spc { position: relative; background: #04071c; color: #f4f1ff; padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(1rem, 4vh, 2.5rem); text-align: center; }
.spc .wrap { position: relative; z-index: 1; }
.spc-h { font: clamp(2rem, 5vw, 3.2rem)/1.1 Magistral, sans-serif; color: var(--gold); margin: 0 0 .6rem; }
.spc-lead { font-size: 1.1rem; opacity: .85; max-width: 38rem; margin: 0 auto 2rem; }
.spc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; text-align: left; }
.spc-tile { background: #10142b; border: 1px solid rgba(255, 201, 107, .25); border-radius: 18px; padding: 1.3rem 1.4rem; }
.spc-n { display: block; font: 1.5rem Magistral, sans-serif; color: var(--gold); margin-bottom: .4rem; }
.spc-tile p { margin: 0; line-height: 1.55; opacity: .9; }
.spc-end { font: 1.15rem/1.4 Magistral, sans-serif; max-width: 40rem; margin: 2rem auto 0; color: #ffe2a8; }
@media (max-width: 760px) { .spc-grid { grid-template-columns: 1fr; } }
.coin { position: relative; padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 6rem); }
.coin .wrap { position: relative; z-index: 1; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.coin h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.coin-text { display: grid; gap: 1.2rem; max-width: 40rem; margin-top: 2.2rem; font-size: 1.15rem; opacity: .92; }
.big-q { font: clamp(1.8rem, 4vw, 2.8rem)/1.15 Magistral, sans-serif; color: var(--gold); opacity: 1; }
.moons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4rem); max-width: 56rem; align-items: start; }
.moon { display: grid; gap: 1.1rem; justify-items: start; align-content: start; }
.moon-disc {
  width: clamp(130px, 22vw, 230px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 38%, #fff6e2, #ffd9a8 45%, #f39a7e 80%);
  box-shadow: 0 0 0 1px rgba(255, 246, 234, .25), 0 0 60px 6px rgba(255, 201, 107, .28);
}
.moon-disc img { position: absolute; width: 112%; max-width: none; left: -6%; top: 6%; }
.moon figcaption { display: grid; gap: .35rem; }
.moon strong { font: 1.6rem Magistral, sans-serif; font-weight: 400; }
.moon q { font-size: 1.12rem; font-style: italic; quotes: "„" "“"; max-width: 26ch; }


/* ---------- 3 · sen, plán, cíl ---------- */
.path { padding: clamp(3rem, 8vh, 6rem) 0; }
.phases { list-style: none; padding: 0; display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phase { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 28px; min-height: 18rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.phase h3 { font-size: clamp(2.6rem, 5vw, 4rem); margin: .4rem 0 .7rem; }
.phase-time { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.phase-night { background: linear-gradient(160deg, #0b1450, #1a1f7a 60%, #3a2a8f); }
.phase-dawn { background: linear-gradient(160deg, #3b2a8f, #c0567f 55%, #ff9a6b); }
.phase-day { background: linear-gradient(160deg, #ffb86b, #ffe2a8 45%, #fff6ea); color: var(--ink); }
.phase::before { content: ""; position: absolute; top: 1.6rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 50%; }
.phase-night::before { box-shadow: inset -12px -6px 0 0 #fff2d2; transform: rotate(-20deg); }
.phase-dawn::before { background: linear-gradient(#ffe0a0, #ff9a6b); clip-path: inset(0 0 45% 0); top: 2.6rem; }
.phase-day::before { background: #ffb547; box-shadow: 0 0 0 10px rgba(255, 181, 71, .25), 0 0 0 22px rgba(255, 181, 71, .12); }

/* ---------- 4 · pohlednice ---------- */
.postcard-sec { padding: clamp(2.5rem, 9vh, 7rem) 0; color: var(--ink); }
.pc-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pc-intro h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.pc-intro p { margin-top: 1.2rem; font-size: 1.12rem; max-width: 30rem; }
.pc-intro .note { font-size: .9rem; opacity: .8; }
.pc-intro .eyebrow { color: #5a1f42; opacity: 1; }
.pc-stage { perspective: 1600px; }
.card { position: relative; display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .1, .2, 1); }
.card.flipped { transform: rotateY(180deg); }
.card-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; padding: clamp(1.3rem, 3.5vw, 2.2rem); box-shadow: 0 30px 80px -20px rgba(10, 6, 40, .55); }
.card-front { background: rgba(255, 250, 242, .96); color: var(--ink); display: grid; gap: .45rem; }
.card-back { transform: rotateY(180deg); color: var(--ink); background: #fffaf2; display: flex; flex-direction: column; gap: .7rem; position: relative; overflow: hidden; }
.card-front label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4a3f6b; margin-top: .55rem; }
.card-front input, .card-front textarea, .card-front select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #e5d9cb; border-radius: 12px; padding: .7rem .85rem; min-height: 48px; resize: vertical;
}
.card-front input:focus, .card-front textarea:focus, .card-front select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 111, 145, .18); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.row > div { display: grid; gap: .45rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid #e5d9cb; background: #fff; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; transition: background .2s, border-color .2s; }
.chip:hover, .chip[aria-pressed="true"] { background: #ffe9dc; border-color: var(--peach); }
.cta-solid { margin-top: 1.2rem; justify-self: start; border: 0; color: #fff; cursor: pointer; font: inherit; font-weight: 700; background: linear-gradient(90deg, var(--blue), #6a3cff 55%, var(--rose)); backdrop-filter: none; }
.cta-solid:hover { background: linear-gradient(90deg, #0030d0, #5a2ce8 55%, #f05a80); }
.pc-art { height: clamp(7rem, 16vw, 10rem); margin: calc(-1 * clamp(1.3rem, 3.5vw, 2.2rem)); margin-bottom: .6rem; background: linear-gradient(180deg, #1b2a9c, #c0567f 55%, #ffb86b 80%, #ffe2a8); position: relative; }
.pc-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: #2a1a58; clip-path: polygon(0 55%, 18% 30%, 40% 48%, 62% 20%, 80% 42%, 100% 28%, 100% 100%, 0 100%); }
.pc-art { background: #2a1a58 !important; }
.pc-art::after { content: none !important; }
.pc-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.card:not([data-motiv]) .pc-scene[data-m="univerzal"],
.card[data-motiv="univerzal"] .pc-scene[data-m="univerzal"],
.card[data-motiv="cestovat"] .pc-scene[data-m="cestovat"],
.card[data-motiv="tvorit"] .pc-scene[data-m="tvorit"],
.card[data-motiv="cas"] .pc-scene[data-m="cas"],
.card[data-motiv="zmena"] .pc-scene[data-m="zmena"] { display: block; }
.pc-stamp { position: absolute; top: 1rem; right: 1rem; width: 64px; height: 76px; background: #fffaf2; color: var(--rose); display: grid; place-items: center; align-content: center; font-size: 1.6rem; line-height: 1; outline: 2px dashed #e5d9cb; outline-offset: -6px; transform: rotate(4deg); }
.pc-stamp { background: linear-gradient(180deg, #2b2f9e, #7a3f9c 70%, #c0567f) !important; width: 72px !important; height: 86px !important; outline-color: rgba(255, 250, 242, .55) !important; border: 4px solid #fffaf2; box-sizing: border-box; align-content: end !important; overflow: hidden; }
.pc-stamp { background: #fffaf2 !important; outline-color: #d9cdbf !important; align-content: center !important; }
.pc-stamp img { width: 86%; height: auto; display: block; margin: 0 auto; }
.pc-stamp small { position: absolute; top: 5px; left: 0; right: 0; text-align: center; color: #ffe2a8 !important; font-size: .6rem !important; }
.pc-stamp small { font: .75rem Magistral, sans-serif; letter-spacing: .1em; color: var(--blue); }
.pc-date { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8a5a7a; }
.pc-where { font: clamp(1.5rem, 3vw, 2.1rem)/1.15 Magistral, sans-serif; }
.pc-what { font-size: 1.15rem; font-style: italic; white-space: pre-line; overflow-wrap: anywhere; }
.pc-where span { overflow-wrap: anywhere; }
.pc-sign { font: italic 1.25rem/1.3 Georgia, serif; color: #33245e; text-align: right; margin-top: .4rem; }
.pc-what { padding-bottom: .2rem; background: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), rgba(90, 31, 66, .14) calc(1.6em - 1px) 1.6em); line-height: 1.6em; min-height: 4.8em; }
.pc-ps { font-size: .92rem; color: #8a5a7a; margin: 0; }
.pc-postmark { position: absolute; top: calc(clamp(7rem, 16vw, 10rem) - 1.6rem); right: 1.6rem; width: 74px; height: 74px; border: 2px solid rgba(255, 111, 145, .55); border-radius: 50%; color: rgba(255, 111, 145, .75); display: grid; place-items: center; text-align: center; font: .62rem/1.15 Magistral, sans-serif; letter-spacing: .12em; transform: rotate(-14deg); background: rgba(255, 250, 242, .85); }
.pc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .6rem; }
.ghost { min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid #d9c9e6; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.ghost:hover { background: #f4ecff; }

/* ---------- 5 · sen týdne ---------- */
.weekly { padding: clamp(2.5rem, 9vh, 7rem) 0; color: var(--ink); }
.weekly h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); max-width: 18ch; }
.dreams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); margin-top: clamp(2rem, 6vh, 3.5rem); }
.dream { background: rgba(255, 255, 255, .78); border-radius: 26px; padding: 0 1.5rem 1.7rem; box-shadow: 0 20px 50px -30px rgba(40, 20, 80, .45); backdrop-filter: blur(4px); transition: transform .35s; }
.dreams .dream:nth-child(n+4) { display: none; }
.dream .krok { margin-top: .6rem; }
.dream:hover { transform: translateY(-6px) rotate(-.4deg); }
.dream-sky { height: 11rem; margin: 0 -1.5rem 1.3rem; border-radius: 26px 26px 0 0; display: flex; align-items: flex-end; padding: 1.1rem 1.5rem; color: #fff; font: 1.15rem/1.15 Magistral, sans-serif; text-transform: uppercase; letter-spacing: .03em; position: relative; overflow: hidden; }
.dream-sky span { position: relative; z-index: 1; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); max-width: 14ch; }
.dream-sky::before { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 1.4rem; top: 1.2rem; }
.d-sea .dream-sky { background: linear-gradient(170deg, #0a2a7a, #1b6fb0 50%, #7fd1d6); }
.d-sea .dream-sky::before { background: radial-gradient(circle, #f2fbff, #bfe8f0 60%, transparent 70%); }
.d-wood .dream-sky { background: linear-gradient(170deg, #5a2a6e, #c0567f 50%, #ffb86b); }
.d-wood .dream-sky::before { background: radial-gradient(circle, #ffe9b8, #ffc96b 60%, transparent 70%); }
.d-home .dream-sky { background: linear-gradient(170deg, #2a1a58, #6a3cff 50%, #ff9a6b); }
.d-home .dream-sky::before { background: radial-gradient(circle, #fff2d2, #ffd9a8 55%, transparent 70%); }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a5a7a; }
.dream h3 { font-size: 1.8rem; margin: .35rem 0 .6rem; }
.send { margin-top: 2.4rem; font-size: 1.15rem; }
.send a { font-weight: 700; color: var(--blue); text-underline-offset: .25em; }

/* ---------- 6 · kam dál ---------- */
.end { color: var(--ink); padding: clamp(1.5rem, 6vh, 5rem) 0 2.5rem; }
.end-line { font: clamp(1.5rem, 3vw, 2.3rem)/1.2 Magistral, sans-serif; max-width: 30ch; }
.end-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; max-width: 46rem; }
.end-links a { display: grid; gap: .2rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: rgba(255, 255, 255, .7); text-decoration: none; border: 1.5px solid rgba(3, 61, 255, .18); transition: border-color .2s, transform .2s; }
.end-links a:hover { border-color: var(--blue); transform: translateY(-2px); }
.end-links strong { font: 1.5rem Magistral, sans-serif; font-weight: 400; color: var(--blue); }
.end-links span { font-size: .95rem; opacity: .8; }
.end-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 2rem; align-items: end; }
.end-foto { margin: 0; position: relative; align-self: end; }
.end-foto::before { content: ""; position: absolute; inset: 12% 4% 0; border-radius: 50% 50% 24px 24px; background: radial-gradient(circle at 50% 40%, rgba(3, 61, 255, .16), rgba(255, 201, 107, .18) 60%, transparent 75%); z-index: 0; }
.end-foto img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
@media (max-width: 1000px) {
  .end-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .end-foto { order: -1; width: min(70%, 340px); margin: 0 auto; }
}
.fine-pravni { margin-top: .4rem !important; font-size: .78rem !important; }
.fine-pravni a { color: inherit; }
.kontakt-dole { margin-top: 2.2rem; }
.kontakt-dole .quiet { margin: 0; }
.fine { margin-top: 1.2rem; font-size: .85rem; color: #4b4f66; }

/* kontakt: jedna tichá věta */
.quiet { font-size: 1.15rem; margin-bottom: 2.2rem; display: inline-flex; padding-right: .4rem; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.quiet a { font-weight: 700; color: var(--blue); text-underline-offset: .25em; overflow-wrap: anywhere; }
.quiet-msg { font-size: .9rem; color: #5a3d00; margin: -1.6rem 0 2rem; min-height: 0; }
.quiet-msg:empty { display: none; }

/* ---------- v5 · pracovní ukázka: viditelné označení textů k doplnění ---------- */
.pracovni-lista { position: relative; z-index: 6; margin: 0; padding: .45rem var(--pad); background: #ffd84d; color: #2b2100; font-size: .82rem; font-weight: 700; text-align: center; line-height: 1.35; }
.pracovni-lista ~ .brand { top: auto; }
.pracovni { outline: 2px dashed #ffd84d; outline-offset: 6px; border-radius: 4px; }
.pracovni-stitek { display: inline-block; justify-self: start; align-self: center; margin-top: .3rem; padding: .15rem .5rem; border-radius: 4px; background: #ffd84d; color: #2b2100; font: 700 .7rem/1.3 Roboto, sans-serif; letter-spacing: .06em; font-style: normal; }
.moon .obor { font-size: .98rem; line-height: 1.5; opacity: .9; max-width: 32ch; }
.moon .jednou { display: grid; gap: .35rem; margin-top: .5rem; }
.pc-err { min-height: 0; margin: .2rem 0 0; color: #a3123f; font-weight: 700; font-size: .9rem; }
.pc-err:empty { display: none; }
.card-front [aria-invalid] { border-color: #a3123f; }
.postcard-sec :focus-visible, .weekly :focus-visible, .end :focus-visible { outline-color: var(--blue); }

/* patička „Další cesty“ (blok z propojeni-webu, upraveno na barvy SPC) */
.dc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; line-height: 1.5; }
.dc ul { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.dc li { margin: 0; padding: 0; }
.dc li + li::before { content: "·"; padding: 0 9px; opacity: .6; }
.dc a { display: inline; overflow-wrap: anywhere; }
footer .dc { width: min(1180px, 100%); margin: 1.4rem auto 0; padding: 14px var(--pad) 0; border-top: 1px solid rgba(16, 26, 61, .15); font-size: 13px; color: #4b4f66; }
footer .dc-t { color: var(--ink); font-weight: 700; }
footer .dc a { color: var(--blue); }
@media (max-width: 600px) { .dc li + li::before { content: none; } .dc ul { gap: 4px 18px; } }

/* ---------- pohyb ---------- */
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8); } }
@keyframes breathe { 50% { opacity: .78; } }
@keyframes drip { 0% { transform: translateY(-8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes shoot { from { opacity: 0; translate: 0 0; } 15% { opacity: 1; } to { opacity: 0; translate: -220px 100px; } }

/* ---------- menší obrazovky ---------- */
@media (max-width: 900px) {
  .phases, .dreams { grid-template-columns: 1fr; }
  .phase { min-height: 12rem; }
  .pc-grid, .coin-grid { grid-template-columns: 1fr; }
  .dream-sky { height: 9rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding-top: 5.5rem; padding-bottom: calc(var(--hill) + min(48vw, 12rem)); }
  .couple { right: 50%; transform: translateX(50%); bottom: calc(var(--hill) * .6); width: min(52vw, 220px); }
  .hint { font-size: .88rem; }
  .moons { grid-template-columns: 1fr; gap: 2rem; }
  .moon { grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 1.1rem; }
  .moon-disc { width: 112px; }
  .moon q { font-size: 1rem; }
  .row, .end-links { grid-template-columns: 1fr; }
  .end-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .end-foto { order: -1; width: min(78%, 320px); margin: 0 auto; }
  .cta { width: 100%; justify-content: center; text-align: center; padding-inline: 1rem; }
  .cta-solid { justify-self: stretch; }
}
@media (max-width: 370px) {
  .moon { grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; }
  .moon-disc { width: 76px; }
  .pracovni { outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .sky, .hero, .path, .weekly, .end, .brand, .pc-intro { display: none; }
  .card { transform: none !important; }
  .card-front { display: none; }
  .card-back { transform: none; box-shadow: none; }
}
