@charset "UTF-8";
/* ==========================================================================
   SLOVÁK pro interiér – hlavní styl
   Barvy i tvarosloví přebírají původní web, layout je nově responzivní.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Proměnné
   -------------------------------------------------------------------------- */
:root {
  --pozadi:          #ebecec;
  --papir:           #ffffff;
  --tmava:           #363c3e;
  --tmava-hore:      #202323;
  --tmava-dole:      #3e4547;
  --seda-hore:       #636565;
  --seda-dole:       #787d7e;
  --zelena:          #78b833;
  --zelena-tmava:    #659c2f;
  --text:            #1f2426;
  --text-slaby:      #656c6e;
  --linka:           #d3d5d5;

  --obal:            1280px;
  --mezera:          clamp(1rem, 3vw, 2.5rem);
  --radius:          3px;
  --stin:            0 2px 14px rgba(0, 0, 0, .12);
  --prechod:         .2s ease;
}

/* --------------------------------------------------------------------------
   2. Reset a základ
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pozadi);
  color: var(--text);
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(16px, .4vw + 15px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--zelena-tmava); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .6em;
  color: var(--tmava);
}
h1 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--zelena);
  outline-offset: 2px;
}

.obal {
  width: 100%;
  max-width: var(--obal);
  margin-inline: auto;
  padding-inline: var(--mezera);
}

.ikona { width: 1.4em; height: 1.4em; fill: currentColor; flex: none; }

.preskocit {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--zelena);
  color: #fff;
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.preskocit:focus { left: 0; text-decoration: none; }

/* --------------------------------------------------------------------------
   3. Hlavička – logo, telefon, claim
   -------------------------------------------------------------------------- */
.hlavicka { background: var(--pozadi); }

.hlavicka-vnitrek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: clamp(1rem, 2.5vw, 1.9rem);
}

.logo { display: block; line-height: 0; }
.logo img { width: clamp(190px, 22vw, 285px); }
.logo:hover { text-decoration: none; }

.hlavicka-vpravo {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.tel-odkaz {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--tmava);
  line-height: 1.15;
}
.tel-odkaz:hover { color: var(--zelena-tmava); text-decoration: none; }
.tel-odkaz .ikona { width: 1.9rem; height: 1.9rem; color: var(--zelena); }
.tel-odkaz small {
  display: block;
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-slaby);
}
.tel-odkaz strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Zelený blok „Idea & Design“ – dřív obrázek claim.png */
.claim {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-width: 230px;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, var(--zelena) 0%, var(--zelena-tmava) 100%);
  color: #fff;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-align: center;
}
.claim-amp { letter-spacing: 0; }

/* Na mobilu ustupuje dekorativní claim telefonu – ten je důležitější. */
@media (max-width: 620px) {
  .hlavicka-vnitrek { padding-block: 1rem; flex-wrap: nowrap; }
  .claim { display: none; }
  .tel-odkaz .ikona { width: 1.6rem; height: 1.6rem; }
  .tel-odkaz strong { font-size: 1.2rem; }
  .logo img { width: min(46vw, 190px); }
}

/* --------------------------------------------------------------------------
   4. Úvodní prezentace (slider)
   -------------------------------------------------------------------------- */
.prezentace {
  position: relative;
  background: var(--tmava);           /* tmavý pruh přes celou šířku, i na 4K */
  overflow: hidden;
}

.prezentace-stopa {
  position: relative;
  width: 100%;
  max-width: var(--obal);             /* fotky se nenafukují do neostra */
  margin-inline: auto;
  height: clamp(190px, 27vw, 350px);
}

.snimek {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.snimek.je-videt { opacity: 1; visibility: visible; }

.snimek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.snimek figcaption {
  position: absolute;
  left: 0;
  bottom: clamp(1rem, 4vw, 2.6rem);
  padding: .35em clamp(.8rem, 2vw, 1.4rem);
  background: rgba(120, 184, 51, .78);
  color: #fff;
  font-size: clamp(1.15rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.25;
}

.prezentace-sipka {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: clamp(38px, 5vw, 52px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 35, 35, .55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--prechod), background var(--prechod);
}
.prezentace-sipka svg { width: 55%; height: 55%; fill: currentColor; }
.prezentace-sipka.je-vlevo  { left: clamp(.5rem, 2vw, 1.4rem); }
.prezentace-sipka.je-vpravo { right: clamp(.5rem, 2vw, 1.4rem); }
.prezentace-sipka:hover { background: var(--zelena); }

.prezentace:hover .prezentace-sipka,
.prezentace:focus-within .prezentace-sipka { opacity: 1; }

@media (hover: none) {
  .prezentace-sipka { opacity: 1; }        /* na dotyku není hover */
}

.prezentace-body {
  position: absolute;
  z-index: 3;
  right: clamp(.8rem, 3vw, 2rem);
  bottom: clamp(.7rem, 2vw, 1.2rem);
  display: flex;
  gap: .45rem;
}
.prezentace-body button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background var(--prechod), scale var(--prechod);
}
.prezentace-body button[aria-current="true"] {
  background: var(--zelena);
  scale: 1.3;
}

/* --------------------------------------------------------------------------
   5. Hlavní nabídka
   -------------------------------------------------------------------------- */
.menu {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, var(--tmava-hore), var(--tmava-dole));
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.menu-seznam {
  display: grid;
  grid-template-columns: 5.5rem repeat(5, 1fr);
  list-style: none;
  margin: 0 auto;
  padding-inline: var(--mezera);
}

.menu-seznam a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 62px;
  padding: .6rem .5rem;
  border-left: 1px solid rgba(255, 255, 255, .13);
  color: #fff;
  font-size: clamp(.82rem, 1.05vw, 1.02rem);
  font-weight: 500;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  transition: background var(--prechod);
}
.menu-seznam li:last-child a { border-right: 1px solid rgba(255, 255, 255, .13); }
.menu-seznam a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }

/* zelené podtržení – převzato z původních obrázkových tlačítek */
.menu-seznam a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--zelena);
  scale: 1 0;
  transform-origin: bottom;
  transition: scale var(--prechod);
}
.menu-seznam a:hover::after,
.menu-seznam a.je-aktivni::after { scale: 1 1; }

.menu-seznam a.je-aktivni {
  background: linear-gradient(to bottom, var(--seda-hore), var(--seda-dole));
}

.ikona-domu { width: 1.5rem; height: 1.5rem; }
.menu-domu a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 900px) {
  .menu-seznam { grid-template-columns: repeat(3, 1fr); }
  .menu-seznam a { min-height: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .menu-seznam li:last-child a { border-right: 0; }
}
@media (max-width: 520px) {
  .menu-seznam { grid-template-columns: repeat(2, 1fr); }
  .menu-seznam a { font-size: .8rem; min-height: 52px; }
}

/* --------------------------------------------------------------------------
   6. Obsah stránky
   -------------------------------------------------------------------------- */
.stranka {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.text { max-width: 68ch; }
.text :last-child { margin-bottom: 0; }

.perex {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-slaby);
}

.motto {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  padding-left: 1.1rem;
  border-left: 5px solid var(--zelena);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
}
.motto span { display: block; color: var(--text-slaby); font-style: italic; font-size: .88em; }

/* Tři sloupce s tezemi na úvodní stránce */
.trojice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}
.trojice article {
  background: var(--papir);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border-top: 4px solid var(--zelena);
  box-shadow: var(--stin);
}
.trojice h2 { font-size: 1.2rem; }
.trojice p:last-child { margin-bottom: 0; }

/* Blok spravovaný z administrace (akce, otevírací doba, změny) */
.spravovany {
  background: var(--papir);
  border-left: 5px solid var(--zelena);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-block: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--stin);
}
.spravovany :last-child { margin-bottom: 0; }

.oddelovac {
  height: 1px;
  border: 0;
  background: var(--linka);
  margin-block: clamp(1.8rem, 4vw, 2.8rem);
}

/* Dotační lišta EU */
.dotace {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: flex-start;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-slaby);
  line-height: 1.5;
}
.dotace img { width: 160px; flex: none; }
.dotace div { flex: 1 1 320px; }

/* --------------------------------------------------------------------------
   7. Dlaždice referencí
   -------------------------------------------------------------------------- */
.dlazdice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(.8rem, 1.8vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.dlazdice a {
  display: block;
  position: relative;
  background: var(--papir);
  box-shadow: var(--stin);
  overflow: hidden;
  color: inherit;
}
.dlazdice a:hover { text-decoration: none; }

.dlazdice img {
  width: 100%;
  aspect-ratio: 300 / 169;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s ease, scale .45s ease;
}
.dlazdice b {
  display: block;
  padding: .75rem 1rem;
  background: var(--seda-dole);
  color: #fff;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
  transition: background var(--prechod);
}
.dlazdice .pocet { font-weight: 400; opacity: .75; }
.dlazdice a:hover img,
.dlazdice a:focus-visible img { filter: grayscale(0); scale: 1.04; }
.dlazdice a:hover b,
.dlazdice a:focus-visible b { background: var(--zelena); }

@media (hover: none) {
  .dlazdice img { filter: grayscale(0); }   /* na dotyku rovnou barevně */
  .dlazdice b { background: var(--zelena); }
}

/* --------------------------------------------------------------------------
   8. Fotogalerie
   -------------------------------------------------------------------------- */
.zpet {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.2rem;
  color: var(--text-slaby);
  font-weight: 500;
}
.zpet:hover { color: var(--zelena-tmava); text-decoration: none; }
.zpet svg { width: 1.1em; height: 1.1em; fill: currentColor; }

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(.6rem, 1.4vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.galerie button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--papir);
  box-shadow: var(--stin);
  cursor: pointer;
  overflow: hidden;
}
.galerie img {
  width: 100%;
  aspect-ratio: 225 / 158;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s ease, scale .45s ease;
}
.galerie button:hover img,
.galerie button:focus-visible img { filter: grayscale(0); scale: 1.05; }

@media (hover: none) {
  .galerie img { filter: grayscale(0); }
}

/* --------------------------------------------------------------------------
   9. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  background: rgba(20, 22, 22, .94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.je-otevreny { opacity: 1; pointer-events: auto; }

.lightbox-plocha {
  display: grid;
  place-items: center;
  padding: clamp(.5rem, 3vw, 2.5rem);
  min-height: 0;
}
.lightbox-plocha img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 10px 45px rgba(0, 0, 0, .55);
}

.lightbox-listek {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0 1rem 1.2rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.lightbox button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background var(--prechod);
}
.lightbox button:hover { background: var(--zelena); }
.lightbox button svg { width: 22px; height: 22px; fill: currentColor; }

.lightbox-zavrit {
  position: absolute;
  top: clamp(.6rem, 2vw, 1.4rem);
  right: clamp(.6rem, 2vw, 1.4rem);
  z-index: 2;
}

@media (min-width: 720px) {
  .lightbox-predchozi, .lightbox-dalsi {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 54px;
    height: 54px;
  }
  .lightbox-predchozi { left: clamp(.6rem, 2vw, 1.6rem); }
  .lightbox-dalsi     { right: clamp(.6rem, 2vw, 1.6rem); }
}

body.je-zamceno { overflow: hidden; }

/* --------------------------------------------------------------------------
   10. Kontakt a mapa
   -------------------------------------------------------------------------- */
.kontakt-mrizka {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;   /* mapa se natáhne na výšku levého sloupce s textem */
}
@media (max-width: 860px) {
  .kontakt-mrizka { grid-template-columns: 1fr; }
}

.kontakt-blok { margin-bottom: 1.8rem; }
.kontakt-blok h2 {
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--zelena-tmava);
  margin-bottom: .4rem;
}
.kontakt-radek {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .3rem;
}
.kontakt-radek .ikona { width: 1.25em; height: 1.25em; color: var(--zelena); margin-top: .2em; }

.mapa {
  min-height: clamp(300px, 45vh, 480px);   /* podlaha na mobilu, kde sloupce nejsou v jedné řadě */
  background: #dfe1e1;
  box-shadow: var(--stin);
}
.mapa-nahrada {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--text-slaby);
}

/* Leaflet – ať neprobíjí přes sticky menu a lightbox */
.leaflet-pane, .leaflet-top, .leaflet-bottom { z-index: 1 !important; }

/* --------------------------------------------------------------------------
   11. Patička
   -------------------------------------------------------------------------- */
.paticka {
  margin-top: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(to bottom, var(--tmava-hore), var(--tmava-dole));
  color: #c9cdcd;
  font-size: .92rem;
}

.paticka-mrizka {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.paticka h2 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .7rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--zelena);
  display: inline-block;
}
.paticka p { margin-bottom: .8rem; line-height: 1.65; }
.paticka a { color: #c9cdcd; }
.paticka a:hover { color: var(--zelena); text-decoration: none; }

.paticka-znacky { filter: brightness(0) invert(1); opacity: .8; }
.paticka-poznamka { font-size: .85rem; color: #9aa0a0; }

.paticka-linka .tel-odkaz { color: #fff; }
.paticka-linka .tel-odkaz small { color: #9aa0a0; }
.paticka-linka .tel-odkaz strong { font-size: 1.75rem; }
.paticka-copy { margin-top: 1.2rem; font-size: .82rem; color: #9aa0a0; }

/* --------------------------------------------------------------------------
   12. Pohyb a tisk
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .menu, .prezentace, .lightbox, .mapa, .preskocit { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .paticka { background: none; color: #000; }
  .paticka a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
