@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: "Jost", sans-serif;
  color: #EEEFE0;
}

/*#556C64*/
body {
  background-color: #5E726B
}

/*#6B7F78 #819A91   #5E726B*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

img {
  width: 200px;
  /*pro zatim pro prehlednost!!!!!!!!!!!!!!!!!*/
}

a {
  text-decoration: none;
  color: #D1D8BE;
}

nav a {
  display: inline-block;
  position: relative;
  margin: 10px;
  font-size: 1.5em;
}

nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #D1D8BE;
  transform: scaleX(0);
  transform-origin: bottom center;
  transition: transform 0.25s ease-out;
}

nav a:hover::after {
  transform: scaleX(1);
}

.aktualni {
  font-weight: bold;
}

span {
  vertical-align: middle;
  margin-bottom: 2px;
}

.top {
  background-color: #5E726B;
  color: #D1D8BE;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 90px;
  border-bottom: 3px solid #D1D8BE;
}

.top a {
  color: #D1D8BE;
}

header h1 {
  font-size: 1.8em;
  line-height: 1.2em;
  padding: 10px;
}

header img {
  width: 100%;
  max-width: max-content;
  /*border-radius: 0px 0px 70px 70px;*/
  box-shadow: rgba(0, 0, 0, 0.64) 0px 9px 24px;
  margin-bottom: 20px;

}

header div {
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

header h4 {
  position: absolute;
  left: 80px;
  bottom: 70px;
  color: #D1D8BE;
  font-size: 3.5em;
  padding: 40px;
}

h2 {
  color: #D1D8BE;
  font-size: 2.5em;
}

main {
  padding: 20px 150px;
  display: flex;
  flex-direction: column;
  text-align: justify;
}

.aktuality article {
  --c: #D1D8BE;
  --b: 10px;
  --g: 5px;

  display: inline-block;
  /* nebo block s fixní šířkou a výškou */
  width: 300px;
  /* nastavíš šířku */
  height: 200px;
  /* nastavíš výšku */

  padding: calc(var(--g) + var(--b));
  --_g: #0000 25%, var(--c) 0;
  background:
    conic-gradient(from 180deg at top var(--b) right var(--b), var(--_g)) var(--_i, 200%) 0 / 200% var(--_i, var(--b)) no-repeat,
    conic-gradient(at bottom var(--b) left var(--b), var(--_g)) 0 var(--_i, 200%) / var(--_i, var(--b)) 200% no-repeat;
  transition: .3s, background-position .3s .3s;
  cursor: pointer;
}

.aktuality article:hover {
  --_i: 100%;
  transition: .3s, background-size .3s .3s;
}

main .nejblizsiAkce section,
main .aktuality section {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

section {
  margin: 20px 0px;
}

h3 {
  font-size: 2em;
  margin-bottom: 10px;
}

.aktuality h3 {
  font-size: 1.2em;
}

details {
  interpolate-size: allow-keywords;

  margin: 2rem;
  padding: .2rem .5rem;

  border: 1px solid currentcolor;
  border-radius: .75rem;

}

/* closed state */
details::details-content {
  block-size: 0;
  overflow: hidden;

  transition: content-visibility, block-size;
  transition-duration: 750ms;
  transition-behavior: allow-discrete;
}

/* open state */
details[open]::details-content {
  block-size: auto;
}

summary {
  cursor: pointer;

}

.nejblizsiAkce details {
  width: 250px;
}

.scroll-box {
  max-height: 300px;
  /* výška okna */
  overflow: auto;
  /* přidá scroll, když je obsah vyšší */
  margin-top: 10px;
  padding-right: 40px;
  padding: 10px;
  /* trochu místa pro scroll */
  width: 70%px;
  /*upravit pak podle toho ostatniho!!!!!!!*/
  text-align: justify;


}

details p {
  margin-top: 15px;
}

.nejnovejsiClanky details {
  width: 70%;
  margin-left: 15%;
  margin-bottom: 50px;

}

.nejnovejsiClanky article,
.clanky article {
  padding: 20px 0px;
  border-bottom: solid #D1D8BE 1px;
}

.nejnovejsiClanky article:last-child,
.clanky article:last-child {
  border-bottom: none;
}

section p {
  margin-bottom: 10px;
}

section {
  margin-bottom: 70px;
}

.aktuality article,
.nejblizsiAkce article {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  padding: 14px;
  margin: 1px;
  border-radius: 10px;
  background-color: #556C64;
}

.nejblizsiAkce article {
  transition: transform 0.3s ease;
  /* hladký přechod */
}

.nejblizsiAkce article:hover {
  transform: scale(1.05);
  /* zvětšení o 5 % */
  z-index: 10;
  /* aby se neukryl za jiné prvky */
}

.dokumenty a {
  text-decoration: underline;
}

.dokumenty a:hover {
  color: #EEEFE0;
}

.dokumenty li {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.dokumenty div,
.kontaktMain div {
  margin-bottom: 40px;

}

.dokumenty h2,
.kontaktMain h2 {
  margin: 20px 0px;
}

.formulare {
  padding-bottom: 60px;
  border-bottom: solid #D1D8BE 1px;
}

.dokumenty ul {
  margin-left: 40px;
}

.kontakt {
  padding-bottom: 60px;
  border-bottom: solid #D1D8BE 1px;
}

.kontaktMain p {
  font-size: 1.5em;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  /* odstraní dvojité okraje */
  font-family: Arial, sans-serif;
}

/* Hlavička tabulky */
.table thead tr {
  background-color: #819A91;
  /* tmavší první řádek */
  color: #EEEFE0;
  /* světlý text, kontrastní */
  font-weight: bold;
}

/* Buňky hlavičky */
.table thead th {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 2px solid white;
  /* bílá čára pod hlavičkou */
  border-right: 1px solid white;
  /* vertikální čáry mezi sloupci */
}

/* Poslední hlavička nemá pravý okraj */
.table thead th:last-child {
  border-right: none;
}

/* Tělo tabulky */
.table tbody tr {
  background-color: #D1D8BE;
  /* světlejší řádky */
  transition: background-color 0.3s ease;
  /* hladký hover efekt */

}

/* Hover efekt pro řádky */
.table tbody tr:hover {
  background-color: #556C64;
  /* lehce tmavší odstín při hover */
}

.table tbody tr:hover td,
.table tbody tr:hover td a {
  color: white;
}

/* Buňky těla tabulky */
.table tbody td {
  padding: 10px 15px;
  text-align: left;
  color: #333;
  /* tmavý text nad světlým pozadím */
  border-bottom: 1px solid white;
  /* horizontální čáry mezi řádky */
  border-right: 1px solid white;
  /* vertikální čáry mezi sloupci */
}

/* Poslední buňka každého řádku nemá pravý okraj */
.table tbody td:last-child {
  border-right: none;
}

/* Odkazy */
.table a {
  color: #333;
  /* tmavé odkazy nad světlým pozadím */
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

@media(max-width:900px) {
  .table thead {
    display: none;
  }
  .table tr{
    display: flex;
    flex-direction: column;
    margin: 20px;
  }
  .table tr td:last-child,.empty{
    display: none;
  }
  .table tbody tr:hover {
  background-color: #D1D8BE;
  /* lehce tmavší odstín při hover */
}

.table tbody tr:hover td,
.table tbody tr:hover td a {
  color: black;
}
}




footer p {
  background-color: #556C64;

  justify-content: center;
  text-align: center;
  padding: 10px 0px;
}

summary {
  text-align: center;
}

a.fotkyOdkaz {
  color: #D1D8BE;
  display: inline-block;
  margin: 5px 0px 15px 0px;
  transition: color 0.3s ease;
}

a.fotkyOdkaz:hover {
  color: #D1D8BE;
  transition: color 0.3s ease;
}

div.nejnovejsiClanek {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5% 0% 1% 0%;
  border-bottom: solid #D1D8BE 1px;
}

.nejnovejsiClanky details,
.ostatniClanky details {
  width: fit-content;
  margin: 0 auto;
}

.nejnovejsiClanek img {
  width: 50%;
  margin-bottom: 25px;

  box-shadow: rgba(0, 0, 0, 0.46) 0px 20px 72px 0px, rgba(0, 0, 0, 0.26) 0px 0px 0px 1px;
  transition: 0.3s ease;
}

.ostatniClanky article {
  display: flex;
  flex-direction: row;

  gap: 20px;
}

.ostatniClanky img {
  width: 400px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.26) 0px 13px 50px 0px, rgba(0, 0, 0, 0.26) 0px 0px 0px 0px;
  align-items: top;
  max-height: max-content;
  margin: 5% 5%;
  transition: 0.3s ease;
}

.ostatniClanky img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.nejnovejsiClanek img:hover {
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

.ostatniClanky div {
  margin: 5% 0%;
}

.nejnovejsiClanky article {
  margin: 5% 0%;
}

.nejnovejsiClanky details {
  margin-top: 3%;
}

.nejnovejsiClanek h3 {
  font-size: 2.5em;
}

.nejnovejsiClanek p {
  font-size: 1.2em;
  margin-top: 15px;
}

.nejnovejsiClanky {
  margin-left: 2%;
  margin-right: 2%;
}

.nejnovejsiClanky article:first-child {
  margin: -1% 0%;
}

.nejblizsiAkce h2,
.aktuality h2,
.nejnovejsiClanky h2 {
  margin-top: 3%;
}

main#mainZacatek div:last-child h2 {
  margin-top: 3.5%;
}


@media(max-width:1250px) {
  main {
    padding: 20px;
  }

  header h4 {

    left: 40px;
    bottom: 20px;
  }
}

@media(max-width:1150px) {

  main#mainZacatek section,
  main#mainZacatek {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .dokumenty{
    align-items: start!important;
  }
  header div {
    display: flex;
    flex-direction: column;
  }

  header h4 {

    left: 30px;
    bottom: 10px;
  }
}

@media(max-width:850px) {
  header h4 {
    position: static;
  }

  header div {
    display: flex;
    flex-direction: column;
  }

  header svg {
    display: none;
  }
}

@media(max-width:800px) {
  .ostatniClanky article {
    flex-direction: column;
    align-items: center;

  }

  .nejnovejsiClanek h3 {
    font-size: 2.2em;
  }

}



@media (max-width:700px) {

  /* skryj klasické menu */
  .top nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 60vh;
    width: 80%;
    background-color: #556C64;
    border-bottom: 1px solid #D1D8BE;
    border-right: 1px solid #D1D8BE;
    padding-top: 120px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10000000;
  }

  /* odkazy v mobilním menu */
  .top nav a {
    color: #D1D8BE;
    font-size: 1.4em;
    margin-left: 30px;
  }

  /* checkbox skrytý */
  #checkbox-menu {
    display: none;
  }

  /* hamburger tlačítko */
  .top label {
    width: 32px;
    height: 24px;
    min-width: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 200;
  }

  /* čárky hamburgeru */
  .top label div {
    height: 4px;
    width: 100%;
    background-color: #D1D8BE;
    border-radius: 2px;
    transition: 0.3s;
    transform-origin: left center;
  }

  /* otevření menu */
  #checkbox-menu:checked~nav {
    transform: translateX(0);
  }

  /* animace hamburger → křížek */
  #checkbox-menu:checked+label div:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  #checkbox-menu:checked+label div:nth-child(2) {
    opacity: 0;
  }

  #checkbox-menu:checked+label div:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  header div.top {
    flex-direction: row;
    justify-content: space-between;

  }

  .top {
    padding: 5px 20px;
  }
}

input {
  display: none;
}

.doc a,
a.odkaz {
  color: #D1D8BE;
}

/*.doc{
  border-bottom: 1px solid #000000;
}*/





/* --- Fade-in animace pro celé tělo stránky --- */
body {
  opacity: 0;
  /* počáteční stav - neviditelné */
  animation: fadeIn 1s ease-in forwards;
  /* animace při načtení */
}

/* --- Definice animace --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Alternativa: fade + mírný posun shora --- */
main,
header,
footer {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeSlide 1s ease-out forwards;
  animation-delay: 0.2s;
  /* mírné zpoždění, aby se neobjevilo hned */
}

@keyframes fadeSlide {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Konec animací --- */





:root {
  --img-width: 800px;
  --gap: 0px;
  --items: 8;
}

.carousel {
  width: calc(var(--img-width) * 1.5 + var(--gap) * 4);
  overflow: hidden;
  margin: 40px auto;
  /*border-left: 6px solid #D1D8BE;*/
  /*border-right: 6px solid #D1D8BE;*/
  border-radius: 30px;
  box-shadow: rgba(0, 0, 0, 0.65) 0px 50px 40px -40px;

}

.track {
  display: flex;
  gap: var(--gap);

  /* šířka = (obrázek + gap) × 16 */
  width: calc((var(--img-width) + var(--gap)) * var(--items) * 2);

  animation: scroll 100s linear infinite;
  will-change: transform;
}


.track img {
  width: var(--img-width);
  height: 400px;
  flex-shrink: 0;
  object-fit: cover;


}

@media (max-width: 1300px) {
  .track img {
    height: 225px;
  }

  :root {
    --img-width: 400px;
  }
}

@media (max-width: 870px) {
  .carousel {
    width: calc(var(--img-width) * 1 + var(--gap) * 2);
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    /* posun jen o PRVNÍ SADU */
    transform: translateX(calc((var(--img-width) + var(--gap)) * var(--items) * -1));
  }
}

.carousel {
  max-width: 80vw;
}




.nejnovejsiClanky details {
  background-color: #556C64;
}

.ostatniClanky details,
.nejnovejsiClanek details {}

main.mainIndex div:last-child {
  background-color: #556C64;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 60px 40px -7px;
}

main.mainIndex h2 {
  padding: 10px;
}

.fotkyOdkaz span {
  color: #D1D8BE;
}

html {
  scroll-behavior: smooth;
}

/* wrapper obrázku */
.hero {
  position: relative;
}

/* tlačítko */
.scrolldown-btn {
  position: absolute;
  right: 100px;
  bottom: 100px;
  width: 75px;
  height: 120px;
  z-index: 10;
}

/* svg */
.scrolldown-btn svg {
  width: 100%;
  height: auto;
  fill: #fff;
}

/* animace šipek */
.first-path {
  animation: arrow1 1.5s ease-in-out infinite;
}

.second-path {
  animation: arrow2 1.5s ease-in-out infinite;
}

/* KEYFRAMES */
@keyframes arrow1 {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }

  50% {
    transform: translateY(0);
    opacity: 0.8;
  }

  100% {
    opacity: 0;
  }
}

@keyframes arrow2 {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }

  50% {
    transform: translateY(0);
    opacity: 0.5;
  }

  100% {
    opacity: 0;
  }
}

/* hover – NEPŘEPISUJE animaci */
.scrolldown-btn:hover svg {
  opacity: 0.7;
}

.row {
  display: flex;
  flex-direction: row;
}