/* Den jedna — úvodní stránka (jen index). Bez horní lišty. Pistácie se otevře, usadí nahoře a vynoří se kolo s knížkami. */
.dj { background: var(--skorapka); overflow-x: hidden; }
.dj section { padding: clamp(72px, 11vw, 140px) 0; }
.dj .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dj .uzky { max-width: 860px; }
.dj .tl { border: 3px solid var(--hneda); cursor: pointer; font-family: var(--f-text); }
.dj .tl.sv { background: var(--papir); color: var(--hneda); }

/* ── jeviště ── */
.dj .jeviste { position: relative; min-height: 100svh; padding: 0; display: grid; background: var(--skorapka); overflow-x: clip; }
.znak { position: absolute; z-index: 5; top: clamp(14px, 3svh, 30px); left: 50%; width: 64px; height: 64px; margin-left: -32px; animation: usadit 1s 1.3s cubic-bezier(.7, 0, .15, 1) both; }
.znak svg { width: 100%; height: 100%; overflow: visible; animation: vyskoc .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.sk { transform-box: view-box; transform-origin: 60px 110px; }
.sk-l { animation: otevri-l .75s .55s cubic-bezier(.3, 1.9, .5, 1) both; }
.sk-p { animation: otevri-p .75s .55s cubic-bezier(.3, 1.9, .5, 1) both; }
@keyframes vyskoc { from { transform: scale(.4); opacity: 0; } }
@keyframes otevri-l { from { transform: rotate(9.4deg); } }
@keyframes otevri-p { from { transform: rotate(-9.4deg); } }
@keyframes usadit { from { transform: translateY(calc(50svh - 32px - clamp(14px, 3svh, 30px))) scale(3.6); } }
.dj { --ar: 1.6; }
.jev { --kv: min(52svh, 500px, 150vw); display: grid; grid-template-rows: 1fr auto; align-items: center; padding: calc(64px + clamp(28px, 6svh, 60px)) 0 clamp(20px, 4svh, 40px); animation: vynor .9s 1.95s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vynor { from { opacity: 0; transform: translateY(46px); } }

/* kolo: knížky zepředu, aktivní uprostřed, sousedé menší po stranách */
.kolo { position: relative; height: calc(var(--kv) + 26px); perspective: 1400px; touch-action: pan-y; }
.kniha { position: absolute; top: 6px; left: 50%; height: var(--kv); aspect-ratio: 1 / var(--ar); margin-left: calc(var(--kv) / var(--ar) / -2); padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit;
  z-index: calc(20 - var(--a)); transform: translateX(calc(var(--o) * 74%)) translateZ(calc(var(--a) * -300px)) rotateY(calc(var(--o) * -18deg)); transition: transform .65s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.kniha.daleko { opacity: 0; pointer-events: none; }
.kniha:not(.je) .ob { filter: saturate(.75) brightness(.96); }
.kniha.je:hover .ob, .kniha.je:focus-visible .ob { transform: translate(-3px, -5px) rotate(-1.2deg); }
.kniha:focus-visible { outline: none; } .kniha:focus-visible .ob { outline: 4px solid var(--ruda); outline-offset: 5px; }
.ob { container-type: inline-size; display: block; width: 100%; height: 100%; border: 3px solid var(--hneda); border-radius: 5px 12px 12px 5px; padding: 5.5%; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
  box-shadow: 7px 7px 0 -1px var(--papir), 7px 7px 0 2px var(--hneda); }
.ob-hneda { background: var(--hneda); color: var(--papir); --zv: var(--pistacie); --lin: #6B5646; }
.ob-pistacie { background: var(--pistacie); color: var(--hneda); --zv: var(--ruda); --lin: #8FA561; }
.ob-ruda { background: var(--ruda); color: var(--papir); --zv: var(--skorapka); --lin: #C06A78; }
.ob-papir { background: var(--papir); color: var(--hneda); --zv: var(--ruda); --lin: #D9CBB0; }
.ob-ram { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; border: 2px solid var(--lin); outline: 1px solid var(--lin); outline-offset: 4px; border-radius: 2px; padding: 9cqw 5cqw 6cqw; text-align: center; overflow: hidden; }
.ob-nad { font-family: var(--f-ruka); font-size: 8.4cqw; line-height: 1; color: var(--zv); margin-bottom: 4cqw; transform: rotate(-3deg); }
.ob-s { display: block; font-family: var(--f-nadpis); font-stretch: 75%; font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; font-size: calc(min(50cqw, 184cqw / var(--n)) * var(--k, 1)); }
.ob-s.z { color: var(--zv); }
.ob-pod { margin-top: 5cqw; padding-top: 3.4cqw; border-top: 2px solid var(--lin); font-size: 4.6cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; max-width: 62cqw; }
.ob-p { width: 26cqw; height: 26cqw; margin-top: auto; }
.ob-typ { font-size: 3.5cqw; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 2cqw; }

.sipky { position: absolute; left: 0; right: 0; top: calc(64px + clamp(28px, 6svh, 60px) + var(--kv) / 2); display: flex; justify-content: space-between; padding: 0 clamp(8px, 3vw, 48px); pointer-events: none; z-index: 30; }
.sipky button { pointer-events: auto; width: 62px; height: 62px; border: 0; background: none; color: var(--hneda); cursor: pointer; padding: 8px; transition: transform .2s; }
.sipky button svg { width: 100%; height: 100%; } .sipky #vlevo svg { transform: scaleX(-1); }
.sipky button:hover { transform: scale(1.15); } .sipky button:disabled { opacity: .18; cursor: default; transform: none; }

.jev-t { text-align: center; padding: clamp(18px, 3.4svh, 34px) var(--okraj) 0; }
.jev-t h1 { font-size: clamp(34px, 6.4vw, 58px); }
.jev-t p { margin: 10px auto 0; max-width: 30em; font-size: clamp(16px, 2.3vw, 19px); }
.dolu { display: inline-flex; align-items: center; gap: 16px; margin-top: 14px; padding: 8px 6px; text-decoration: none; }
.dolu b { font-family: var(--f-nadpis); font-stretch: 78%; font-size: 26px; font-weight: 800; }
.dolu .ruka { display: inline-flex; align-items: center; gap: 8px; font-size: 27px; }
.dolu svg { width: 44px; height: 20px; transform: rotate(90deg); transition: transform .25s; } .dolu:hover svg { transform: rotate(90deg) translateX(5px); }
.jev-t.meni > * { opacity: 0; transform: translateY(8px); } .jev-t > * { transition: opacity .25s, transform .25s; }

/* ── otevřená knížka ── */
.jev.otevreno .kolo, .jev.otevreno .jev-t, .jev.otevreno .sipky { opacity: 0; pointer-events: none; }
.kolo, .jev-t, .sipky { transition: opacity .35s; }
.kniha.schovana { visibility: hidden; }
.dolu { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
.otv { --pw: min(88vw, calc(min(70svh, 640px) / var(--ar))); --ph: calc(var(--pw) * var(--ar)); position: absolute; z-index: 40; left: 50%; top: calc(64px + clamp(28px, 6svh, 60px) + 6px); width: calc(var(--pw) * 2); margin-left: calc(var(--pw) * -1); perspective: 2600px; pointer-events: none; }
.otv[hidden] { display: none; }
.kn3 { position: relative; height: var(--ph); transform-style: preserve-3d; transform-origin: 75% 50%; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--sc, 1)); transition: transform .85s cubic-bezier(.3, .1, .2, 1); }
.lst { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.35, .05, .2, 1); pointer-events: auto; }
.lst.oto { transform: rotateY(-180deg); }
.lic { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lic.zad { transform: rotateY(180deg); }
.otv .ob { box-shadow: none; }
.strana { container-type: inline-size; background: var(--papir); border: 3px solid var(--hneda); border-radius: 4px 12px 12px 4px; overflow: hidden; }
.strana.zad { border-radius: 12px 4px 4px 12px; }
.st { height: 100%; overflow-y: auto; padding: 8cqw 8cqw 6cqw; font-size: clamp(14px, 3.9cqw, 18px); line-height: 1.45; scrollbar-width: thin; }
.dj .st .ruka { font-size: 7cqw; margin-bottom: 1.4cqw; }
.st h2 { font-size: 11.4cqw; line-height: .92; }
.st h3 { font-family: var(--f-text); font-stretch: 100%; font-size: 3.1cqw; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; margin: 5.5cqw 0 2.4cqw; padding-top: 3.4cqw; border-top: 2px solid var(--hneda); line-height: 1.2; }
.st h3.ne { color: var(--ruda); }
.st > p { margin-top: 3.6cqw; }
.uvnitr, .car { list-style: none; display: grid; gap: 1.9cqw; }
.uvnitr li { display: flex; gap: 2.4cqw; align-items: flex-start; line-height: 1.3; transition: opacity .35s, filter .35s; }
.uvnitr svg { flex: none; width: 4.4cqw; height: 4.4cqw; margin-top: .5cqw; color: var(--pistacie-tm); }
.uvnitr li.neni { opacity: .32; filter: grayscale(1); text-decoration: line-through; text-decoration-thickness: 1px; }
.car li { position: relative; padding-left: 5cqw; line-height: 1.3; } .car li::before { content: ""; position: absolute; left: 0; top: .6em; width: 2.6cqw; height: 3px; border-radius: 2px; background: currentColor; }
.st .odkaz { display: inline-block; margin-top: 5cqw; }
/* objednávka */
.volby { display: grid; gap: 2.4cqw; margin-top: 5cqw; }
.volba { display: flex; align-items: center; gap: 3cqw; padding: 3.2cqw 3.6cqw; border: 3px solid var(--hneda); border-radius: 10px; cursor: pointer; background: var(--papir); transition: background .2s, transform .2s; }
.volba input { appearance: none; -webkit-appearance: none; flex: none; width: 5.4cqw; height: 5.4cqw; min-width: 20px; min-height: 20px; border: 3px solid var(--hneda); border-radius: 50%; background: var(--papir); margin: 0; }
.volba input:checked { background: radial-gradient(var(--ruda) 0 45%, var(--papir) 50%); }
.volba:has(input:checked) { background: var(--pistacie); transform: rotate(-.6deg); }
.volba:has(input:focus-visible) { outline: 3px solid var(--ruda); outline-offset: 3px; }
.vb { flex: 1; line-height: 1.15; } .vb b { display: block; font-family: var(--f-nadpis); font-stretch: 80%; font-size: 5.6cqw; } .vb i { font-style: normal; font-size: 3cqw; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.vc { font-weight: 800; font-size: 4.4cqw; white-space: nowrap; }
.o-cena { margin-top: 5cqw !important; font-family: var(--f-nadpis); font-stretch: 76%; font-weight: 800; line-height: .85; } .o-cena b { font-size: 25cqw; display: inline-block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); } .o-cena small { font-size: 7cqw; margin-left: 1.6cqw; }
.o-cena.skok b { transform: scale(1.12) rotate(-2deg); }
.o-pro { font-weight: 700; margin-top: 2cqw !important; }
.obj .tl { margin-top: 5cqw; width: 100%; min-height: 56px; font-size: clamp(17px, 4.6cqw, 21px); }
.obj .tl.je { background: var(--pistacie-tm); }
.o-pod { font-size: .86em; opacity: .85; }
.st details { border-top: 2px solid var(--hneda); } .st details:last-child { border-bottom: 2px solid var(--hneda); } .st h2 + details { margin-top: 5cqw; }
.st summary { cursor: pointer; list-style: none; padding: 2.8cqw 7cqw 2.8cqw 0; position: relative; font-weight: 800; line-height: 1.2; } .st summary::-webkit-details-marker { display: none; }
.st summary::after { content: "+"; position: absolute; right: 0; top: 1.2cqw; font-size: 1.5em; font-weight: 500; color: var(--ruda); transition: transform .2s; } .st details[open] summary::after { transform: rotate(45deg); }
.st details p { padding-bottom: 3cqw; font-size: .94em; }
.otv-o { display: flex; justify-content: space-between; align-items: center; width: var(--pw); margin: 14px auto 0; pointer-events: auto; opacity: 0; transition: opacity .4s .5s; }
.otv.ote .otv-o { opacity: 1; }
.otv-o button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-family: var(--f-ruka); font-weight: 600; font-size: 27px; color: var(--ruda); padding: 8px 4px; }
.otv-o button:hover { color: var(--hneda); } .otv-o svg { width: 44px; height: 20px; } .otv-o button[hidden] { display: none; }

/* ── košík ── */
.kos-tl { position: fixed; z-index: 60; top: clamp(12px, 2.6svh, 26px); right: clamp(12px, 3vw, 34px); width: 58px; height: 58px; padding: 11px; border: 3px solid var(--hneda); border-radius: 50%; background: var(--papir); color: var(--hneda); cursor: pointer; animation: vynor .6s 2.2s both; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.kos-tl:hover { transform: rotate(-8deg) scale(1.06); } .kos-tl.skok { transform: scale(1.25) rotate(8deg); }
.kos-tl b { position: absolute; top: -7px; right: -7px; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 13px; background: var(--ruda); color: #fff; font-size: 14px; line-height: 25px; text-align: center; } .kos-tl b[hidden] { display: none; }
.kosik { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(440px, 100vw); max-width: none; border: 0; border-left: 3px solid var(--hneda); background: var(--papir); color: var(--hneda); padding: 0; }
.kosik::backdrop { background: rgba(53, 38, 27, .55); }
.kosik[open] { animation: zprava .4s cubic-bezier(.2, .8, .2, 1); } @keyframes zprava { from { transform: translateX(100%); } }
.kos-v { position: relative; padding: clamp(26px, 6vw, 40px); min-height: 100%; display: flex; flex-direction: column; }
.kos-v h2 { font-size: 64px; } .kos-x { position: absolute; top: 14px; right: 16px; width: 48px; height: 48px; border: 0; background: none; font-size: 40px; line-height: 1; cursor: pointer; color: var(--hneda); }
#kos-o { margin-top: 26px; display: flex; flex-direction: column; flex: 1; }
.kos-r { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 18px 0; border-top: 3px solid var(--hneda); }
.kos-r b { font-family: var(--f-nadpis); font-stretch: 80%; font-size: 25px; line-height: 1.05; } .kos-r .c { font-weight: 800; font-size: 21px; white-space: nowrap; } .kos-r i { font-style: normal; font-size: 15.5px; }
.kos-r button { justify-self: end; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: 15px; color: var(--ruda-tm); padding: 4px 0; }
.kos-r .tl, .kos-r .brzy { grid-column: 1 / -1; margin-top: 12px; } .kos-r .brzy { font-size: 15.5px; background: var(--skorapka); padding: 12px 14px; border-radius: 8px; }
.kos-s { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--hneda); padding-top: 16px; font-weight: 800; font-size: 19px; } .kos-s b { font-family: var(--f-nadpis); font-stretch: 78%; font-size: 44px; }
.kos-p { margin-top: auto; padding-top: 26px; font-size: 14.5px; opacity: .8; } .kos-prazdny { font-size: 19px; }

/* ── kontakt a patička ── */
.kontakt { background: var(--ruda); color: var(--papir); } .kontakt .ruka { color: var(--skorapka); }
.kontakt h2 { font-size: clamp(64px, 15vw, 170px); line-height: .86; }
.mail { display: inline-block; margin-top: clamp(20px, 3vw, 34px); font-family: var(--f-nadpis); font-stretch: 80%; font-weight: 800; font-size: clamp(25px, 5.4vw, 54px); text-decoration-thickness: 3px; text-underline-offset: 7px; overflow-wrap: anywhere; }
.mail:hover { color: var(--pistacie); } .k-pod { margin-top: 20px; max-width: 30em; }
.pata2 { background: var(--hneda); color: var(--skorapka); padding: 44px 0 54px; font-size: 14.5px; line-height: 1.55; }
.pata2 nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 24px; } .pata2 nav a { font-weight: 800; font-size: 17px; color: var(--papir); text-underline-offset: 5px; padding: 6px 0; }
.pata2 p { max-width: 62em; opacity: .78; } .pata2 p + p { margin-top: 10px; }

@media (min-width: 820px) { .dj { --ar: 1.414; } .otv { --pw: min(46vw, calc(min(70svh, 640px) / var(--ar))); } .otv-o { width: calc(var(--pw) * 2); } }
@media (max-height: 620px) { .jev-t p { display: none; } }
.bez .znak, .bez .znak svg, .bez .sk, .bez .jev, .bez .kos-tl { animation: none; }
@media (prefers-reduced-motion: reduce) { .znak, .znak svg, .sk, .jev { animation: none; } .kniha, .ob, .kn3, .lst, .kos-tl { transition: none; animation: none; } html { scroll-behavior: auto; } }
