body { margin: 0; background: #F3EFE7; color: #151514; font-family: Poppins, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #CA2128; } @media (hover: hover) { a:hover { color: #A51A20; } }
input::placeholder { color: rgba(255,255,255,0.45); }
@media (hover: hover) { .btn:hover { background: #A51A20 !important; } }
@media (hover: hover) { .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 (min-width: 761px) { .m-short { display: none; } }
@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; }
}
.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; }
@media (hover: hover) { .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; }
@media (hover: hover) { .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; }
@media (hover: hover) { #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; } }

/* oznámení o zdražení */
#price-notice { position: fixed; inset: 0; z-index: 60; background: rgba(21,21,20,0.72); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
#price-notice[hidden] { display: none !important; }
.pn-box { position: relative; max-width: 460px; width: 100%; background: #1a1a19; color: #F4EFE6; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 32px 28px 24px; box-shadow: 0 24px 48px -8px rgba(0,0,0,0.5); font-family: Poppins, sans-serif; animation: pn-in .35s cubic-bezier(.2,.8,.2,1); }
.pn-box h2 { margin: 0 0 12px; font-size: clamp(22px, 5vw, 28px); line-height: 1.2; font-weight: 700; }
.pn-box p { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: rgba(244,239,230,0.85); }
.pn-box .pn-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #CA2128; }
.pn-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; color: #F4EFE6; font-size: 28px; line-height: 1; cursor: pointer; opacity: .7; }
.pn-x:hover { opacity: 1; }
.pn-actions { display: flex; justify-content: center; }
.pn-cta { font-family: Poppins, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 22px; border-radius: 9999px; border: 0; cursor: pointer; background: #CA2128; color: #fff; transition: background 200ms cubic-bezier(.2,.8,.2,1); }
@keyframes pn-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pn-box { animation: none; } }
.price-badge { position: relative; font-family: Poppins, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 16px; padding: 9px 16px; border-radius: 9999px; border: 0; background: #CA2128; color: #fff; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 0 rgba(202,33,40,0.55); animation: pb-pulse 2.2s ease-out infinite; transition: background 200ms cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .price-badge:hover { background: #A51A20; } }
.price-badge-hero { font-size: clamp(12px, 3.2vw, 15px); line-height: 1.25; padding: 11px 20px; white-space: normal; text-wrap: balance; box-shadow: 0 0 0 0 rgba(202,33,40,0.55), 0 8px 20px -6px rgba(202,33,40,0.55); }
@keyframes pb-pulse { 70% { box-shadow: 0 0 0 12px rgba(202,33,40,0); } 100% { box-shadow: 0 0 0 0 rgba(202,33,40,0); } }
@media (prefers-reduced-motion: reduce) { .price-badge { animation: none; } }
@media (max-width: 520px) { header .price-badge { display: none; } }

/* odkaz zpět na výběr domů v hlavičce detailu */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: Poppins, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244,239,230,0.78); text-decoration: none; padding: 8px 4px; transition: color 200ms; }
@media (hover: hover) { .back-link:hover { color: #fff; } }
@media (max-width: 520px) { .back-link span { display: none; } .back-link { padding: 8px; margin-left: -4px; } }

/* karta bez fotky (např. Rozsah dodávky): text dole jako u ostatních, ale bez prázdného sloupce pro fotku; pod šipkami */
@media (min-width: 761px) {
  #dock > article.wide { display: block !important; padding-top: 68px !important; }
  #dock > article.wide > * { margin-bottom: 16px !important; max-width: none; }
  #dock > article.wide > :last-child { margin-bottom: 0 !important; }
}
