/* Obecná nastavení */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
}

/* Reset pro všechny sekce */
section {
  display: block;
  position: relative;
  clear: both;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Základní spacing pro všechny sekce */
.section-container {
  padding: 15px;
  margin: 0;
  clear: both;
}

@media (min-width: 768px) {
  .section-container {
    padding: 30px;
  }
}

/* Úprava mezer pro úvodní text */
.section-container .section-content p {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 20px auto;
}

@media (min-width: 768px) {
  .section-container .section-content p {
    font-size: 20px;
    margin: 30px auto;
  }
}

/* Úprava mezer mezi nadpisy */
.section-header {
  margin-bottom: 20px;
}

.section-header + .section-cta {
  margin-top: 0;
  padding-top: 0;
}

@media (max-width: 767px) {
  .section-header {
    margin-bottom: 15px;
  }
}

/* Styl sekce služeb */
.services-section {
  padding: 20px 10px;
  font-family: Arial, sans-serif;
  width: 100%;
  clear: both;
  background: #fff;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .services-section {
    padding: 50px 20px;
    margin-top: 40px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-size: 1.5em;
  margin: 0 0 20px 0;
  clear: both;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
}

.service-category {
  margin: 0 0 20px 0;
  text-align: center;
  width: 100%;
  clear: both;
}

/* Zvětšení mezery před druhou kategorií služeb na mobilním zobrazení */
.container > h3.service-category:nth-of-type(2) {
  margin-top: 60px;
}

@media (max-width: 767px) {
  .container > h3.service-category:nth-of-type(2) {
    margin-top: 80px;
  }
}

@media (max-width: 576px) {
  .container > h3.service-category:nth-of-type(2) {
    margin-top: 100px;
  }
}

@media (min-width: 768px) {
  .service-category {
    margin-bottom: 40px;
  }
}

.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
  margin: 0;
  clear: both;
}

@media (min-width: 768px) {
  .service-items {
    gap: 20px;
  }
}

.service-item {
  flex: 1 1 100%;
  max-width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin: 0 0 15px 0;
}

@media (min-width: 576px) {
  .service-item {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (min-width: 768px) {
  .service-item {
    flex: 1 1 250px;
    max-width: 300px;
    padding: 20px;
    margin: 0;
  }
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-text {
  font-size: 0.9em;
  color: #666;
  margin: 10px 0 0 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .service-text {
    font-size: 1em;
  }
}

/* CTA sekce */
.section-cta {
  text-align: center;
  padding: 20px 15px;
  margin-top: 20px;
  clear: both;
  background-color: #f8f8f8;
}

@media (min-width: 768px) {
  .section-cta {
    padding: 40px 20px;
    margin-top: 40px;
  }
}

/* Odstranění přebytečných mezer z prázdných elementů */
.section-blank {
  margin: 0;
  padding: 0;
  height: 0;
  line-height: 0;
  font-size: 0;
  clear: both;
}

/* Úprava obrázků */
.col-xs-12.col-sm-6 img {
  border-radius: 15px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

/* Obecná pravidla pro galerie */
.gallery {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-items: stretch;
  clear: both;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

@media (min-width: 768px) {
  .gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
}

.gallery a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Galerie pro VINOTÉKU */
.gallery.wine-cellar {
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 576px) {
  .gallery.wine-cellar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Galerie pro VÝROBNÍ HALU */
.gallery.manufacturing-hall {
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 576px) {
  .gallery.manufacturing-hall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery.manufacturing-hall {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery.manufacturing-hall img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Galerie pro JEZÍRKO */
.gallery.pond {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  height: auto;
}

@media (min-width: 576px) {
  .gallery.pond {
    grid-template-columns: 2fr 1fr;
    height: 500px;
  }
}

.gallery.pond a {
  height: 100%;
}

.gallery.pond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Obecné responzivní úpravy pro text */
p, li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  p, li {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* Úprava paddingů pro sekce */
.section-container {
  padding: 15px;
}

@media (min-width: 768px) {
  .section-container {
    padding: 30px;
  }
}

/* Úprava mezer mezi sekcemi */
.section-header {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 40px;
  }
}

/* Responzivní úpravy pro seznamy */
ul {
  padding-left: 20px;
  margin: 10px 0;
}

@media (min-width: 768px) {
  ul {
    padding-left: 40px;
    margin: 20px 0;
  }
}

/* Patička webu */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 40px 0 20px;
  font-family: Arial, sans-serif;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-section address {
  font-style: normal;
  line-height: 1.6;
}

.footer-section p {
  margin: 0 0 10px;
  color: #ccc;
}

.company-name {
  font-weight: bold;
  color: #fff;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #888;
  font-size: 0.9em;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-bottom {
    margin-top: 20px;
    padding: 15px 20px;
  }
}

/* Nová pravidla pro řešení překrývání nadpisu */
.projects-container {
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .projects-container {
    margin-bottom: 100px;
  }
}

.section-header {
  position: relative;
  z-index: 1;
  clear: both;
  padding-top: 40px;
}

.section-header h2 {
  margin-top: 0;
}

.gallery.pond {
  margin-bottom: 40px;
}

/* Minimální mezery mezi nadpisy a obsahem */
.section-header {
  margin-bottom: 0.5px; /* Extrémně zmenšeno */
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 1px; /* Extrémně zmenšeno */
  }
}

/* Minimální mezery pro úvodní text */
.section-container .section-content p {
  margin: 0.5px auto; /* Extrémně zmenšeno */
}

@media (min-width: 768px) {
  .section-container .section-content p {
    margin: 1px auto; /* Extrémně zmenšeno */
  }
}

/* Minimální mezery pro hlavní nadpis */
.section-header h1,
.section-header h2:first-child {
  margin-bottom: 0.5px; /* Extrémně zmenšeno */
}

@media (min-width: 768px) {
  .section-header h1,
  .section-header h2:first-child {
    margin-bottom: 1px; /* Extrémně zmenšeno */
  }



