body {
  margin: 0;
  font-family: "Georgia", serif;
  background: #f4f2eb;
  color: #20363c;
}

/* HEADER */
header {
  background: #16262a;
  padding: 10px 0;
}

nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
}

.logo {
  height: 100px;
}

/* MENU (desktop) */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
}

/* odkazy */
nav a {
  text-decoration: none;
  color: #f4f2eb;
  font-weight: bold;
}

nav a.active {
  text-decoration: underline;
}

/* tlačítko */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #f4f2eb;
  cursor: pointer;
}

/* 📱 MOBIL */
@media screen and (max-width: 768px) {

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .menu {
    /* 👇 KLÍČ – natvrdo schovat */
    display: none !important;

    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    flex-direction: column;

    background: #16262a;
    text-align: center;

    padding: 10px 0;
    margin: 0;

    transform: none;
    z-index: 1000;
  }

  .menu.active {
    display: flex !important; /* 👈 přepne po kliknutí */
  }

  .menu li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .menu a {
    display: block;
    font-size: 18px;
  }
}

/* HERO */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(70%);
}

.hero h1,
.hero p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero h1 {
  top: 40%;
}

.hero p {
  top: 55%;
}
/* TEXT */
.intro, .page {
  width: 80%;
  margin: 60px auto;
  text-align: center;
  line-height: 1.8;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px 0;
  background: #16262a;
  color: #f4f2eb;
  margin-top: 40px;
}

/* GALERIE */
.gallery {
  width: 80%;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

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

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* LIGHTBOX */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 38, 42, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

/* RESPONSIVE GALERIE */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 12px 20px;
  background: #16262a;
  color: #f4f2eb;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn:hover {
  background: #20363c;
}
/* 📱 OPRAVA HERO PRO MOBIL */
@media (max-width: 768px) {

  .hero-img {
    height: 300px;
  }

  .hero h1 {
    font-size: 23px;
    top: 30%;
    padding: 0 10px;
  }

  .hero p {
    font-size: 15px;
    top: 50%;
    padding: 0 15px;
    line-height: 1.4;
  }

  .hero h1,
  .hero p {
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  }

}