:root{
  --green:#1B5E20;
  --green-dark:#0d3b14;
  --yellow:#FFD600;
  --light:#f4f8f4;
  --max-width:1200px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family:'Segoe UI',sans-serif;
  background:var(--light);
  color:#222;
  overflow-x:hidden;
}

/* PRELOADER */
#preloader{
  position:fixed;
  width:100%;
  height:100%;
  background:white;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  transition:0.5s;
}
.loader{
  width:50px;
  height:50px;
  border:5px solid #ddd;
  border-top:5px solid var(--green);
  border-radius:50%;
  animation:spin 1s linear infinite;
}
@keyframes spin{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

/* HEADER */
header{
  position:fixed;
  top:0;
  width:100%;
  background:var(--green);
  color:white;
  z-index:1000;
}

.header-inner{
  max-width:var(--max-width);
  margin:auto;
  padding:15px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

header h1{
  margin:0;
  font-size:18px;
  display:flex;
  align-items:center;
  gap:10px;
}

nav{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

nav a{
  color:white;
  text-decoration:none;
  font-size:14px;
  position:relative;
  cursor:pointer;
  padding:4px 0;
}

nav a.active{
  font-weight:600;
}

nav a::after{
  content:"";
  position:absolute;
  bottom:-3px;
  left:0;
  width:0;
  height:2px;
  background:var(--yellow);
  transition:0.3s;
}

nav a.active::after,
nav a:hover::after{
  width:100%;
}

.menu-toggle{
  display:none;
  font-size:22px;
  cursor:pointer;
}

/* PAGE */
.page{
  display:none;
  padding-top:110px;
  animation:fade 0.4s ease;
}

.page.active{
  display:block;
}

@keyframes fade{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}

/* HERO */
.hero{
  position:relative;
  height:55vh;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  overflow:hidden;
}

.slide{
  position:absolute;
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.5s ease-in-out;
  filter:brightness(0.92) contrast(1.03);
}

.slide.active{
  opacity:1;
}

.hero-overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.20) 100%
  );
}

.hero-inner{
  max-width:var(--max-width);
  width:100%;
  padding:0 20px;
  margin:auto;
  position:relative;
  z-index:2;
}

.hero-box{
  background:rgba(255,255,255,0.20);
  backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,0.25);
  padding:45px 60px;
  border-radius:14px;
  text-align:center;
  max-width: var(--max-width);
  margin:auto;
}

.hero h2{
  font-size:36px;
  margin:0 0 20px 0;
  font-weight:600;
}

.hero p{
  font-size:18px;
  line-height:1.7;
  margin:0;
}

/* CONTENT */
.section-inner{
  max-width:var(--max-width);
  margin:auto;
  padding:45px 20px;
}

.section-inner h2{
  font-size:28px;
  margin-bottom:25px;
  color:var(--green);
  border-bottom:3px solid var(--yellow);
  display:inline-block;
  padding-bottom:6px;
}

.card{
  background:white;
  padding:35px;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  line-height:1.8;
  font-size:16px;
  text-align: justify;
}

.card h3{
  margin-top:0;
  color:var(--green-dark);
}

/* VYSOUVACÍ BANNER JMK */
.jmk-container{
  position:fixed;
  top:20%; /* posun banneru výš */
  right:-80px; /* částečně skrytý */
  transform:translateY(-50%);
  transition:right 0.8s ease; /* pomalejší vysouvání */
  z-index:900;
}

.jmk-container:hover{
  right:0; /* vysune se po najetí */
}

.jmk-box{
  background:white;
  padding:14px 18px;
  border-radius:14px 0 0 14px;
  box-shadow:0 12px 30px rgba(0,0,0,0.18);
  display:flex;
  align-items:center;
}

.jmk-box img{
  width:120px; /* velikost loga uvnitř */
  display:block;
}

.jmk-tab{
  position:absolute;
  left:-35px; /* tak, aby byl vidět proužek */
  top:50%;
  transform:translateY(-50%);
  background:var(--green);
  color:white;
  padding:6px 6px;
  border-radius:8px 8px 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
}


/* FOOTER */
footer{
  background:var(--green-dark);
  color:white;
  padding:40px 20px;
  font-size:14px;
}

.footer-inner{
  max-width:var(--max-width);
  margin:auto;
  line-height:1.6;
}

/* RESPONSIVE */
@media(max-width:900px){
  nav{
    display:none;
    flex-direction:column;
    background:var(--green);
    padding:20px;
    width:100%;
  }
  nav.active{
    display:flex;
  }
  .menu-toggle{
    display:block;
  }
  .hero-box{
    padding:30px;
  }
  .jmk-container{
    display:none;
  }
}



/* KONTAKTNÍ OSOBY */
.contact-persons{
  margin-top:40px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

.contact-card{
  background:#ffffff;
  border-radius:14px;
  padding:25px;
  box-shadow:0 10px 25px rgba(0,0,0,0.06);
  line-height:1.6;
}

.contact-card h3{
  margin-top:0;
  color:var(--green-dark);
}

.qr-placeholder{
  margin-top:15px;
  padding:20px;
  text-align:center;
  border:2px dashed #ccc;
  border-radius:10px;
  font-size:13px;
  color:#666;
}
.contact-card img{
  max-width:100%;
  height:auto;
  display:block;
  margin:15px auto 0 auto;
}

/* PRÁVO NA INFORMACE */

.info-content h3{
  margin-top:35px;
  padding-top:15px;
  border-top:1px solid #eee;
}

.info-lead{
  background:var(--light);
  padding:15px;
  border-left:4px solid var(--green);
  border-radius:6px;
  font-weight:500;
}

.info-list{
  list-style:none;
  padding-left:0;
  margin-top:10px;
}

.info-list li{
  margin-bottom:8px;
}

.info-list a{
  color:var(--green);
  text-decoration:none;
  font-weight:500;
}

.info-list a:hover{
  text-decoration:underline;
}

.report{
  margin-top:10px;
  background:var(--light);
  padding:10px 15px;
  border-radius:8px;
}

.report summary{
  cursor:pointer;
  font-weight:600;
  color:var(--green-dark);
}

.report a{
  color:var(--green);
  text-decoration:none;
}

.report a:hover{
  text-decoration:underline;
}

.last-update{
  margin-top:40px;
  font-size:14px;
  color:#666;
  font-style:italic;
}

.project-card {
  margin-bottom: 25px;
}

.project-title {
  cursor: pointer;
  color: var(--green-dark);
  margin-top: 0;
  font-size: 18px;
  transition: color 0.3s;
}

.project-title:hover {
  color: var(--green);
}

.project-details {
  display: none; /* skryto dokud se neklikne */
  margin-top: 15px;
  line-height: 1.7;
  font-size: 16px;
}
.project-card.active .project-details {
  display: block; /* zobrazí text po kliknutí */
}

/* Carousel container */
/* CAROUSEL PRO AKTUALITY */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
will-change: transform;
}


.project-card {
  flex: 0 0 30%;
  max-width: 30%;
  padding: 15px;
  opacity: 0.4;
  transform: scale(0.7);
  transition: all 0.5s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  text-align: justify; /* zarovnání do bloku */
  overflow: hidden;
}


.project-card.active {
  flex: 0 0 60%;
  max-width: 70%;
  opacity: 1;
  transform: scale(1);
  text-align: justify;
}

.project-card h3 {
  font-size: 16px;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.project-card p {
  display: none; /* skrýt celý text u náhledů */
}

.project-card.active {
  flex: 0 0 50%; /* aktivní projekt uprostřed */
  opacity: 1;
  transform: scale(1);
 
}
.project-card p.full {
  display: none;
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.5;
}



.project-card.active h3 {
  font-size: 20px;
  white-space: normal; /* nadpis zalomený */
}

.project-card.active p.full {
  display: block;
}

@media(max-width: 900px) {
  .project-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
   .project-card.active {
    flex: 0 0 100%;
    max-width: 100%;
  }
	  }

.project-card p.preview {
  display: block;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.project-card.active p {
  display: block; /* zobrazit celý text u aktivního */
  margin-top: 10px;
  line-height: 1.6;
  -webkit-line-clamp: unset; /* odstraní omezení řádků */
  -webkit-box-orient: unset;
  overflow: visible;   /* text se nezkracuje */
}



.project-card.prev,
.project-card.next {
  opacity: 0.6;
  transform: scale(0.225);
  z-index: 5;
}

.project-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.7);
  z-index: 0;
}

.project-card:not(.active) p {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* zobrazí jen 3 řádky */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
