/* Reset + základní nastavení */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Hlavička */
header {
  background: #ffffff;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  color:#006dff;
}

/* Navigace */
nav {
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 1rem;
  font-size: 1.1rem;
}

nav a {
  background: #e0ecff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  color: #000;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

nav a:hover {
  background: #c3dbff;
  transform: scale(1.05);
}

/* Hero sekce */
.hero {
  background: linear-gradient(to right, #f0f4ff, #ffffff);
  padding: 3rem 1rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: #444;
}

.hero a {
  margin-top: 2rem;
  background: #006dff;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.hero a:hover {
  background: #0052cc;
  transform: scale(1.05);
}

/* Hlavní sekce */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #006dff;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Seznam */
ul {
  list-style: disc inside;
  text-align: left;
  margin-top: 1rem;
}

/* Video sekce */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  max-width: 100%;
  margin: 0 auto;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Paticka */
footer {
  background: #e5e7eb;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  color: #666;
  margin-top: 3rem;
}

/* Galerie – (pro budoucí rozšíření) */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 2rem auto;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Mobilní optimalizace */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav a {
    width: 90%;
    text-align: center;
  }

  ul {
    padding-left: 1rem;
  }
}

.card {
  max-width: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: Arial, sans-serif;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  padding: 15px;
}

.card-content h3 {
  margin: 0 0 10px;
  color: #006dff;
}

.card-content p {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
}

.card-content a {
  text-decoration: none;
  color: white;
  background-color: #006dff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
}



.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #006dff;
}

.konkarty-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.konkarty {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 30px;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

.konkarty:hover {
  transform: translateY(-5px);
}

.konkarty .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}

.konkarty h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #555;
}

.konkarty p {
  font-size: 1rem;
  color: #333;
}

.map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  
}
table {
  border-collapse: collapse;
  width: 100%;
  max-width: 400px;
  justify-content: center;
}
th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #ccc;
}
th {
  background-color: #f2f2f2;
}
caption {
  caption-side: top;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}



.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.category {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 200px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.products-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.products-grid.active {
  display: grid;
}

.product-card {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card h4 {
  margin: 0.5rem 0;
}



.rekonstrukce {
  max-width: 1400px; /* upraveno pro menší šířku */
  margin: 0 auto;
  padding: 30px 10px; /* menší padding */
}

.karty-rekonstrukce {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* menší mezery */
  justify-content: center;
  margin-bottom: 32px;
}

.karty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* vertikální centrování */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 16px 10px; /* menší padding */
  min-width: 160px; /* menší minimum */
  max-width: 200px; /* menší maximum */
  height: 120px; /* pevná výška pro lepší zarovnání */
  text-align: center;
  transition: transform 0.3s ease;
  font-size: 0.98rem;
  flex: 0 1 20%; /* čtyři vedle sebe */
}

@media (max-width: 900px) {
  .karty {
    flex-basis: 45%; /* dvě vedle sebe na menších obrazovkách */
  }
}
@media (max-width: 600px) {
  .karty {
    flex-basis: 90%; /* jedna na řádek na mobilu */
    min-width: 100px;
    max-width: 100%;
    height: auto;
  }
}

.karty:hover {
  transform: translateY(-4px);
}

.karty h2 {
  font-size: 1.08rem;
  margin-bottom: 7px;
  color: #555;
  text-align: center;
  font-weight: 600;
}
.karty p {
  font-size: 0.98rem;
  color: #333;
  text-align: center;
}

/* Pokud máš uvnitř jen text, vycentruje to text vertikálně i horizontálně */


.galerie-porovnani {
  display: flex;
  justify-content: center;
  gap: 48px; /* větší mezera */
  margin: 42px 0 0;
  flex-wrap: wrap;
}
.galerie-blok {
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  padding: 30px 26px 26px;
  width: 420px; /* větší blok */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.galerie-blok h3 {
  font-size: 1.3rem;
  margin-bottom: 22px;
  color: #0076fa;
  text-align: center;
  font-weight: 700;
}
.galerie-foto {
  display: flex;
  gap: 22px; /* větší mezera mezi fotkami */
  flex-wrap: wrap;
  justify-content: center;
}
.galerie-foto img {
  width: 158px;  /* větší šířka */
  height: 112px; /* větší výška */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  margin-bottom: 12px;
  background: #eee;
  transition: transform 0.16s;
  cursor: pointer;
}
.galerie-foto img:hover {
  transform: scale(1.09);
}

@media (max-width: 950px) {
  .galerie-blok { width: 92vw; max-width: 460px; }
  .galerie-foto img { width: 32vw; max-width: 170px; }
}
@media (max-width: 600px) {
  .galerie-porovnani {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }
  .galerie-blok {
    width: 97vw; max-width: 370px;
    padding: 16px 6px;
  }
  .galerie-foto img { width: 95vw; max-width: 290px; height: 25vw; max-height: 160px; }
}
