:root {
  --green: #70c343;
  --blue: #009fe3;
  --light: #ffffff;
  --text: #222;
  --gray: #f4f4f4;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: var(--gray);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1500px;
  width: 90%;
  margin: auto;
  padding: 2rem 1rem;
}

header {
  background: var(--green);
  color: var(--light);
  padding: 0.1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  max-height: 90px;
}

.logo.large {
  height: 100px;
  max-width: 150px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: bold;
}

footer {
  background: var(--blue);
  color: var(--light);
  text-align: center;
  padding: 0.2rem 0;
  margin-top: auto;
}

.intro h2, .sluzby h2, .gallery h2 {
  color: var(--green);
}

.services {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.services li {
  background: var(--light);
  padding: 1rem;
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-project {
  background: var(--light);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-cover {
  width: 100%;
  height: auto; /* <<< klíčové pro zobrazení celého obrázku */
  border-radius: 6px;
}

.gallery-project h3 {
  margin: 1rem 0 0.5rem;
  color: var(--green);
  font-size: 1.4rem;
}

.gallery-project button {
  background: var(--green);
  color: var(--light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  min-width: 100px; /* pevná šířka */
  text-align: center;
  white-space: nowrap;
}


.gallery-project button:hover {
  background: var(--blue);
}

.gallery-details {
  display: none;
  margin-top: 1rem;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}


.gallery-details img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}


.hero {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.hero-text {
  padding: 1rem 0;
}
main.container {
  text-align: center;
}

.contact-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 400px;
  background-color: #fff;
  border: 1px solid var(--green);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  
}
@media (min-width: 768px) {
  .contact-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 600px; /* zvětšeno z 400px */
  font-size: 1.3rem; /* zvětšení textu */
  background-color: #fff;
  border: 2px solid var(--green); /* silnější okraj */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

  .contact-item {
    font-size: 2.3rem !important;
  }
}


.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.contact-item i {
  color: var(--green);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.contact-item a {
  color: #2c5f2d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #1e3d1c;
  text-decoration: underline;
}
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: var(--gray);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 1.1rem; /* původně chybělo – zvětšeno */
  line-height: 1.7;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

nav a {
  font-size: 1.1rem;
}

.services li {
  font-size: 1.05rem;
}

.gallery img {
  max-height: 300px;
}

.contact-item {
  font-size: 1.2rem;
}

footer {
  font-size: 1rem;
}
    .popup {
      display: none;
      position: fixed;
      z-index: 999;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: rgba(0, 0, 0, 0.9);
      justify-content: center;
      align-items: center;
    }

    .popup img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 8px;
    }

    .close-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      color: #fff;
      font-size: 2.5rem;
      cursor: pointer;
      user-select: none;
    }

    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 3rem;
      color: white;
      cursor: pointer;
      user-select: none;
      padding: 0 1rem;
    }

    .arrow.left { left: 20px; }
    .arrow.right { right: 20px; }

    .gallery-details img {
      cursor: zoom-in;
    }