body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #F5F5F5;
  color: #333;
}

a {
  text-decoration: none;
  color: #fff;

}

a:hover {
  text-decoration: none;
  color: #E31E25;
}

header {
  display: flex;
  align-items: center;      /* navigace uprostřed vertikálně */
  justify-content: space-between;
  padding: 0px 40px;
  background-color: #222;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: height 0.3s ease;
}

/* Logo zarovnáme nahoře v rámci svého boxu */
.logo {
  display: flex;
  align-items: flex-start;  /* zarovnání obsahu loga nahoře */
  height: 85px;             /* nastav výšku, můžeš upravit */
}

/* Velikost loga */
.logo img {
  height: 75px;
  display: block;
}

@media (max-width: 1350px) {

  header {
    height: 55px; /* menší výška headeru na mobilu */
    padding: 0px 15px;
    align-items: center; /* zarovnání nahoře */
  }


  .logo {
    display: flex;
    align-items: flex-start; /* logo nahoře */
    height: 50px;
  }

  .logo img {
    height: 50px; /* menší logo na mobilu */
  display: block;

  }
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
}

nav a:hover {
  text-decoration: none;
}

/* Skryjeme menu na malé obrazovky a zobrazíme hamburger */
.nav {
  display: flex;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hamburger - 3 čárky */
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background-color: #fff;
  height: 5px;
  width: 30px;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -12px;
}

.hamburger::after {
  top: 12px;
}

/* Mobilní styl */
@media (max-width: 1350px) {
  .nav {
    position: absolute;
    top: 55px;  /* pod header */
    left: 0;
    right: 0;
    background-color: #222;
    flex-direction: column;
    display: none; /* skryté standardně */
    padding: 10px;
  }

  .nav a {
    padding: 10px 20px;
    border-top: 1px solid #444;
  }

  .nav-toggle {
    display: block; /* zobraz hamburger */
  }

  /* Když má nav třídu 'active', zobrazíme menu */
  .nav.active {
    display: flex;
  }
}

/* Mapa sekce */
.map-section {
  width: 100vw;
  height: 500px; /* můžeš změnit podle potřeby */
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start; /* zarovnání nahoře */
}

.contact-info {
  flex: 1 1 50%;
  min-width: 280px;
}

.contact-photo {
  flex: 1 1 40%;
  min-width: 250px;
}

.contact-photo img {
  max-width: 350px;   /* nebo dle potřeby */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-top: 30px;   /* posun obrázku níž */
}

.contact-info a[href^="tel"],
.contact-info a[href^="mailto"] {
  color: #E31E25; /* sytě červená */
  text-decoration: none; /* bez podtržení */
}

.contact-info a[href^="tel"]:hover,
.contact-info a[href^="mailto"]:hover {
  text-decoration: underline; /* efekt při najetí myší */

}

.contact-info h2 {
  margin-bottom: 4px;
}

.contact-info .role {
  margin: 0 0 6px;

  color: #555; /* jemně šedá */
  font-size: 0.90em;
}


/* --- Slideshow na všech stránkách --- */
.slideshow {
  width: 100vw;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  background: #000;
}

/* Výška slideshow na desktopu podle stránky */
body[data-page="index"] .slideshow {
  height: 500px;
}
body[data-page="polep-vozidel"] .slideshow {
  height: 500px;
}
body[data-page="cedule-bannery"] .slideshow {
  height: 500px;
}
body[data-page="exterier"] .slideshow {
  height: 500px;
}
body[data-page="dtp"] .slideshow {
  height: 500px;
}
body[data-page="predmety"] .slideshow {
  height: 500px;
}
body[data-page="interier"] .slideshow {
  height: 500px;
}

/* Výška slideshow na mobilu podle stránky */
@media (max-width: 1350px) {
  body[data-page="index"] .slideshow {
    height: 400px;
  }
  body[data-page="polep-vozidel"] .slideshow {
    height: 400px;
  }
  body[data-page="cedule-bannery"] .slideshow {
    height: 400px;
  }
  body[data-page="exterier"] .slideshow {
    height: 400px;
  }
  body[data-page="dtp"] .slideshow {
    height: 400px;
  }
  body[data-page="predmety"] .slideshow {
    height: 400px;
  }
  body[data-page="interier"] .slideshow {
    height: 400px;
  }

  .slideshow {
    width: 100vw;
  }
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease;
}

.slides img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  flex-shrink: 0;
}
/* --- Sekce hlavních činností na index.html --- */

.intro {
  text-align: center;
  max-width: 900px;
  margin: 60px auto;
  padding: 0 15px;
}

.services {
  max-width: 1000px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 30px;
  padding: 0 15px;
}

.service-item {
  background: black;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.service-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.7);
}

.service-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-item h3 {
  margin: 15px 10px 20px;
  font-size: 1.25rem;
  color: white;
}


/* --- podstránka --- */

.header-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-top: 0px;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1350px) {
.header-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  margin-top: 0px;
}
}

.content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 15px;
}

h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 20px;
}

.products {
  margin: 50px 0;
}

.products ul {
  list-style: disc inside;
  font-size: 1.1rem;
  line-height: 1.6; /* zvětšené řádkování */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery img {
    pointer-events: none;  /* zakáže kliknutí */
    touch-action: none;    /* zakáže pinch-zoom a gesta */
  }
}

.gallery figcaption {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #555;
}

/* --- Lightbox styl --- */

#lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#lightbox.active {
  display: flex;
}

#lightbox .lightbox-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 100vw;
  margin: auto;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 15px #000;
}

#lightbox .caption {
  margin-top: 10px;
  font-size: 1rem;
  user-select: none;
}

#lightbox .close, #lightbox .prev, #lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  background: rgba(0,0,0,0.4);
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
  z-index: 1001;
}

#lightbox .close {
  top: 20px;
  right: 20px;
  transform: none;
  font-size: 2rem;
  z-index: 1002;
}

#lightbox .prev {
  left: 20px;
}

#lightbox .next {
  right: 20px;
}

#lightbox .close:hover,
#lightbox .prev:hover,
#lightbox .next:hover {
  background: rgba(255,255,255,0.2);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 15px 20px;
  background-color: #222;
  color: white;
}

.footer-center {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.icon {
  width: 40px;
  height: 40px;
  margin-top: 3px;
  fill: #E31E25; /* výchozí barva */
  transition: fill 0.3s;
}

.icon:hover {
  fill: white; /* barva po najetí myší */
}

.icon2 {
  width: 45px;
  height: 45px;
  fill: #E31E25; /* výchozí barva */
  transition: fill 0.3s;
}

.icon2:hover {
  fill: white; /* barva po najetí myší */
}

footer .copyright {
  font-size: 0.7em; /* menší text */
  line-height: 1.2; /* menší řádkování */
  color: grey;
}