/* Šablona malého webu (admin-v10) — základ. Vzhled konkrétního webu se ladí v theme.css (proměnné --brand, --ink, --bg …). */
:root {
  --brand: #1565c0; --brand-d: #0d47a1; --accent: #ff9800; --ink: #17222f; --muted: #5d6b7a; --bg: #f2f5f8; --card: #fff; --line: #dde4ec; --soft: #f6f8fb;
  --hdr-bg: #fff; --hdr-ink: #17222f; --hdr-line: var(--line); --ftr-bg: #14202c; --ftr-ink: #aab8c6;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --wrap: 1140px; --r: 18px; --shadow: 0 1px 2px rgba(16, 32, 48, .08), 0 10px 28px rgba(16, 32, 48, .1); --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; } a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; } .skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
svg.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; margin: 1.5em 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; } h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 750; } h3 { font-size: 21px; font-weight: 700; } h4 { font-size: 18px; }
main { flex: 1; }

.top { position: sticky; top: 0; z-index: 90; background: var(--hdr-bg); color: var(--hdr-ink); border-bottom: 1px solid var(--hdr-line); box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
.top-in { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; color: var(--hdr-ink); font: 800 22px/1 var(--display); } .brand img { height: 48px; width: auto; max-width: 260px; object-fit: contain; } .brand small { font: 500 13px/1.2 var(--font); color: var(--muted); max-width: 150px; }
.nav { flex: 1; display: flex; justify-content: flex-end; min-width: 0; } .nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; } .nav li { position: relative; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; font: 700 15.5px/1.1 var(--font); color: var(--hdr-ink); text-decoration: none; border-radius: 10px; transition: background .15s, color .15s; } .nav-link:hover { background: rgba(127, 127, 127, .13); color: var(--brand); }
.nav-link.is-on, .nav-link[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px 10px 0 0; } .nav-ext .ic { width: .9em; height: .9em; opacity: .7; }
.sub-toggle { margin-left: -8px; width: 28px; height: 32px; border: 0; background: none; color: inherit; cursor: pointer; display: inline-grid; place-items: center; opacity: .6; } .sub-toggle .ic { width: 1em; height: 1em; }
.sub { position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .2); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .16s; z-index: 5; display: block; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; } .sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; } .sub a:hover, .sub a[aria-current] { background: var(--soft); color: var(--brand); }
.burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: rgba(127, 127, 127, .14); color: var(--hdr-ink); cursor: pointer; place-items: center; margin-left: auto; } .burger .ic { width: 24px; height: 24px; } .burger .ic:nth-child(2) { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 12px; border: 2px solid transparent; background: var(--brand); color: #fff; font: 800 16.5px/1.1 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); } .btn:hover { color: #fff; background: var(--brand-d); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); box-shadow: none; } .btn.ghost:hover { background: rgba(255, 255, 255, .18); }

.hero { position: relative; color: #fff; background: var(--brand-d) var(--hero) center / cover no-repeat; padding: clamp(50px, 9vw, 110px) 0; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay, linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .15))); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; } .hero h1 { color: #fff; margin: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); line-height: 1.04; font-size: clamp(34px, 5.4vw, 64px); }
.eyebrow { margin: 0 0 12px; font: 800 14px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); } .lead { margin: 18px 0 0; font-size: clamp(17px, 1.8vw, 21px); max-width: 52ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); } .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.phead { padding: 36px 0 54px; background: var(--phead-bg, linear-gradient(120deg, var(--brand-d), var(--brand))); color: #fff; } .phead h1 { color: #fff; margin: 8px 0 0; font-size: clamp(28px, 4.2vw, 46px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; color: rgba(255, 255, 255, .8); } .crumbs a { color: #fff; text-decoration: none; opacity: .92; } .crumbs a:hover { color: var(--accent); } .crumbs span { opacity: .55; }
.page-wrap { padding-bottom: 30px; } .phead + .page-wrap { margin-top: -30px; position: relative; z-index: 2; } .is-home .page-wrap { padding-top: 34px; }
.card-box { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(20px, 3.4vw, 40px); margin: 0 0 26px; } .card-box > :first-child { margin-top: 0; } .card-box > :last-child { margin-bottom: 0; }
.prose { font-size: 17.5px; } .prose p { margin: 0 0 1.05em; } .prose a { font-weight: 700; } .prose img { border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .35em 0; } .prose ul li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16.5px; } .prose td, .prose th { padding: 11px 13px; border: 1px solid var(--line); vertical-align: top; } .prose th { background: var(--soft); text-align: left; }
.prose hr { border: 0; height: 2px; background: var(--line); margin: 1.8em 0; } .prose blockquote { margin: 1.4em 0; padding: .7em 1.2em; border-left: 5px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; }
.home-cards h2 { margin: 10px 0 18px; }
.cards { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; } .card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(16, 32, 48, .2); color: var(--ink); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); } .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .card:hover .card-img img { transform: scale(1.06); }
.card-noimg { display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, var(--soft), var(--line)); } .card-noimg .ic { width: 42px; height: 42px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; flex: 1; } .card-body b { font: 800 19px/1.25 var(--display); } .card-body span { color: var(--muted); font-size: 15px; line-height: 1.5; } .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font: normal 800 15px/1 var(--font); color: var(--brand); } .card:hover .more .ic { transform: translateX(4px); } .more .ic { transition: transform .15s; }
.kids { margin-top: 6px; }

.foot { margin-top: 50px; padding: 44px 0 22px; background: var(--ftr-bg); color: var(--ftr-ink); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 40px; align-items: start; } .foot-brand b { display: block; color: #fff; font: 800 20px/1.2 var(--display); margin-bottom: 8px; } .foot-brand p { margin: 0 0 4px; font-size: 15.5px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; } .foot a { color: #dbe6f1; text-decoration: none; } .foot a:hover { color: var(--accent); text-decoration: underline; }
.copy { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; opacity: .85; }

@media (max-width: 960px) {
  .burger { display: grid; } html.nav-open .burger .ic:nth-child(1) { display: none; } html.nav-open .burger .ic:nth-child(2) { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--hdr-bg); padding: 18px 16px 40px; display: none; overflow: auto; } html.nav-open .nav { display: block; } html.nav-open body { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 4px; flex-wrap: nowrap; } .nav li { flex-wrap: wrap; } .nav-link { flex: 1; padding: 15px 18px; font-size: 18px; background: rgba(127, 127, 127, .08); border-radius: 14px; box-shadow: none !important; } .sub-toggle { width: 48px; height: 52px; margin: 0; opacity: 1; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; width: 100%; padding: 4px 0 8px 14px; display: none; } .has-sub.open > .sub { display: block; } .sub a { color: inherit; font-size: 17px; }
  .hero-in { grid-template-columns: 1fr; } .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { body { font-size: 16.5px; } :root { --header-h: 66px; } .brand img { height: 40px; } .prose td, .prose th { padding: 9px; font-size: 15.5px; } .cards { grid-template-columns: 1fr 1fr; gap: 12px; } .card-body { padding: 12px; } .card-body b { font-size: 16.5px; } .card-body span { display: none; } }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } .card-body span { display: block; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* galerie (modul Fotogalerie) */
.adm-gal { --adm-radius: 10px; } .adm-gal-i { box-shadow: 0 4px 12px rgba(16, 32, 48, .18); background: var(--soft); }

/* katalog: <figure> s popiskem (obrázky produktů) a jednoduchý lightbox */
.prose:has(> figure) { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.prose:has(> figure) > :not(figure) { grid-column: 1 / -1; margin-bottom: 0; }
.prose figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: center; box-shadow: 0 2px 8px rgba(16, 32, 48, .08); transition: transform .16s, box-shadow .16s; }
.prose figure:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(16, 32, 48, .16); }
.prose figure a { display: block; } .prose figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 12px; background: #fff; border-radius: 0; }
.prose figcaption { padding: 4px 10px 14px; font: 800 15px/1.3 var(--font); color: var(--ink); letter-spacing: .02em; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(8, 12, 18, .92); cursor: zoom-out; animation: lbin .15s; } .lb img { max-width: 100%; max-height: 92vh; border-radius: 10px; background: #fff; } @keyframes lbin { from { opacity: 0; } }

.banner-wrap { margin-top: 18px; } .banner { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); line-height: 0; } .banner img { width: 100%; height: auto; display: block; }
.banner-wrap + main .phead { margin-top: 18px; border-radius: 22px 22px 0 0; }

/* zástupce vloženého obsahu (embeds v config.json): cizí stránka se načte až po kliknutí */
.embed { margin: 0 0 1.2em; border-radius: var(--r); overflow: hidden; background: var(--soft); border: 1px solid var(--line); } .embed > p { margin: 0; padding: 10px 16px; font-size: 14.5px; }
.embed-go { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 230px; padding: 28px 16px; border: 0; cursor: pointer; font: inherit; color: #fff; background: linear-gradient(135deg, var(--brand-d), var(--brand)); } .embed-go b { font: 800 21px/1.2 var(--display); } .embed-go small { opacity: .8; font-size: 13.5px; }
.embed-play { width: 66px; height: 66px; border-radius: 50%; background: var(--accent); position: relative; transition: transform .15s; } .embed-play::after { content: ''; position: absolute; left: 26px; top: 19px; border-left: 20px solid #101820; border-top: 14px solid transparent; border-bottom: 14px solid transparent; } .embed-go:hover .embed-play { transform: scale(1.1); }
.embed iframe { display: block; width: 100%; height: var(--embed-h, 520px); border: 0; background: #fff; } .embed-video .embed-go { aspect-ratio: 16 / 9; } .embed-video iframe { height: auto; aspect-ratio: 16 / 9; }

/* kontaktní formulář ([formular]) */
.zf { display: grid; gap: 16px; max-width: 640px; margin: 1.2em 0; } .zf label { display: grid; gap: 6px; font-weight: 700; font-size: 15.5px; } .zf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zf input, .zf textarea { font: 400 17px/1.4 var(--font); padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; } .zf input:focus, .zf textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(127, 127, 127, .16); }
.zf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } .zf-spam input { max-width: 120px; } .zf-send { margin: 0; } .zf-msg { margin: 0; min-height: 1.5em; font-weight: 700; } .zf-msg.ok { color: #1b7a2e; } .zf-msg.err { color: #b3261e; }
@media (max-width: 560px) { .zf-row { grid-template-columns: 1fr; } }

/* přehled mezititulků na delších stránkách (vytváří site.js) */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6em; padding: 0 0 1.2em; border-bottom: 1px solid var(--line); } .toc a { padding: 7px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font: 700 14.5px/1.2 var(--font); text-decoration: none; color: var(--ink); } .toc a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
