/* Trampský širák — vzhled webu (2026). Dřevo, papír, rozcestník. Bez knihoven. */
@font-face { font-family: 'Comic Serif'; src: url('../fonts/comicserifpro.woff2') format('woff2'), url('../fonts/comicserifpro.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --wood-dd: #20150c; --wood-d: #33231a; --wood: #5b3f26; --wood-l: #8d6a45;
  --paper: #f8f2db; --paper-2: #efe6c3; --paper-3: #e4d8ad;
  --ink: #3e352a; --ink-2: #6a5d4a; --ink-3: #8c7e68;
  --red: #c4271c; --red-d: #9b1d14; --green: #587430; --green-l: #91a862; --gold: #e4a82e;
  --display: 'Comic Serif', 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px; --side: 262px; --r: 10px;
  --shadow: 0 1px 2px rgba(20, 12, 4, .25), 0 10px 28px rgba(20, 12, 4, .32);
  --bar-h: 62px;
}
body.hero-lg { --hero-h: clamp(400px, 52vw, 580px); }
body.hero-sm { --hero-h: clamp(220px, 24vw, 290px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.68 var(--font); color: var(--ink); background: #2e2116 url('../img/drevo.jpg') center top / 480px auto repeat; background-blend-mode: multiply; min-height: 100vh; display: flex; flex-direction: column; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-d); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 1.4em 0 .5em; color: var(--red-d); letter-spacing: .005em; }
h1 { font-size: clamp(30px, 5vw, 52px); } h2 { font-size: clamp(24px, 3vw, 32px); } h3 { font-size: 22px; } h4 { font-size: 18px; }

/* ── horní lišta ─────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 90; height: var(--bar-h); background: linear-gradient(var(--wood-d), var(--wood-dd)); border-bottom: 3px solid #0f0904; box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
.bar .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 22px; line-height: 1; white-space: nowrap; }
.brand img { height: 48px; width: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transform: rotate(-2deg); transition: transform .25s; }
.brand:hover img { transform: rotate(2deg) scale(1.05); }
.brand small { display: block; font-family: var(--font); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #cdb98e; margin-top: 3px; }
.bar-spacer { flex: 1; }
.bar-date { color: #e9dcb6; font-size: 14px; white-space: nowrap; }
.bar-date b { color: #fff; font-family: var(--display); font-weight: 400; font-size: 17px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 2px solid rgba(0, 0, 0, .35); background: linear-gradient(#d83a2c, var(--red)); color: #fff; font: 400 18px/1.1 var(--display); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--red-d), 0 8px 18px rgba(0, 0, 0, .35); transition: transform .12s, box-shadow .12s, filter .15s; }
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 5px 0 var(--red-d), 0 12px 22px rgba(0, 0, 0, .4); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-d); }
.btn.alt { background: linear-gradient(#7b9a45, var(--green)); box-shadow: 0 3px 0 #3d5320, 0 8px 18px rgba(0, 0, 0, .35); }
.btn.wood { background: linear-gradient(var(--wood-l), var(--wood)); box-shadow: 0 3px 0 var(--wood-dd), 0 8px 18px rgba(0, 0, 0, .35); }
.btn.sm { padding: 8px 16px; font-size: 16px; }
.menu-btn { display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 2px solid #7a5a39; background: var(--wood); color: #fff; font: 400 17px/1 var(--display); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ── hrdina (slideshow) ───────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; height: var(--hero-h); overflow: hidden; background: var(--wood-dd); border-bottom: 4px solid #0f0904; }
.hero.is-small .slide.on img { animation-duration: 20s; }
.hero.is-small h1 { font-size: clamp(30px, 4.4vw, 54px); }
.slides, .slide { position: absolute; inset: 0; } .slide { margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.slide.on img { animation: kb 14s ease-out forwards; }
@keyframes kb { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.2%, -1%); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 12, 4, .45) 0%, rgba(20, 12, 4, .08) 38%, rgba(20, 12, 4, .72) 100%), linear-gradient(90deg, rgba(20, 12, 4, .55), transparent 62%); }
.hero-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 34px; color: #fff; }
.hero-in .wrap { padding-right: calc(var(--side) + 40px); }
.kicker { display: inline-block; align-self: flex-start; margin: 0 0 10px; padding: 6px 14px; background: var(--paper); color: var(--ink); border-radius: 4px; font: 400 17px/1.2 var(--display); transform: rotate(-1.4deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.hero h1 { margin: 0; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 8px 30px rgba(0, 0, 0, .6); font-size: clamp(34px, 6.4vw, 78px); line-height: 1.02; }
.hero-line { margin: 12px 0 0; font-size: clamp(17px, 2vw, 24px); color: #f3e8c6; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); max-width: 40ch; }
.slide-cap { position: absolute; z-index: 2; left: max(16px, calc((100% - var(--wrap)) / 2)); top: 28px; padding: 6px 16px; background: rgba(32, 21, 12, .78); color: #fff; font: 400 clamp(17px, 2vw, 24px)/1.2 var(--display); border-left: 5px solid var(--gold); opacity: 0; transform: translateX(-20px); transition: opacity .8s .5s, transform .8s .5s; pointer-events: none; }
.slide.on .slide-cap { opacity: 1; transform: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-count { margin-top: 20px; }
.dots { position: absolute; z-index: 3; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: .2s; } .dots button.on { background: var(--gold); width: 26px; border-radius: 6px; }

/* odpočet (modul Stavy) */
.stavy-cd { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.stavy-cd-title { font: 400 15px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #e9dcb6; }
.stavy-cd-cells { display: flex; gap: 10px; }
.stavy-cd-cell { min-width: 74px; padding: 10px 8px 8px; text-align: center; border-radius: 8px; background: linear-gradient(rgba(70, 47, 28, .94), rgba(36, 23, 13, .94)); border: 2px solid #8d6a45; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 6px 14px rgba(0, 0, 0, .45); }
.stavy-cd-cell b { display: block; font: 400 clamp(26px, 4vw, 40px)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.stavy-cd-cell i { display: block; margin-top: 4px; font: normal 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #cdb98e; }
.stavy-cd-after { font: 400 30px/1.2 var(--display); color: var(--gold); text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }

/* ── hlavní rozložení + rozcestník ───────────────────────────────────────── */
.main { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 30px; align-items: start; padding-bottom: 50px; position: relative; z-index: 4; }
.side { position: sticky; top: calc(var(--bar-h) - 14px); margin-top: calc(var(--hero-h) * -1); z-index: 5; }
.content { padding-top: 34px; min-width: 0; }
.totem { position: relative; width: min(250px, calc((100vh - var(--bar-h) + 20px) * .3676)); margin-inline: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
.totem img { display: block; width: 100%; height: auto; }
.totem a { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 6px; transition: transform .18s, filter .18s; }
.totem a:hover, .totem a:focus-visible { transform: scale(1.06) rotate(-1.2deg); filter: brightness(1.18) drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); background: rgba(255, 255, 255, .06); }
.totem-close, .totem-wrap .menu-tiles { display: none; }
.side { grid-column: 2; grid-row: 1; }
.content { grid-column: 1; grid-row: 1; }
.links-panel { margin: 8px 0 0; padding: 22px clamp(16px, 3vw, 30px) 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 90px), var(--paper-2); border-radius: 6px; box-shadow: var(--shadow); border: 1px solid rgba(60, 40, 15, .35); }
.links-panel h2 { font: 400 clamp(22px, 3vw, 28px)/1.2 var(--display); margin: 0 0 14px; color: var(--red-d); }
.links-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.links-panel li > a { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 56px; padding: 10px 14px; border-radius: 10px; background: #fffdf3; border: 1px solid var(--paper-3); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; transition: transform .15s, box-shadow .15s, border-color .15s; }
.links-panel li > a:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 8px 16px rgba(40, 25, 8, .2); color: var(--red-d); }
.links-panel li > a svg { width: 26px; height: 26px; color: var(--green); }
.links-panel .logo-link { flex-direction: column; justify-content: center; gap: 4px; text-align: center; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.links-panel .logo-link img { max-height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.links-panel .hymna { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 14px; background: #fffdf3; border: 1px solid var(--paper-3); border-radius: 10px; font-weight: 700; }
.links-panel .hymna span { display: inline-flex; align-items: center; gap: 10px; } .links-panel .hymna svg { width: 26px; height: 26px; color: var(--green); }
.links-panel .hymna audio { flex: 1 1 260px; height: 36px; max-width: 100%; }

/* ── papír (obsah) ───────────────────────────────────────────────────────── */
.paper { position: relative; margin: 0 0 26px; padding: 34px clamp(20px, 4vw, 48px); background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 120px), var(--paper); border-radius: 6px; box-shadow: var(--shadow); border: 1px solid rgba(60, 40, 15, .35); }
.paper > :first-child { margin-top: 0; }
.paper > :last-child { margin-bottom: 0; }
.paper h1 { margin-top: 0; }
.paper p { margin: 0 0 1.1em; }
.paper img { border-radius: 4px; }
.paper hr { border: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--paper-3) 0 8px, transparent 8px 14px); margin: 1.8em 0; }
.paper ul, .paper ol { padding-left: 1.3em; } .paper li { margin: .35em 0; } .paper ul li::marker { color: var(--green); }
.paper table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; display: block; overflow-x: auto; }
.paper td, .paper th { padding: 10px 12px; border: 1px solid var(--paper-3); vertical-align: top; }
.paper tr:nth-child(odd) td { background: rgba(255, 255, 255, .35); }
.paper blockquote { margin: 1.4em 0; padding: .6em 1.2em; border-left: 5px solid var(--gold); background: var(--paper-2); border-radius: 0 8px 8px 0; font-style: italic; }
.plank { display: inline-block; margin: 0 0 18px; padding: 8px 26px 7px; position: relative; font: 400 clamp(22px, 3vw, 30px)/1.2 var(--display); color: #fff6dc; background: linear-gradient(var(--wood-l), var(--wood) 55%, var(--wood-d)); border-radius: 6px; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 5px 12px rgba(0, 0, 0, .4); }
.plank::before, .plank::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9d9d9, #555); }
.plank::before { left: 9px; } .plank::after { right: 9px; }

/* rychlé dlaždice */
.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }      /* 10 dlaždic: 5 × 2, na mobilu 2 × 5 – bez mezer */
.tile { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; color: #fff6dc; text-decoration: none; border-radius: var(--r); background: linear-gradient(160deg, var(--wood) 0%, var(--wood-d) 100%); border: 2px solid #7b5a37; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.tile:hover { color: #fff; transform: translateY(-3px) rotate(-.6deg); border-color: var(--gold); }
.tile svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile b { min-width: 0; font: 400 17px/1.15 var(--display); }
@media (max-width: 1200px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }           /* vedle rozcestníku je obsah užší → 5 sloupců se vejde až od ~1200 px */
@media (max-width: 360px) { .tile { padding: 8px 10px; gap: 7px; } .tile svg { width: 20px; height: 20px; } .tile b { font-size: 14.5px; } }
@media (max-width: 345px) { .tile { padding: 8px 8px; gap: 6px; } .tile svg { width: 18px; height: 18px; } .tile b { font-size: 13.5px; } }

/* ── galerie: karty ročníků ──────────────────────────────────────────────── */
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 22px; margin: 22px 0 6px; padding: 0; list-style: none; }
.year { position: relative; padding: 14px 14px 16px; text-align: center; background: #fffdf3; border-radius: 4px; box-shadow: 0 2px 4px rgba(40, 25, 8, .3), 0 12px 22px rgba(40, 25, 8, .22); transform: rotate(var(--tilt, 0deg)); transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column; gap: 6px; }
.year:nth-child(3n+1) { --tilt: -1.3deg; } .year:nth-child(3n+2) { --tilt: .9deg; } .year:nth-child(3n) { --tilt: -.5deg; }
.year:hover, .year:focus-within { transform: rotate(0) translateY(-5px) scale(1.02); box-shadow: 0 4px 8px rgba(40, 25, 8, .3), 0 20px 34px rgba(40, 25, 8, .3); z-index: 2; }
.year::before { content: ''; position: absolute; top: -8px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: rgba(228, 205, 140, .75); transform: rotate(-2deg); border: 1px solid rgba(160, 130, 60, .3); }
.year-img { display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(circle, #fff 30%, var(--paper-2)); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.year-img img { width: 78%; height: 78%; object-fit: contain; transition: transform .35s; } .year-img img.photo { width: 100%; height: 100%; object-fit: cover; }
.year:hover .year-img img { transform: scale(1.08) rotate(-2deg); }
.year h3 { margin: 0; font-size: 21px; color: var(--ink); }
.year .n { font: 700 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.year-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--green); color: #fff; font: 700 13px/1 var(--font); text-decoration: none; letter-spacing: .03em; }
.chip:hover { background: var(--red); color: #fff; } .chip.yt { background: #c4271c; } .chip.yt:hover { background: #8d160e; }
.chip svg { width: 15px; height: 15px; fill: currentColor; }
.year.soon .year-img { filter: grayscale(.9) opacity(.55); } .year.soon .ribbon { display: inline-block; margin-top: 6px; padding: 5px 14px; border-radius: 4px; background: var(--paper-3); color: var(--ink-2); font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; font-size: 15px; }
.gal-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ── obsah stránek (jen značky, které umí editor administrace → vzhled řeší CSS podle stránky) ── */
.paper .paper-link-grid { display: block; }
/* úvod: plakát + zvadlo jako přišpendlené fotky */
.p-uvod p:has(> a > img), .p-kdy-a-kde p:has(> a > img), .p-galerie p:has(> a > img), .p-vstupne p:has(> a > img) { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: flex-start; }
.p-uvod p > a:has(> img), .p-galerie p > a:has(> img) { flex: 1 1 200px; max-width: 340px; text-align: center; text-decoration: none; color: var(--ink); font: 400 19px/1.25 var(--display); }
.p-uvod p > a:has(> img) img, .p-galerie p > a:has(> img) img { display: block; width: 100%; height: auto; border: 7px solid #fff; border-bottom-width: 12px; border-radius: 2px; box-shadow: 0 7px 18px rgba(40, 25, 8, .38); transform: rotate(-1.6deg); transition: transform .25s; margin-bottom: 12px; }
.p-uvod p > a:has(> img):nth-child(2) img { transform: rotate(1.5deg); }
.p-uvod p > a:has(> img):hover img, .p-galerie p > a:has(> img):hover img { transform: rotate(0) scale(1.03); }
.p-uvod ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.p-uvod ul li { position: relative; padding: 12px 16px 12px 52px; background: #fffdf3; border-radius: 8px; box-shadow: 0 2px 6px rgba(40, 25, 8, .15); margin: 0; }
.p-uvod ul li::before { content: '★'; position: absolute; left: 16px; top: 8px; font-size: 24px; line-height: 1.5; color: var(--gold); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
/* novinky: každý bod jako lístek */
.p-novinky p:nth-of-type(n+2) { padding: 14px 18px; background: #fffdf3; border-left: 6px solid var(--gold); border-radius: 0 8px 8px 0; box-shadow: 0 2px 6px rgba(40, 25, 8, .15); }
.p-novinky img { height: 2.2em; width: auto; vertical-align: middle; border-radius: 6px; }
/* program: nevyhlášené položky jako razítka „?“ */
.p-program ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.p-program ul li { position: relative; margin: 0; display: grid; place-items: center; min-height: 74px; padding: 10px; text-align: center; font: 400 22px/1.2 var(--display); color: var(--wood); background: #fffdf3; border: 2px dashed var(--wood-l); border-radius: 10px; box-shadow: 0 2px 6px rgba(40, 25, 8, .15); }
.p-program ul li:nth-child(odd) { transform: rotate(-1deg); } .p-program ul li:nth-child(even) { transform: rotate(.8deg); }
.p-program h3 { display: inline-block; margin: 1.4em 0 .5em; padding: 6px 20px; color: #fff6dc; background: linear-gradient(var(--wood-l), var(--wood-d)); border-radius: 6px; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); font-size: 22px; }
/* vstupné */
.p-vstupne table th { text-align: center; background: var(--paper-2); color: var(--red-d); font: 400 17px/1.3 var(--display); }
.p-vstupne table td { text-align: center; }
.p-vstupne tbody th:first-child { color: var(--green); text-align: left; }
.p-vstupne p > a > img { display: block; margin: 0 auto; max-width: 253px; transition: transform .2s; } .p-vstupne p > a:hover > img { transform: scale(1.05) rotate(-1deg); }
/* kdy a kde */
.p-kdy-a-kde p:has(> a > img) > a { flex: 1 1 240px; color: var(--ink); text-align: center; text-decoration: none; font: 400 18px/1.25 var(--display); }
.p-kdy-a-kde p:has(> a > img) > a img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 8px; border: 6px solid #fff; border-radius: 2px; box-shadow: 0 5px 14px rgba(40, 25, 8, .35); transition: transform .3s; }
.p-kdy-a-kde p:has(> a > img) > a:hover img { transform: scale(1.03) rotate(.6deg); }
/* ubytování */
.p-ubytovani table th { background: var(--paper-2); color: var(--red-d); font: 400 17px/1.3 var(--display); text-align: left; }
.p-ubytovani table td:last-child { white-space: nowrap; }
/* kontakt: každá osoba jako karta */
.p-kontakt table, .p-kontakt tbody { display: block; overflow: visible; margin: 0; }
.p-kontakt tr { display: flex; gap: 22px; align-items: flex-start; margin: 0 0 22px; padding: 18px; background: #fffdf3; border-radius: 8px; box-shadow: 0 2px 4px rgba(40, 25, 8, .25), 0 12px 22px rgba(40, 25, 8, .16); }
.p-kontakt td { display: block; padding: 0; border: 0; background: none !important; }
.p-kontakt td:first-child { flex: none; width: 150px; }
.p-kontakt td:first-child img { display: block; width: 100%; aspect-ratio: 9/10; object-fit: cover; border: 5px solid #fff; border-radius: 2px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transform: rotate(-1.5deg); transition: transform .25s; }
.p-kontakt tr:nth-child(even) td:first-child img { transform: rotate(1.5deg); } .p-kontakt td:first-child a:hover img { transform: rotate(0) scale(1.04); }
.p-kontakt h3 { margin: 0 0 4px; font-size: 24px; color: var(--ink); } .p-kontakt td p { margin: 0 0 .7em; } .p-kontakt td a { font-weight: 700; }
/* partneři: loga jako dlaždice */
.p-partneri p { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; align-items: stretch; }
.p-partneri p > a { display: grid; place-items: center; min-height: 118px; padding: 14px; background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(40, 25, 8, .22); transition: transform .18s, box-shadow .18s; }
.p-partneri p > a:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 12px 22px rgba(40, 25, 8, .3); }
.p-partneri p img { max-width: 100%; max-height: 92px; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.p-partneri p:nth-of-type(2) { grid-template-columns: 1fr; } .p-partneri p:nth-of-type(2) > a { min-height: 0; padding: 12px; } .p-partneri p:nth-of-type(2) img { max-height: 120px; }
.p-e-shop p { text-align: center; font: 400 clamp(26px, 4vw, 40px)/1.3 var(--display); color: var(--wood); padding: 30px 0; }
/* společné: nové vložené tabulky ať jsou čitelné i na telefonu */
.paper table { display: table; }
@media (max-width: 760px) { .paper table { display: block; overflow-x: auto; } .p-kontakt table { overflow: visible; } }

/* ── galerie (modul Fotogalerie): fotky jako přišpendlené polaroidy ── */
.adm-gal { --adm-radius: 3px; }
.adm-gal-i { border: 6px solid #fff; border-bottom-width: 10px; box-shadow: 0 3px 10px rgba(40, 25, 8, .3); background: #e9e1c4; transition: transform .2s, box-shadow .2s; }
.adm-gal-i:nth-child(3n+1) { transform: rotate(-.8deg); } .adm-gal-i:nth-child(3n+2) { transform: rotate(.6deg); }
.adm-gal-i:hover, .adm-gal-i:focus-visible { transform: rotate(0) scale(1.04); box-shadow: 0 10px 24px rgba(40, 25, 8, .45); z-index: 2; }
.adm-gal-i:focus-visible { outline: 3px solid var(--gold); }
.chip.is-on { background: var(--wood); box-shadow: 0 0 0 2px var(--gold); }
.paper.gal .crumbs { margin-bottom: 8px; }
.paper.gal .count { margin: 4px 0 0; text-align: center; color: var(--ink-3); font-size: 14px; }
.year-link { color: inherit; text-decoration: none; display: block; } .year-link:hover { color: inherit; }
.year h3 .n { display: block; margin-bottom: 4px; } .year h3 { font: 400 34px/1 var(--display); color: var(--red-d); }
.year .year-links .chip { font-size: 12px; padding: 6px 10px; } .year .year-links svg { width: 14px; height: 14px; }
.soon-board { text-align: center; padding: 50px 20px; color: var(--ink-2); }
.partners-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.partners-strip a { display: grid; place-items: center; height: 72px; min-width: 110px; padding: 8px 16px; background: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(40, 25, 8, .2); transition: transform .18s, box-shadow .18s; }
.partners-strip a:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(40, 25, 8, .3); }
.partners-strip img { max-height: 52px; max-width: 150px; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.btn svg { width: 1.2em; height: 1.2em; }
.paper p > .btn { margin-top: .4em; }

/* ── patička ─────────────────────────────────────────────────────────────── */
.foot { margin-top: auto; background: linear-gradient(var(--wood-d), var(--wood-dd)); border-top: 4px solid #0f0904; color: #cdb98e; padding: 28px 0 34px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: flex-start; justify-content: space-between; }
.foot a { color: #f1dca6; text-decoration: none; } .foot a:hover { color: #fff; text-decoration: underline; }
.foot b { color: #fff; font: 400 20px/1.2 var(--display); display: block; margin-bottom: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: 520px; }
.copy { width: 100%; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #a8966f; }

/* ── mobil ───────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .main { grid-template-columns: minmax(0, 1fr); }
  .main { position: static; z-index: auto; }
  .side { display: contents; }
  .content { grid-column: 1; }
  .hero-in .wrap { padding-right: 0; }
  .menu-btn { display: inline-flex; }
  .bar-date { display: none; }
  .totem-wrap { display: none; }
  body.nav-open .totem-wrap { display: flex; position: fixed; inset: 0; z-index: 120; overflow-y: auto; padding: 74px 20px 28px; background: rgba(14, 8, 3, .9); backdrop-filter: blur(6px); animation: fadeIn .2s; }
  /* rozcestník je jen pro počítače; v mobilním menu ho nahrazují dlaždice s ikonou (jako na úvodu) */
  .totem-wrap .totem { display: none; }
  body.nav-open .totem-wrap .menu-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(560px, 100%); margin: auto; }
  .menu-tiles .tile { min-height: 58px; padding: 12px 14px; } .menu-tiles .tile b { font-size: 18px; }
  .menu-tiles .tile.home { grid-column: 1 / -1; }
  .menu-tiles .tile[aria-current] b { color: var(--gold); }
  .totem-close { display: grid; position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; place-items: center; border-radius: 50%; border: 2px solid #8d6a45; background: var(--wood); color: #fff; cursor: pointer; z-index: 2; }
  .totem-close svg { width: 24px; height: 24px; }
}
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 460px) { .menu-btn .lbl { display: none; } .menu-btn { padding: 10px 12px; } .brand { font-size: 18px; } }
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  body.hero-lg { --hero-h: clamp(460px, 122vw, 580px); } body.hero-sm { --hero-h: 210px; }
  .brand small { display: none; } .brand { font-size: 19px; } .brand img { height: 42px; }
  .bar .btn { display: none; }
  .hero-in { padding-bottom: 44px; }
  .stavy-cd-cell { min-width: 62px; } .stavy-cd-cells { gap: 7px; }
  .paper { padding: 28px 18px; }
  .quick { gap: 8px; } .tile { padding: 10px 12px; gap: 9px; } .tile b { font-size: 16px; }
  .years { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; } .year h3 { font-size: 28px; }
  .p-kontakt tr { flex-direction: column; } .p-kontakt td:first-child { width: min(220px, 70%); margin-inline: auto; }
  .p-uvod p > a:has(> img), .p-galerie p > a:has(> img) { flex-basis: 100%; }
  .p-ubytovani table td:last-child { white-space: normal; }
  .slide-cap { top: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .slide.on img { transform: none; } }

.p-galerie p > a:has(> img) { max-width: 230px; }

.slide-cap a { color: #fff; text-decoration: none; } .slide-cap a:hover { color: var(--gold); }
.slide.on .slide-cap { pointer-events: auto; }
