/* ---------------------------------------------------------------
   styl.css — celý vzhled webu. DESIGN VRSTVA.
   Barvy, písma a rozměry se mění jen tady.
   --------------------------------------------------------------- */

:root {
  --papir: #f5ead8;
  --karta: #f9f4ed;
  --pisek: #ebddc5;
  --inkoust: #201e1d;
  --inkoust-2: #474238;
  --hneda: #333;
  --seda: #82796a;
  --seda-svetla: #a19786;
  --linka: #dcd3c4;
  --terakota: #c67139;
  --terakota-tmava: #8c491a;
  --terakota-svetla: #ffe1d0;
  --terakota-svetla-2: #ffc6a5;
  --salvej: #7a8a5e;
  --salvej-tmava: #3d472b;
  --salvej-svetla: #f0fae1;
  --salvej-svetla-2: #e1eecc;

  --r-xl: 28px;
  --r-l: 24px;
  --r-m: 22px;
  --r-s: 16px;

  --stin-s: 0 1px 2px rgba(46, 43, 37, 0.14);
  --stin-m: 0 3px 10px rgba(46, 43, 37, 0.16);
  --stin-l: 0 12px 32px rgba(46, 43, 37, 0.22);

  --nadpis: 'Baloo 2', system-ui, sans-serif;
  --text: 'Figtree', system-ui, sans-serif;
  --rucne: 'Caveat', cursive;

  --sirka: 1180px;
  --okraj: 48px;
  --praci: saturate(0.6) contrast(0.85) brightness(1.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papir);
  color: var(--inkoust);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--nadpis);
  font-weight: 800;
  color: var(--hneda);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }

a { color: var(--terakota-tmava); text-decoration: none; }
a:hover { color: var(--terakota); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--terakota); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(198, 113, 57, 0.3); }

.obal { max-width: var(--sirka); margin: 0 auto; padding: 0 var(--okraj); }

/* ---------- hlavička ---------- */
.hlava {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 244, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linka);
}
.hlava-vnitrek {
  max-width: var(--sirka); margin: 0 auto; padding: 18px var(--okraj);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.znacka { display: flex; align-items: baseline; gap: 12px; color: var(--hneda); }
.znacka b { font-family: var(--nadpis); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.znacka span {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--seda-svetla);
}
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { font-weight: 600; font-size: 14px; color: var(--inkoust-2); padding-bottom: 4px; }
.menu a:hover { color: var(--terakota-tmava); }
.menu a[aria-current] { color: var(--inkoust); border-bottom: 2px solid var(--terakota); }
.menu-prepinac { display: none; }

.tlacitko {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--nadpis); font-weight: 800; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer;
}
.tlacitko-hlavni { background: var(--terakota); color: var(--karta); }
.tlacitko-hlavni:hover { background: #b2622d; color: var(--karta); }
.tlacitko-hlavni:active { background: var(--terakota-tmava); }
.tlacitko-druhe { border-color: #c0b6a5; color: var(--inkoust); }
.tlacitko-druhe:hover { background: rgba(32, 30, 29, 0.06); color: var(--inkoust); }
.tlacitko-velke { height: 50px; padding: 0 26px; font-size: 17px; }

/* ---------- štítky ---------- */
.stitek {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 9px 14px; font-size: 13px; font-weight: 500;
  background: var(--salvej-svetla-2); color: var(--salvej-tmava);
}
.stitek-oranz { background: var(--terakota-svetla); color: var(--terakota-tmava); }
.stitek-prazdny {
  background: none; border: 1.5px dashed #c0b6a5; color: var(--seda-svetla); padding: 8px 14px;
}
.nadtitulek {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--terakota-tmava); margin: 0 0 20px;
}
.stitky { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding: 64px 0 56px;
}
.hero-cesty {
  position: relative; display: block; height: 360px;
  padding: 0; overflow: hidden;
}
.hero-pozadi {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(0.72) contrast(0.9) brightness(0.88);
}
.hero-prelivka {
  position: absolute; inset: 0;
  background: rgba(25, 20, 16, 0.34);
}
.hero-obsah {
  position: relative; height: 100%; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; color: var(--karta);
}
.hero-cesty h1 {
  color: #fff; max-width: none; font-size: clamp(38px, 4.8vw, 64px);
  margin-bottom: 12px; text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.hero-cesty p.uvod {
  color: #fff; max-width: none; margin: 0; font-size: clamp(18px, 2vw, 25px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.55);
}
.hero-pod {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 34px 0 42px;
}
.hero-pod .hero-akce { margin: 0; }
.hero-pod .pocitadlo { flex-wrap: wrap; justify-content: flex-end; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); margin: 0 0 24px; letter-spacing: -0.03em; }
.hero p.uvod { font-size: 19px; line-height: 1.62; color: var(--inkoust-2); margin: 0 0 32px; max-width: 44ch; text-wrap: pretty; }
.hero-akce { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.pocitadlo { display: flex; gap: 34px; }
.pocitadlo b { display: block; font-family: var(--nadpis); font-weight: 800; font-size: 34px; color: var(--salvej-tmava); line-height: 1.1; }
.pocitadlo span { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--seda); }
.hero-foto { position: relative; }
.hero-foto .ram { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--stin-l); }
.hero-foto img { width: 100%; height: 440px; object-fit: cover; filter: var(--praci); }
.odznak {
  position: absolute; right: -18px; top: -18px; width: 104px; height: 104px;
  border-radius: 999px; background: var(--salvej); color: var(--karta);
  display: flex; align-items: center; justify-content: center; text-align: center;
  transform: rotate(9deg); box-shadow: var(--stin-m);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.25;
  padding: 12px;
}

/* ---------- sekce ---------- */
.sekce { padding: 8px 0 56px; }
.sekce-hlava { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sekce-hlava h2 { font-size: 40px; }
.sekce-popis { font-size: 15px; color: var(--inkoust-2); margin: 0 0 22px; max-width: 68ch; }

/* ---------- kartičky cest ---------- */
.karty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.karta {
  display: block; background: var(--karta); border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--stin-m); color: var(--inkoust);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.karta:hover { transform: translateY(-4px); box-shadow: var(--stin-l); color: var(--inkoust); }
.karta-foto { position: relative; }
.karta-foto img { width: 100%; height: 210px; object-fit: cover; filter: var(--praci); }
.karta-foto .prazdna { height: 210px; background: var(--pisek); }
.cislo {
  position: absolute; left: 16px; top: 16px;
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(32, 30, 29, 0.78); color: var(--karta);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
}
.karta-telo { padding: 22px 24px 26px; }
.karta-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terakota-tmava); margin: 0 0 10px;
}
.karta h3 { font-size: 25px; line-height: 1.14; margin: 0 0 10px; }
.karta p { font-size: 15px; line-height: 1.55; color: var(--inkoust-2); margin: 0; }

/* ---------- mapa ---------- */
.mapa-ram { position: relative; background: var(--karta); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--stin-m); }
.mapa-ram iframe { width: 100%; height: 520px; border: 0; border-radius: 20px; display: block; background: var(--linka); }
.mapa-ram .stitky { padding: 18px 6px 4px; }

/* ---------- rejstřík zemí ---------- */
.rejstrik { display: flex; flex-direction: column; }
.zeme-radek { border-bottom: 1px solid var(--linka); }
.zeme-hlava {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: baseline; gap: 12px; padding: 15px 4px;
  font-family: var(--text); color: var(--inkoust);
}
.zeme-hlava:hover { color: var(--terakota-tmava); }
.zeme-hlava b { font-size: 18px; font-weight: 600; }
.zeme-hlava .tecky { flex: 1; border-bottom: 1px dotted #c0b6a5; margin-bottom: 5px; }
.zeme-hlava .pocet { font-size: 13px; font-family: ui-monospace, monospace; color: var(--seda); }
.zeme-radek[data-stav="chystame"] .zeme-hlava, .zeme-radek[data-stav="sen"] .zeme-hlava { opacity: 0.6; cursor: default; }
.zeme-cesty { display: none; padding: 4px 4px 20px; gap: 14px; flex-direction: column; }
.zeme-radek[open] .zeme-cesty { display: flex; }
.zeme-cesta { display: grid; grid-template-columns: 108px 1fr auto; gap: 18px; align-items: center; padding: 12px; border-radius: var(--r-m); color: var(--inkoust); }
.zeme-cesta:hover { background: var(--pisek); color: var(--inkoust); }
.zeme-cesta img { width: 108px; height: 78px; border-radius: var(--r-s); object-fit: cover; filter: var(--praci); }
.zeme-cesta h3 { font-size: 21px; margin: 0 0 4px; }
.zeme-cesta p { margin: 0; font-size: 14px; color: var(--inkoust-2); }
.zeme-cesta .kdy { font-size: 13px; font-family: ui-monospace, monospace; color: var(--seda); }

/* ---------- záznam (stránka cesty) ---------- */
.zaznam-hlava { position: relative; height: 440px; overflow: hidden; }
.zaznam-hlava img { width: 100%; height: 100%; object-fit: cover; }
.zaznam-hlava .prelivka {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(32, 30, 29, 0.78), rgba(32, 30, 29, 0.08) 62%);
}
.zaznam-hlava .text { position: absolute; left: 0; right: 0; bottom: 40px; }
.zaznam-hlava .nadtitulek { color: var(--terakota-svetla-2); margin-bottom: 16px; }
.zaznam-hlava h1 { font-size: clamp(34px, 4.6vw, 62px); color: var(--karta); max-width: 24ch; letter-spacing: -0.03em; }
.zaznam-hlava-bez { padding-block: 56px 8px; }
.zaznam-hlava-bez h1 { font-size: clamp(34px, 4.6vw, 58px); max-width: 26ch; }
.zaznam-hlava-bez .nadtitulek { color: var(--terakota-tmava); }

.zaznam {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px;
  padding-block: 52px 48px; align-items: start;
}
.zaznam-text { min-width: 0; }
.zaznam-text p { font-size: 18px; line-height: 1.72; color: var(--inkoust-2); margin: 0 0 26px; text-wrap: pretty; }
.zaznam-text h2.kapitola { font-size: 30px; margin: 40px 0 18px; scroll-margin-top: 100px; }
.vypichnuto {
  margin: 0 0 30px; padding: 26px 0;
  border-top: 1.5px dashed #c0b6a5; border-bottom: 1.5px dashed #c0b6a5;
  font-family: var(--rucne); font-size: 30px; line-height: 1.28; color: #56633f;
}

.foto { margin: 0 0 30px; }
.foto-ram { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--stin-m); }
.foto-ram img { width: 100%; height: auto; }
.foto-vyska { aspect-ratio: auto; }
.foto-vyska img { height: auto; object-fit: contain; }
.foto figcaption, figcaption {
  font-size: 13px; line-height: 1.4; color: var(--seda); margin-top: 10px; text-align: center;
}
.mrizka { display: grid; gap: 18px; margin: 0 0 30px; align-items: start; }
.mrizka-2 { grid-template-columns: 1fr 1fr; }
.mrizka-3 { grid-template-columns: repeat(3, 1fr); }
.mrizka .foto { margin: 0; }

/* ---------- boční lišta ---------- */
.lista { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.blok { border-radius: var(--r-m); padding: 20px 22px; background: var(--karta); box-shadow: var(--stin-s); }
.blok-nadpis {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--seda); margin: 0 0 14px;
}
.blok-pisek { background: var(--pisek); box-shadow: none; }
.blok-salvej { background: var(--salvej-svetla); box-shadow: none; }
.blok-salvej .blok-nadpis { color: #56633f; }
.blok-oranz { background: var(--terakota-svetla); box-shadow: none; }
.blok-oranz .blok-nadpis { color: var(--terakota-tmava); }
.blok b.velke { display: block; font-family: var(--nadpis); font-weight: 800; font-size: 24px; line-height: 1.15; margin-bottom: 6px; }
.blok .drobne { font-size: 14px; color: var(--inkoust-2); margin: 0; }
.blok hr { border: 0; height: 1px; background: var(--linka); margin: 14px 0; }
.radky { display: flex; flex-direction: column; gap: 11px; }
.radek { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.radek span { color: var(--inkoust-2); }
.radek b { font-weight: 500; font-family: ui-monospace, monospace; }
.seznam-drobny { display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: var(--salvej-tmava); }
.obsah-odkazy { display: flex; flex-direction: column; gap: 10px; }
.obsah-odkazy a { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--inkoust-2); }
.obsah-odkazy a:hover { color: var(--terakota-tmava); }
.rucne { font-family: var(--rucne); font-size: 22px; line-height: 1.3; color: #643312; margin: 0; }

/* ---------- předchozí / další ---------- */
.sousedi { background: var(--pisek); padding: 44px 0; margin-top: 8px; }
.sousedi-mrizka { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.soused {
  display: flex; gap: 18px; align-items: center; background: var(--karta);
  border-radius: var(--r-m); padding: 16px; color: var(--inkoust); box-shadow: var(--stin-s);
}
.soused:hover { box-shadow: var(--stin-m); color: var(--inkoust); }
.soused-vpravo { justify-content: flex-end; text-align: right; }
.soused img { width: 108px; height: 82px; border-radius: var(--r-s); object-fit: cover; filter: var(--praci); flex: none; }
.soused .kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--seda); margin: 0 0 8px;
}
.soused h3 { font-size: 20px; line-height: 1.16; margin: 0; }

/* ---------- koláže ---------- */
.kolaz { columns: 4; column-gap: 16px; }
.kolaz-dil {
  display: block; break-inside: avoid; margin: 0 0 16px;
  border-radius: 20px; overflow: hidden; box-shadow: var(--stin-m);
}
.kolaz-dil img { width: 100%; height: auto; filter: var(--praci); }
.kolaz-listek {
  break-inside: avoid; margin: 0 0 16px;
  border-radius: 20px; background: var(--karta); padding: 18px; transform: rotate(-1.5deg);
  box-shadow: var(--stin-m); font-family: var(--rucne); font-size: 21px; line-height: 1.25;
}

/* ---------- ptáci ---------- */
.ptaci-mrizka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ptak { background: var(--salvej-svetla); border-radius: var(--r-m); padding: 20px 22px; }
.ptak b { display: block; font-family: var(--nadpis); font-weight: 800; font-size: 21px; color: var(--salvej-tmava); line-height: 1.2; margin-bottom: 8px; }
.ptak a { font-size: 14px; }

/* ---------- o nás ---------- */
.o-nas {
  display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 56px;
  align-items: center; padding-block: 64px;
}
.kolo { position: relative; width: 420px; height: 420px; border-radius: 999px; overflow: hidden; box-shadow: var(--stin-l); }
.kolo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--praci); opacity: 0; transition: opacity 1s ease-in-out; }
.kolo img.vidno { opacity: 1; }
.o-nas-text h1 { font-size: 52px; margin: 0 0 22px; }
.o-nas-text p { font-size: 18px; line-height: 1.72; color: var(--inkoust-2); margin: 0 0 20px; text-wrap: pretty; }

/* ---------- patička ---------- */
.paticka { background: var(--inkoust); color: var(--papir); padding: 34px 0 40px; margin-top: 8px; }
.paticka-vnitrek { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.paticka b { font-family: var(--nadpis); font-weight: 800; font-size: 22px; line-height: 1.2; display: block; margin-bottom: 8px; }
.paticka p { margin: 0; font-size: 13px; color: var(--seda-svetla); }
.paticka-odkazy { position: relative; display: flex; align-items: center; gap: 26px; }
.paticka-odkazy a { font-size: 13px; font-weight: 600; color: #f6a06b; }

/* ---------- ledňáček ---------- */
.lednacek { position: absolute; z-index: 3; line-height: 0; pointer-events: none; }
.lednacek svg { display: block; }

/* ---------- načítání / chyba ---------- */
.hlaska { padding: 80px var(--okraj); max-width: 640px; margin: 0 auto; text-align: center; color: var(--seda); }

/* ---------- telefon ---------- */
@media (max-width: 900px) {
  :root { --okraj: 20px; }
  .hlava-vnitrek { flex-wrap: wrap; gap: 14px; }
  .menu { gap: 18px; flex-wrap: wrap; }
  .menu .tlacitko { height: 38px; padding: 0 16px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .hero-cesty { display: block; height: 300px; min-height: 0; padding: 0; }
  .hero-cesty .hero-obsah { min-height: 0; padding: 32px 20px; }
  .hero-pod { align-items: flex-start; flex-direction: column; padding: 28px 0 36px; }
  .hero-pod .pocitadlo { justify-content: flex-start; }
  .hero-foto img { height: 300px; }
  .odznak { width: 84px; height: 84px; right: -6px; top: -12px; font-size: 10px; }
  .sekce-hlava h2 { font-size: 30px; }
  .karty { grid-template-columns: 1fr; gap: 20px; }
  .zaznam { grid-template-columns: 1fr; gap: 32px; padding-block: 32px; }
  .lista { position: static; }
  .zaznam-hlava { height: 320px; }
  .zaznam-text p { font-size: 17px; }
  .mrizka-2, .mrizka-3 { grid-template-columns: 1fr; }
  .sousedi-mrizka { grid-template-columns: 1fr; }
  .soused-vpravo { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .kolaz { columns: 2; }
  .ptaci-mrizka { grid-template-columns: 1fr; }
  .o-nas { grid-template-columns: 1fr; gap: 32px; padding-block: 36px; }
  .kolo { width: 100%; height: auto; aspect-ratio: 1; }
  .o-nas-text h1 { font-size: 36px; }
  .paticka-vnitrek { flex-direction: column; align-items: flex-start; }
  .zeme-cesta { grid-template-columns: 84px 1fr; }
  .zeme-cesta img { width: 84px; height: 62px; }
  .zeme-cesta .kdy { display: none; }
  .mapa-ram iframe { height: 380px; }
}
