/* Czech GeoWest – nový web (sklicko.cz)
   Barvy vychází z loga (obloha, zeleň, černé obrysy)
   a ze společného listingu GeoWest Parku (#546D35, #C2A477). */

/* ---------- Písma ----------
   Chakra Petch a Source Sans 3 (SIL Open Font License 1.1) jsou uložená přímo na webu ve složce fonts/,
   jen latinka a rozšířená latinka (čeština, němčina). Prohlížeč si stáhne jen sadu, kterou stránka potřebuje. */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/chakra-petch-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/chakra-petch-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/chakra-petch-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/chakra-petch-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/chakra-petch-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/chakra-petch-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #111511;
  --ink-soft: #3c463c;
  --muted: #5c665c;
  --paper: #f6f8f3;
  --card: #ffffff;
  --line: #111511;

  --sky-50: #eef5ff;
  --sky-200: #bcd6fd;
  --sky-500: #5b95f2;
  --sky-700: #2a5fb8;

  --green-200: #b9eab0;
  --green-500: #3fae49;
  --green-700: #1f7a2c;

  --olive: #546d35;
  --tan: #c2a477;

  --radius: 6px;
  --shadow: 4px 4px 0 var(--line);
  --font-head: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--sky-700); text-underline-offset: 2px; }
a:hover { color: var(--green-700); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.muted { color: var(--muted); font-size: .95rem; }

:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 2px; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--card);
  border-bottom: 3px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 84px; padding-top: 4px; padding-bottom: 4px; }
.brand { display: flex; flex: none; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { display: block; width: 100px; height: auto; }

.main-nav { order: 1; margin-left: auto; display: flex; gap: 2px; flex-wrap: nowrap; }
.main-nav a { white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none; color: var(--ink);
  padding: 8px 10px; border-radius: var(--radius); border: 2px solid transparent;
}
.main-nav a:hover { border-color: var(--line); background: var(--sky-50); color: var(--ink); }

.nav-toggle {
  order: 3; display: none; margin-left: auto; align-items: center; gap: 9px;
  font: 600 1rem var(--font-head);
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 0 14px; min-height: 42px; cursor: pointer; box-shadow: 2px 2px 0 var(--line);
}
.nav-toggle[aria-expanded="true"] { background: var(--olive); color: #fff; }
.nav-toggle-icon { position: relative; width: 18px; height: 14px; flex: none; }
.nav-toggle-icon::before, .nav-toggle-icon::after, .nav-toggle-icon span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 5.75px; }
.nav-toggle-icon::after { top: 11.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 5.75px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 5.75px; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }
.main-nav a.is-active { border-color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky-200) 0%, var(--sky-50) 70%, var(--paper) 100%);
  padding-top: 48px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .85rem; color: #1f4f9e; margin: 0 0 8px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .25em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-logo img { display: block; margin: 0 auto; width: min(100%, 460px); }

.panorama { margin: 40px auto 0; max-width: var(--wrap); padding: 0 16px; }
.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;
}
.panorama img {
  display: block; width: 100%; aspect-ratio: 1600 / 360; object-fit: cover;
  border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem var(--font-head);
  text-decoration: none; color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 10px 18px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn-primary { background: #2a8237; color: #fff; }
.btn-primary:hover { color: #fff; background: var(--green-700); }
.btn-small { padding: 4px 12px; font-size: .9rem; box-shadow: 2px 2px 0 var(--line); }
.btn.copied { background: var(--green-200); }

/* ---------- Sekce ---------- */
.section { padding: 64px 0; }
.section-alt { background: #eaf0e3; border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  display: inline-block;
  padding: 2px 14px 4px;
  color: #fff; background: var(--olive);
  border-bottom: 4px solid var(--tan);
  border-radius: var(--radius) var(--radius) 0 0;
}
.section-lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 46em; }

.card {
  background: var(--card);
  border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px; margin-top: 28px;
}
.card h3 { font-size: 1.45rem; display: flex; align-items: center; gap: 10px; }
.step {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  background: var(--sky-700); color: #fff;
  border: 2px solid var(--line); border-radius: 4px; font-size: 1.1rem;
}

/* ---------- Logo do listingu ---------- */
.size-switch { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 16px 0; }
.size-label { font-weight: 700; }
.size-switch label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.size-switch small { color: var(--muted); }

.logo-snippets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.snippet {
  border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; background: var(--card);
}
.snippet-preview {
  display: grid; place-items: center; min-height: 210px; padding: 16px;
  background: #fff;
  border-bottom: 2px solid var(--line);
}
.snippet-preview.dark { background: #2b3328; }
.snippet-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.snippet-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.snippet-title span { font-weight: 700; }
.snippet-title small { color: var(--muted); font-weight: 400; display: block; }

textarea, input[type="text"], input[type="url"], input[type="email"] {
  width: 100%;
  font: 400 .95rem var(--font-body);
  border: 2px solid var(--line); border-radius: 4px;
  padding: 8px 10px; background: #fff; color: var(--ink);
}
textarea[readonly] {
  font: 400 .8rem/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: #f3f5f0; resize: vertical;
}
.snippet textarea { min-height: 76px; }

/* ---------- Generátor listingu ---------- */
.generator { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin-top: 20px; }
.gen-form { display: flex; flex-direction: column; gap: 14px; }
.gen-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.gen-form small { font-weight: 400; color: var(--muted); }

.preview-label {
  font: 600 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 6px;
}
.listing-preview {
  border: 2px dashed var(--ink-soft); border-radius: var(--radius);
  padding: 16px; background: #fff;
  font: 400 .95rem/1.45 Verdana, Arial, sans-serif; color: #000;
  max-height: 560px; overflow: auto;
}
.listing-preview h2 { font-family: Verdana, Arial, sans-serif; font-size: 1.15rem; margin: 10px 0; }
.listing-preview img { max-width: 100%; height: auto; }
.listing-preview hr { clear: both; }

.code-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.code-head {
  display: flex; justify-content: space-between; align-items: center;
  font: 700 1rem var(--font-head); margin-bottom: 6px;
}

.original-text { margin-top: 20px; border-top: 2px solid #dfe4da; padding-top: 12px; }
.original-text summary { cursor: pointer; font-weight: 700; }
.lang-text p { overflow: hidden; }
.lang-text img { float: left; margin: 4px 14px 4px 0; border: 1px solid #ccc; }

/* ---------- GeoWest Park ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: start; }
.rules { padding-left: 0; list-style: none; counter-reset: r; margin: 20px 0 0; }
.rules li {
  counter-increment: r;
  position: relative; padding: 10px 12px 10px 52px; margin-bottom: 8px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
}
.rules li::before {
  content: counter(r);
  position: absolute; left: 10px; top: 9px;
  width: 30px; height: 30px; display: grid; place-items: center;
  font: 700 1rem var(--font-head); color: #fff;
  background: var(--olive); border-radius: 4px;
}
.park-aside { position: sticky; top: 96px; }
.park-badge {
  text-align: center; background: var(--card);
  border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; padding-bottom: 20px;
}
.park-badge img { display: block; margin: 16px auto 4px; width: 200px; }
.park-badge h3 {
  margin: 0 0 8px; padding: 6px 10px; color: #fff; background: var(--olive);
  border-top: 3px solid var(--tan); border-bottom: 3px solid var(--tan);
}

/* ---------- Logo grid ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; max-width: 900px; }
.logo-tile {
  margin: 0; background: var(--card);
  border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.logo-tile img { display: block; width: 100%; padding: 16px; background: #fff; border-bottom: 2px solid var(--line); }
.logo-tile.dark img { background: #2b3328; }
.logo-tile figcaption { padding: 10px 12px; font-size: .95rem; color: var(--ink-soft); }
.logo-tile figcaption strong { color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; }
.logo-name { display: block; }
.sizes-title { display: block; margin-top: 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sizes a {
  font-size: .8rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px;
}
.sizes a:hover { background: var(--sky-50); }
.download-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.card.terms { padding: 18px 22px; font-size: .95rem; line-height: 1.4; }
.terms h3 { font-size: 1.25rem; margin-bottom: .4em; }
.terms p { margin: 0 0 10px; }
.terms-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 0 0 10px; }
.terms h4 { font-size: 1rem; margin: 0 0 4px; display: flex; align-items: center; gap: 7px; }
.terms h4::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background-position: center; background-size: 12px; background-repeat: no-repeat;
}
.terms-yes { --mark-color: var(--green-700); }
.terms-no { --mark-color: #b42318; }
.terms-yes h4::before { background-color: var(--green-700); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.terms-no h4::before { background-color: #b42318; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7m0-7l-7 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.terms ul { list-style: none; padding: 0; margin: 0; }
.terms li { position: relative; padding-left: 16px; margin-bottom: 3px; }
.terms li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--mark-color); }
.terms .terms-foot { margin: 0; padding-top: 8px; border-top: 1px solid #e4e8de; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .terms-cols { grid-template-columns: 1fr; } }

.serie-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 12px; }
.serie-tools input[type="search"] {
  flex: 1 1 260px; max-width: 420px;
  font: 400 1rem var(--font-body);
  border: 2px solid var(--line); border-radius: 4px; padding: 8px 10px; background: #fff;
}
.serie-pocet { color: var(--muted); }
.table-wrap {
  background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow-x: auto;
}
.serie-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.serie-table th { background: var(--olive); color: #fff; text-align: left; padding: 0; border-bottom: 3px solid var(--tan); }
.serie-table th button {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer;
  padding: 10px 12px; font: 700 1rem var(--font-head);
}
.serie-table th button:focus-visible { outline: 3px solid var(--sky-200); outline-offset: -3px; }
.serie-table th[aria-sort="ascending"] button::after { content: " ▲"; font-size: .75em; }
.serie-table th[aria-sort="descending"] button::after { content: " ▼"; font-size: .75em; }
.serie-table td { padding: 8px 12px; border-top: 1px solid #dfe4da; vertical-align: top; }
.serie-table tbody tr:nth-child(even) td { background: #f6f8f3; }
.serie-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.serie-table th.num button { text-align: right; }
.star { color: #c08a1e; cursor: help; }
.star-part { color: #8a7a55; }

.park-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.park-stats div {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 10px; text-align: center;
}
.park-stats strong { display: block; font: 700 1.6rem var(--font-head); color: var(--olive); }
.park-stats span { font-size: .9rem; color: var(--muted); }
.park-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 12px; }

/* ---------- Novinky ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.news-col {
  background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.news-head {
  margin: 0; padding: 10px 16px; background: var(--olive); color: #fff;
  border-bottom: 3px solid var(--tan); font-size: 1.25rem;
}
.news-head a { color: #fff; text-decoration: none; }
.news-head a:hover { text-decoration: underline; color: #fff; }
.news-head small { font: 600 .8rem var(--font-body); color: #efe3c8; margin-left: 6px; white-space: nowrap; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 12px 16px; border-top: 1px solid #dfe4da; }
.news-list li:first-child { border-top: 0; }
.news-date { display: block; font: 600 .8rem var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.news-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.news-title:hover { color: var(--green-700); text-decoration: underline; }
.news-list p { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
.news-empty { color: var(--muted); }

/* ---------- Facebook a galerie ---------- */
.fb-embed { padding: 16px; min-height: 200px; display: flex; justify-content: center; }
.fb-embed iframe { display: block; max-width: 100%; }
.fb-consent { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fb-consent p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.fb-remember { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); cursor: pointer; }
.gallery { margin-top: 32px; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gallery-head h3 { font-size: 1.3rem; margin: 0; }
.gallery-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.album {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 3px 3px 0 var(--line); transition: transform .08s ease, box-shadow .08s ease;
}
.album:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); color: var(--ink); }
.album img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 2px solid var(--line); background: #e4e8de; }
.album.no-img::before { content: ""; display: block; aspect-ratio: 3 / 2; background: #e4e8de url(../img/logo/logo_cerne3.png) center / 40% no-repeat; border-bottom: 2px solid var(--line); opacity: .8; }
.album strong { font-family: var(--font-head); padding: 8px 10px 0; line-height: 1.25; }
.album span { padding: 2px 10px 10px; color: var(--muted); font-size: .85rem; }

/* ---------- Eventy ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.events-head { font-size: 1.3rem; margin-bottom: 10px; }
.events-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.events-list > li:not(.news-empty) {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 12px;
}
.ev-date {
  flex: none; width: 58px; text-align: center; line-height: 1.1;
  border: 2px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff;
  font-family: var(--font-head);
}
.ev-date span:first-child { display: block; background: var(--olive); color: #fff; font-size: .8rem; font-weight: 600; padding: 2px 0; text-transform: uppercase; }
.ev-date strong { display: block; font-size: 1.4rem; padding-top: 2px; }
.ev-date span:last-child { display: block; font-size: .8rem; color: var(--muted); padding-bottom: 3px; }
.events-list p { margin: 2px 0 0; color: var(--ink-soft); font-size: .92rem; }
.ev-note {
  display: inline-block; margin-top: 4px; font: 600 .8rem var(--font-head);
  background: var(--green-200); border: 1px solid var(--line); border-radius: 3px; padding: 0 6px;
}
.events-more { margin-top: 20px; }

/* ---------- Historie ---------- */
.timeline { list-style: none; padding: 0; margin: 24px 0 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 150px; top: 6px; bottom: 6px;
  width: 4px; background: var(--line); border-radius: 2px;
}
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 10px 0; position: relative; }
.timeline li::after {
  content: ""; position: absolute; left: 143px; top: 16px;
  width: 18px; height: 18px; border-radius: 3px;
  background: var(--sky-500); border: 3px solid var(--line);
}
.timeline li.now::after { background: var(--green-500); }
.when { font: 700 1rem var(--font-head); text-align: right; padding-right: 8px; padding-top: 2px; }

/* ---------- Odkazy ---------- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.link-card {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--ink);
  background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: 3px 3px 0 var(--line);
  transition: transform .08s ease, box-shadow .08s ease;
}
.link-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); color: var(--ink); }
.link-card strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--green-700); }
.link-card span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- ID karta ---------- */
.karta-layout {
  display: grid; grid-template-columns: minmax(280px, 1fr) 1.3fr; grid-template-areas: "form front" "form back";
  grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 28px; align-items: start; margin-top: 24px;
}
.karta-form { grid-area: form; margin-top: 0; display: flex; flex-direction: column; gap: 14px; }
.karta-preview-front { grid-area: front; }
.karta-preview-back { grid-area: back; }
.karta-form input[type="file"] { font: 400 .95rem var(--font-body); }
.karta-form .btn[disabled] { opacity: .6; cursor: progress; }
.main-nav-static { display: flex; }

.mini-card {
  aspect-ratio: 1011 / 638; width: 100%; max-width: 560px;
  border: 3px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #f6f5ef 0%, #f6f5ef 45%, #e3eedb 100%);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  container-type: inline-size; font-family: var(--font-head);
}
.mini-band {
  background: var(--olive); color: #fff; border-bottom: .9cqw solid var(--tan);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4cqw 0 3.4cqw; height: 8.9cqw; box-sizing: border-box;
}
.mini-band span { font-weight: 700; font-size: 3.1cqw; letter-spacing: .14em; }
.mini-band em { font-style: normal; color: var(--tan); font-weight: 600; font-size: 2cqw; letter-spacing: .12em; text-align: right; line-height: 1.5; }
.mini-band em small { color: #e8eedf; font-size: 1.5cqw; }
.mini-band-l { display: flex; align-items: center; gap: 1.8cqw; }
.mini-band-l span { position: relative; top: 1.8cqw; }
.mini-band > em { position: relative; top: .8cqw; }
.mini-band-logo { display: block; height: 6.5cqw; width: auto; }
.mini-back { display: block; width: 100%; max-width: 560px; height: auto; filter: drop-shadow(4px 4px 0 var(--line)); }
.mini-body { flex: 1; position: relative; display: flex; gap: 3.6cqw; padding: 2.6cqw 4cqw 1cqw; min-height: 0; }
.mini-photo {
  width: 23.1cqw; aspect-ratio: 3 / 4; flex: none; align-self: flex-start;
  border: .35cqw solid var(--line); background: #e4e8de center / cover no-repeat;
}
.mini-fields { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-right: 21cqw; position: relative; z-index: 1; }
.mini-fields small { font-size: 1.45cqw; color: #6a7468; font-weight: 600; letter-spacing: .12em; margin-top: 1.1cqw; }
.mini-fields strong { font-size: 3.7cqw; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-nick { color: var(--green-700); }
.mini-text {
  font: 600 2.5cqw/1.25 var(--font-head); font-style: normal; color: #3c463c; margin-top: 2.2cqw;
  max-width: 64cqw; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.mini-tagline { font-style: normal; font-weight: 600; font-size: 1.6cqw; letter-spacing: .14em; color: rgba(84, 109, 53, .8); margin-top: 3cqw; }
.mini-text[hidden], .mini-tagline[hidden] { display: none; }
.mini-row { display: grid; grid-template-columns: 21.4cqw 24.2cqw auto; width: calc(100% + 21cqw); margin-top: .4cqw; }
.mini-row span { display: flex; flex-direction: column; min-width: 0; }
.mini-row b { font-size: 2.4cqw; font-weight: 600; color: #3c463c; white-space: nowrap; }
.mini-qr { position: absolute; right: 4cqw; top: 1.6cqw; width: 19.8cqw; text-align: center; z-index: 1; }
.mini-qr img { display: block; width: 100%; height: auto; box-sizing: border-box; padding: 1.3cqw; background: #fff; border: .25cqw solid #c9d1c0; border-radius: 1.3cqw; }
.mini-qr small { display: block; margin-top: 1.2cqw; font-size: 1.3cqw; font-weight: 600; letter-spacing: .14em; color: #6a7468; }
.mini-logo { position: absolute; left: 41.5cqw; top: 6cqw; width: 33cqw; height: auto; opacity: .07; }
.mini-mrz {
  background: #e7ebe1; border-top: .3cqw solid #b9c2b0; padding: 1.4cqw 4cqw 1.8cqw;
  display: flex; flex-direction: column; font: 600 2.75cqw/1.35 var(--font-head); color: #3c463c;
  letter-spacing: .38em; white-space: nowrap; overflow: hidden;
}

.karta-vysledek { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.karta-vysledek figure { margin: 0; }
.karta-img { display: block; width: 100%; height: auto; filter: drop-shadow(4px 4px 0 rgba(17, 21, 17, .35)); }
.karta-vysledek figcaption { margin-top: 6px; color: var(--muted); font-weight: 600; }
.notice { border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 16px 0; }
.notice-ok { background: #dff3d9; }
.notice-warn { background: #fff1cc; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media print {
  @page { size: A4; margin: 15mm; }
  body { background: #fff; }
  .site-header, .site-footer, .no-print, .section-title { display: none !important; }
  .section { padding: 0; }
  /* obě strany těsně vedle sebe: vystřihnout, přeložit napůl */
  .karta-vysledek { display: flex; gap: 0; margin: 0; }
  .karta-vysledek figure { margin: 0; }
  .karta-img { width: 85.6mm; height: 53.98mm; filter: none; }
  .notice { display: none; }
}

@media (max-width: 900px) {
  /* mobil: nahoře živý náhled přední strany, pod ním formulář, nakonec zadní strana */
  .karta-layout { grid-template-columns: 1fr; grid-template-areas: "front" "form" "back"; grid-template-rows: auto; row-gap: 24px; }
}

/* ---------- Patička ---------- */
.site-footer { background: #1d241b; color: #dfe6da; padding: 28px 0; border-top: 4px solid var(--tan); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 2px 0; }
.site-footer a { color: var(--green-200); }
.to-top { margin-left: auto; font-family: var(--font-head); font-weight: 600; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hero-inner, .generator, .two-col, .code-blocks { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(100%, 320px); }
  .park-aside { position: static; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  /* mobilní menu: panel s velkými tlačítky ve dvou sloupcích */
  .main-nav:not(.main-nav-static) {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 16px 16px 20px; background: var(--card);
    border-bottom: 3px solid var(--line); box-shadow: 0 14px 28px rgba(17, 21, 17, .22);
    max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .main-nav:not(.main-nav-static).open {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav:not(.main-nav-static) a {
    display: flex; align-items: center; min-height: 50px; padding: 10px 14px;
    white-space: normal; font-size: 1.05rem; line-height: 1.2;
    background: var(--paper); border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  }
  .main-nav:not(.main-nav-static) a:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
  .main-nav:not(.main-nav-static) a.is-active { background: var(--olive); color: #fff; }
  .main-nav:not(.main-nav-static) .nav-karta {
    grid-column: 1 / -1; justify-content: center; background: var(--green-700); color: #fff;
  }
  .main-nav:not(.main-nav-static) .nav-karta::after { content: "→"; margin-left: 8px; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 19; background: rgba(17, 21, 17, .4);
    opacity: 0; transition: opacity .18s ease;
  }
  .nav-backdrop.show { opacity: 1; }
  html.nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 66px; }
  .brand img { width: 76px; }
  .section { padding: 44px 0; }
  .card { padding: 16px; }
  .logo-snippets { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 36px; }
  .timeline li::after { left: 1px; top: 12px; }
  .when { text-align: left; padding: 0; }
  .to-top { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-card, .main-nav, .nav-backdrop, .nav-toggle-icon::before, .nav-toggle-icon::after, .nav-toggle-icon span { transition: none !important; }
}

/* ---------- Mobil: obsah ---------- */
.news-more-li { display: none; }
.serie-more { display: block; margin: 14px auto 0; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green-700); vertical-align: -3px; }
.karta-form input[type="file"] {
  width: 100%; padding: 8px; background: #fff; border: 2px dashed #b9c2b0; border-radius: 4px;
}
.karta-form input[type="file"]::file-selector-button {
  font: 600 .9rem var(--font-head); margin-right: 10px; padding: 6px 12px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius);
}
@media (max-width: 760px) {
  /* iPhone při psaní nezvětšuje stránku, když má pole aspoň 16 px */
  textarea:not([readonly]), input[type="text"], input[type="url"], input[type="email"], input[type="search"], select { font-size: 16px; }
  .hero { padding-top: 24px; }
  .hero-logo img { width: min(62%, 230px); }
  .site-header .lang-switch a { padding: 10px 11px; }
  .gallery-head a { display: inline-block; padding: 8px 0; }
  .btn-small { min-height: 38px; padding: 6px 14px; }
  .sizes { gap: 6px; }
  .sizes a { padding: 6px 10px; font-size: .85rem; }
  .to-top { padding: 8px 0; }
  .news-list.limited > li:nth-child(n+4):not(.news-more-li) { display: none; }
  .news-list.limited > .news-more-li { display: block; padding: 12px 18px 16px; }
  .gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .album strong { font-size: .92rem; padding: 6px 8px 0; }
  .album span { font-size: .78rem; padding: 2px 8px 8px; }
  .snippet-preview { min-height: 0; padding: 14px; }
  .snippet-preview img { max-width: 170px; }
}
@media (max-width: 400px) {
  /* úzké telefony: na tlačítku menu jen ikona, slovo zůstává pro čtečky obrazovky */
  .nav-toggle { padding: 0 12px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header .lang-switch a { padding: 10px 9px; }
  /* stránka karty a 404: logo samo vede na hlavní stránku */
  .site-header .main-nav.main-nav-static { display: none; }
  .site-header .main-nav-static ~ .lang-switch { margin-left: auto; }
}
@media (max-width: 560px) {
  .logo-tile { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .logo-tile img { height: 100%; object-fit: contain; padding: 10px; border-bottom: 0; border-right: 2px solid var(--line); }
  .logo-tile figcaption { padding: 10px 12px 12px; }
  .logo-tile .sizes-title { margin-top: 8px; }
}

@media (max-width: 1100px) {
  .main-nav.main-nav-static {
    display: flex; position: static; flex-direction: row; flex-wrap: wrap;
    border: 0; padding: 0; margin-left: auto; background: none;
  }
  .main-nav.main-nav-static a { padding: 6px 8px; font-size: .95rem; }
}
@media (max-width: 560px) {
  .main-nav.main-nav-static a + a { display: none; }
}

.karta-teaser { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.karta-teaser > div { flex: 1 1 420px; }
.karta-teaser img { width: 200px; height: auto; }

/* ---------- Administrace ---------- */
.admin-page .card { margin-top: 24px; }
.admin-login { max-width: 420px; }
.admin-form { max-width: 420px; }
.admin-pre { white-space: pre-wrap; word-break: break-all; background: #f3f5f0; border: 2px solid var(--line); border-radius: 4px; padding: 10px; font-size: .85rem; }
.admin-add { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0 4px; }
.admin-add label, .admin-manual label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; flex: 1 1 200px; }
.admin-add small { font-weight: 400; color: var(--muted); }
.admin-manual { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 16px 0; padding: 12px; background: #fff7dc; border: 2px dashed var(--line); border-radius: var(--radius); }
.admin-manual h4 { flex: 1 1 100%; margin: 0; font-family: var(--font-head); }
.admin-manual input, .admin-manual select, .admin-inline input, .admin-inline select {
  font: 400 .95rem var(--font-body); border: 2px solid var(--line); border-radius: 4px; padding: 6px 8px; background: #fff;
}
.admin-table { margin-top: 16px; box-shadow: none; }
.admin-table td { vertical-align: middle; }
.admin-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-inline input[name="misto"] { flex: 1 1 180px; min-width: 0; }
.admin-inline input[name="poznamka"] { flex: 1 1 120px; min-width: 0; }
.serie-table tr.is-past td { opacity: .55; }
.admin-cleanup { margin-top: 12px; }
code { background: #eef1ea; padding: 0 4px; border-radius: 3px; }
.admin-table th { padding: 8px 12px; font-family: var(--font-head); }

/* banner je na mobilu vyšší a ukazuje střed kraje (Loket – Karlovy Vary – Cheb) */
@media (max-width: 700px) {
  .panorama img { aspect-ratio: auto; height: 170px; object-position: 48% 50%; }
}

/* ---------- Přístupnost ---------- */
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; font: 700 1rem var(--font-head);
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 404: ztracený kačer mezi pařezy ---------- */
.nf .wrap > .eyebrow { margin-top: 28px; }
.nf-art { margin: 0; }
.nf-art svg {
  display: block; width: 100%; height: auto;
  border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #eef6ff;
}
.nf-track { animation: march 4s linear infinite; }
@keyframes march { to { stroke-dashoffset: -96; } }
.nf-q text { animation: nfbob 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.nf-q .nf-q2 { animation-delay: -.8s; }
.nf-q .nf-q3 { animation-delay: -1.6s; }
@keyframes nfbob { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-8px) rotate(8deg); } }
.nf-other { color: var(--muted); margin: -6px 0 18px; }
.nf-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin: 8px 0 24px; }
.nf-grid .card { margin-top: 0; }
.nf-log-head { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nf-badge {
  font: 700 .85rem var(--font-head); color: #fff; background: #2a5fb8;
  border: 2px solid var(--line); border-radius: 4px; padding: 1px 8px;
}
.nf-log-meta { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.nf-hint-text { font-family: ui-monospace, Consolas, monospace; background: #f3f5f0; border: 2px dashed #b9c2b0; border-radius: 4px; padding: 10px; }
@media (max-width: 760px) { .nf-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nf-track, .nf-q text { animation: none; } }

/* ---------- Mobil: tabulka sérií a administrace ---------- */
.serie-m { display: none; }
@media (max-width: 600px) {
  .serie-table th:nth-child(4), .serie-table td:nth-child(4) { display: none; }
  .serie-table td, .serie-table th button { padding: 8px 9px; }
  .serie-m { display: block; color: var(--muted); font-size: .8rem; }
  .serie-table { font-size: .95rem; }
}
@media (max-width: 700px) {
  .admin-table table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tr { border-top: 2px solid #dfe4da; padding: 8px 0; }
  .admin-table td { border: 0; padding: 4px 12px; }
  .admin-table td.num { text-align: left; }
  .admin-inline input[name="misto"], .admin-inline input[name="poznamka"] { flex: 1 1 100%; }
}

/* ---------- Administrace: návštěvnost ---------- */
.stats-row { margin-bottom: 16px; }
.stats-bars {
  display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px;
  background: #f3f5f0; border: 2px solid var(--line); border-radius: 4px;
}
.stats-bars span { flex: 1; background: var(--olive); border-radius: 2px 2px 0 0; min-height: 2px; }
.stats-bars span:hover { background: var(--green-700); }
.stats-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin: 4px 0 16px; }
.stats-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stats-cols h4 { font-family: var(--font-head); margin: 0 0 6px; }
.stats-list { list-style: none; margin: 0; padding: 0; }
.stats-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #e4e8de; font-size: .95rem; }
.stats-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Přepínač jazyka ---------- */
.lang-switch { order: 2; display: flex; gap: 2px; margin-left: 4px; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; flex: none; }
.lang-switch a {
  font: 700 .85rem var(--font-head); text-decoration: none; color: var(--ink);
  padding: 5px 8px; background: var(--card);
}
.lang-switch a + a { border-left: 2px solid var(--line); }
.lang-switch a:hover { background: var(--sky-50); color: var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--olive); color: #fff; }
.footer-note { font-size: .85rem; opacity: .8; }
@media (max-width: 1100px) {
  .lang-switch { margin-left: auto; }
  .main-nav-static ~ .lang-switch { margin-left: 10px; }
  .nav-toggle { margin-left: 10px; }
}
