body { margin: 0; background: #F3EFE7; color: #151514; font-family: Poppins, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #CA2128; } a:hover { color: #A51A20; }
input::placeholder { color: rgba(255,255,255,0.45); }
.btn:hover { background: #A51A20 !important; }
.soc:hover { background: #CA2128 !important; border-color: #CA2128 !important; }
.field:focus { border-color: #CA2128 !important; }
#lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(21,21,20,0.88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px 20px; box-sizing: border-box; cursor: zoom-out; touch-action: none; overscroll-behavior: contain; }
#lightbox[hidden] { display: none !important; }
#lightbox-img { width: min(calc(100vw - 48px), calc((100vh - 190px) * var(--lb-ratio, 1.3333)), var(--lb-max, 1100px)); height: auto; aspect-ratio: var(--lb-ratio, 1.3333); object-fit: contain; flex: none; border-radius: 16px; box-shadow: 0 20px 24px -4px rgba(16,24,40,0.3); }
@supports (height: 100dvh) { #lightbox-img { width: min(calc(100vw - 48px), calc((100dvh - 190px) * var(--lb-ratio, 1.3333)), var(--lb-max, 1100px)); } }
/* sekce 1-5 jsou jen prázdné slidy, karty žijí v pevném #dock dole */
:is([data-chapter="1"],[data-chapter="2"],[data-chapter="3"],[data-chapter="4"],[data-chapter="5"]) { display: block !important; padding: 0 !important; max-width: none !important; }
#dock { overflow: hidden; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none; height: 0; background: linear-gradient(160deg, #2e2e30 0%, #1c1c1b 100%); box-shadow: 0 -20px 48px -16px rgba(21,21,20,0.45); transform: translateY(100%); }
#dock.booting { visibility: hidden !important; transition: none; }
#dock > article { position: absolute; left: 0; right: 0; bottom: 0; box-sizing: border-box; background: none !important; box-shadow: none !important; max-width: none !important; width: 100% !important; border-radius: 0 !important; direction: ltr !important; padding: clamp(20px, 5vw, 48px) max(clamp(20px, 5vw, 48px), calc((100% - 960px) / 2)) !important;
  opacity: 0; transform: translateY(8px); transition: opacity .28s ease-out, transform .28s ease-out; }
#dock > article.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .6s ease .18s, transform .8s cubic-bezier(.22,.61,.36,1) .18s; }
@media (prefers-reduced-motion: reduce) { #dock > article, #dock > article.on { transition: opacity .2s linear !important; transform: none !important; } }
/* text vlevo, malé fotky vpravo */
@media (min-width: 761px) {
  #dock > article { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 48px; row-gap: 0 !important; align-content: center; }
  #dock > article > * { grid-column: 1; margin-bottom: 18px !important; }
  #dock > article > img, #dock > article > :has(> img) { grid-column: 2; grid-row: 1 / span 20; align-self: center; margin-bottom: 0 !important; }
}
html { scroll-snap-type: y mandatory; }
main > section:not(#faq) { scroll-snap-align: start; scroll-snap-stop: always; }
main > footer { scroll-snap-align: end; }
@media (max-width: 760px) {
  #dock > article { gap: 12px !important; }
  #dock > article h2 { font-size: 24px !important; }
  #dock > article p { font-size: 15px !important; line-height: 1.45 !important; }
  #dock > article img { height: 88px !important; aspect-ratio: auto !important; }
  #dock > article img[src*="pudorys"] { object-fit: cover !important; height: 120px !important; }
  #dock > article div[style*="rgba(255,255,255,0.05)"] { padding: 10px 12px !important; gap: 2px !important; min-width: 0; }
  #dock > article div[style*="rgba(255,255,255,0.05)"] > span:first-child { font-size: 18px !important; white-space: nowrap; line-height: 1.2; }
  #dock > article div[style*="rgba(255,255,255,0.05)"] > span:last-child { font-size: 10px !important; letter-spacing: 0.06em !important; line-height: 1.3; }
  .m-hide { display: none !important; }
  .d-full { display: none; } .m-short { display: inline; }
  #dock > article > p[style*="font-size: 13px"] { display: none !important; }
}
.m-short { display: none; }
.cue-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #CA2128; background: #F3EFE7; color: #CA2128; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; animation: cue-bob 1.8s ease-in-out infinite; transition: background .2s, color .2s; }
.cue-arrow:focus:not(:focus-visible) { outline: none; }
.cue-arrow:hover { background: #CA2128; color: #fff; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
/* lightbox ovládání: nahoře zavřít, dole šipky + počítadlo; nic nepřekrývá fotku */
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.16); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .2s; flex: none; }
.lb-btn:hover { background: #CA2128; }
.lb-btn.close { position: absolute; top: 12px; right: 16px; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px; flex: none; }
.lb-bar[hidden] { display: none; }
.lb-count { min-width: 64px; text-align: center; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; pointer-events: none; }
img[height] { height: auto; }
/* Safari: vlastní kompoziční vrstvy pro prvky, které se mění při scrollu */
[data-hero-strip], [data-hero-cue] { will-change: opacity; }
#dock { will-change: transform; }
#stage canvas { transform: translateZ(0); }
/* malé telefony (iPhone SE): zhutnit úvod, aby zbylo místo pro dům nad šipkou */
@media (max-width: 760px) and (max-height: 700px) {
  [data-chapter="0"] { padding-top: 96px !important; padding-bottom: 16px !important; }
  [data-hero-text] { gap: 10px !important; }
  [data-hero-text] > div { gap: 10px !important; }
  [data-hero-text] h1 { font-size: 34px !important; line-height: 1.02 !important; }
  [data-hero-text] p { font-size: 14px !important; line-height: 1.35 !important; }
  .cue-arrow { width: 36px; height: 36px; }
  .cue-arrow svg { width: 20px; height: 20px; }
}

/* fakta pod cenou: text oddělený kuličkami, bez ohraničení */
.facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #545454; }
.facts > span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 16px; border-radius: 50%; background: #CA2128; vertical-align: middle; }
@media (max-width: 760px) { .facts { font-size: 11px; letter-spacing: 0.08em; } .facts > span + span::before { margin: 0 9px; } }
/* úzký telefon: dvě položky na prvním řádku, třetí vycentrovaná pod nimi, bez kuličky na začátku řádku */
@media (max-width: 520px) { .facts > span:nth-child(3) { flex-basis: 100%; text-align: center; } .facts > span:nth-child(3)::before { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* šipky pro posun mezi slidy: v pravém horním rohu šedého docku, vedle štítku kapitoly */
#slide-nav { position: absolute; top: 10px; right: max(14px, calc((100% - 960px) / 2)); z-index: 3; display: flex; gap: 8px; pointer-events: auto; transition: opacity .25s ease; }
#slide-nav[hidden] { display: none; }
#slide-nav button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.32); background: rgba(255,255,255,0.06); color: #F4EFE6; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
#slide-nav button svg { width: 18px; height: 18px; }
#slide-nav button:hover { background: #CA2128; border-color: #CA2128; }
#slide-nav button:focus:not(:focus-visible) { outline: none; }
#slide-nav button:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
@media (min-width: 761px) { #slide-nav { top: 16px; } #slide-nav button { width: 38px; height: 38px; } }
