:root {
    --bila: #ffffff;
    --svetla-seda: #d0d0d0;
    --tmavy-grafit: #2C2C2C;
    --svetly-grafit: #717171;
  }
body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  overflow-x: hidden;
}
#container {
  max-width: 1440px;
  margin: 0 auto;
  background-color: white;
}
body a, h1, h2, h3 {
  color: var(--tmavy-grafit);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
}
html {
  scroll-behavior: smooth;
}
header {
  background-color: var(--svetly-grafit);
  opacity: 0.95;
  height: 150px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#navigace {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-right: -300px;
}
#navigace a {
  text-decoration: none;
  color: #ffffff;
  font-size: 22px;
  padding: 8px 16px;
  background-color: var(--svetly-grafit);
  transition: all 0.3s ease;
}
#navigace a:hover {
  background-color: rgba(137, 137, 137, 0.9);
  color: #dfffed;
}
#web-logo img{
  width: 350px;
  height: auto;
  float: left;
  margin-left: 90px;
}
main{
  overflow: hidden;
  text-align: justify;
  margin: 0px 100px 0px 100px;
  background-color: var(--bila);  
}

#Úvod {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 80px;
  background-color: #cce6d7;
  padding: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

#úvod-nadpis{
  font-size: 38px;
  margin-right: 2em;
  margin-left: 0em;
  margin-bottom: 1em;
}
#úvod-text{
  font-size: 15px;
  margin-right: 2em;
  margin-left: 0em;
  margin-top: 1rem;
}

#Úvod img {
  flex: 1;
  max-width: 720px;
  height: auto;
  object-fit: cover;
}
#Produkty{
  background-color: var(--svetla-seda);
  padding: 50px;
  margin-bottom: 100px;
}
#Produkt{
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  gap: 30px;
  
}
#Produkty h2{
  text-align: center;
  margin-bottom: 30px;
  margin-top: -10px;
  font-size: 30px;
}
.produkty-div img{
  width: 200px;
}
.produkty-div p{
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
.produkty-div{
  text-align: center;
  padding: 10px;
}

#reference-list{
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

#Reference{
  margin-bottom: 100px;
}
#Reference h2{
  text-align: center;
  font-size: 30px;
}

.reference-item {
  display: flex;
  background-color: #d8d8d8f3;
  border: 1px solid #dbdbdb;
  overflow: hidden;
  min-height: 400px;
  font-size: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

}
.reference-img {
  max-width: 550px;
  height: auto;
  display: block;
  object-fit: contain;
  min-width: 250px;
}
#reference-list .reference-item:nth-of-type(4) .reference-img {
  display: block;
}


.reference-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
}

.reference-info h3 {
  margin: 0;
  font-size: 1.5em;
}

.reference-info p {
  margin: 5px 0;
}
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.gallery-content {
  position: relative;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.gallery-image-container {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

#gallery-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

.close-gallery {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--bila);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: var(--bila);
  border: none;
  font-size: 30px;
  padding: 15px;
  cursor: pointer;
  z-index: 1010;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  color: var(--bila);
  font-size: 18px;
  background-color: rgba(0,0,0,0.5);
  padding: 5px 15px;
  border-radius: 15px;
}

.reference-item:hover {
  transform: scale(1.02);
  cursor: pointer;
  transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
  .gallery-nav {
    font-size: 20px;
    padding: 10px;
    width: 40px;
    height: 40px;
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
}

footer {
  background-color: var(--svetly-grafit);
  padding-top: 20px;
  bottom: 0; 
}

footer h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 1em;
  color: var(--bila);
}

#contacts {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 150px;
  color: var(--bila);
}

#contact-info p {
  font-size: 20px;
  margin:0.5em;
  font-weight: 500;

}

#contact-info a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

#contact-info a:hover {
  color: #dfffed;
  transition: color 0.3s ease;
}
#copyright {
  background-color: var(--svetly-grafit);
  padding: 10px 0;
  text-align: center;
  width: 100%;
  color:#dfffed;
}

#map img{
  width: 550px;
  height: auto;
  margin-right: -200px;
}
#hamburger {
  display: none;
  font-size: 36px;
  cursor: pointer;
  margin-right: 30px;
  user-select: none;
}
#hamburger::before {
  content: "☰";
  font-size: 36px;
}
#hamburger.active::before {
  content: "✖";
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0px);
}
.youtube-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.youtube-container iframe {
  max-width: 100%;
  height: 315px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}


@media screen and (max-width: 1280px) {
  #hamburger {
    display: block;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(188, 188, 188, 0.7);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  #hamburger::before {
    content: "☰";
    font-size: 24px;
    color: var(--tmavy-grafit);
  }

  #hamburger.active::before {
    content: "✖";
  }
  #navigace {
    display: none;
    gap: 0;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 150px;
    left: 0;
    padding: 0;
    margin: 0;
    background-color: var(--svetly-grafit);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    border-bottom: 2px solid var(--svetly-grafit);
    animation: slideDown 0.3s ease-in-out;
    margin-top: -10px;
  }
  .youtube-container {
    flex-direction: column;
    align-items: center;
  }
  
  .youtube-container iframe {
    width: 100%;
    height: 240px;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #navigace.show {
    display: flex;
  }

  #navigace a {

    text-align: center;
    font-size: 18px;
    padding: 8px 0;
    margin: 0;
    width: 100%;
    border-radius: 0;
    background-color: transparent;
    border-top: 1px solid var(--svetla-seda);
    transition: all 0.2s ease;
  }

  #navigace a:hover, #navigace a:active {
    background-color: var(--svetla-seda);
    color: var(--tmavy-grafit);
    box-shadow: none;
  }

  header {
    height: auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    position: relative;
  }

  #web-logo img {
    width: 280px;
    height: auto;
    margin-left: 0;
  }

  main {
    margin: 0 20px;
    padding: 1rem;
    text-align: left;
  }
  p {
    word-break: normal;
    hyphens: auto;
    text-align: left;
  }

  #Úvod {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 50px;
  }

  #úvod-nadpis {
    font-size: 35px;
    margin: 0;
  }

  #úvod-text {
    font-size: 14px;
    margin: 1em 0;
  }

  #Úvod img {
    max-width: 100%;
    margin-top: 1em;
  }

  #Produkty {
    padding: 30px 10px;
  }

  #Produkt {
    grid-template-columns: 1fr;
  }

  .produkty-div img {
    width: 150px;
  }

  #Reference {
    margin-bottom: 60px;
  }

  .reference-item {
    flex-direction: column;
    margin: 0 10px;
  }

  .reference-img {
    width: 100%;
    height: auto;
  }

  .reference-info {
    padding: 10px;
  }

  #contacts {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
    text-align: center;
  }

  #map img{
    max-width: 400px;
    height: auto;
    margin-right: 0;
  }

  footer h2 {
    font-size: 24px;
  }

  #contact-info p {
    font-size: 16px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1200px) {
  #web-logo img {
    width: 320px;
  }
  #navigace {
    width: 80%;
    left: 10%;
  }
  #contacts {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }
  
  #contact-info {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  #map {
    width: 100%;
  }
  #map img {
    max-width: 100%;
    margin-right: 0;
  }
}

