/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ── */
body {
  font-family: 'Georgia', serif;
  color: #333;
  background: #fafaf8;
  line-height: 1.7;
}

/* ── HEADER ── */
header {
  background: #2c3e50;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
header .logo a {
  color: #f0c040;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}
nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
  font-size: .95rem;
  opacity: .85;
  transition: opacity .2s;
}
nav a:hover, nav a.active { opacity: 1; color: #f0c040; }

/* ── MAIN ── */
main {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* ── PAGES ── */
.page-content h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #f0c040;
  padding-bottom: .4rem;
}
.page-content h2 { color: #2c3e50; margin: 1.5rem 0 .6rem; }
.page-content p  { margin-bottom: 1rem; }
.page-content ul { margin: .8rem 0 1rem 1.5rem; }
.page-content li { margin-bottom: .4rem; }

/* ── TABLES ── */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { border: 1px solid #ddd; padding: .7rem 1rem; text-align: left; }
th { background: #2c3e50; color: #fff; }
tr:nth-child(even) { background: #f5f5f5; }

/* ── BLOCKQUOTE ── */
blockquote {
  border-left: 4px solid #f0c040;
  padding: .6rem 1rem;
  color: #555;
  background: #fffbef;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

/* ── HERO GRID (galerie) ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.hero-grid .main-photo {
  grid-row: 1 / 3;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.hero-grid .thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.hero-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.hero-grid .thumb:hover img,
.hero-grid .main-photo:hover img { transform: scale(1.04); }

.show-all-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .2s;
}
.show-all-btn:hover { background: #f0f0f0; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
  color: #fff;
}
.lb-counter { font-size: .95rem; opacity: .8; }
.lb-close {
  background: rgba(255,255,255,.12);
  border: none; color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-main {
  width: 100%; max-width: 900px;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  padding: 70px 1rem;
}
.lb-img-wrap {
  flex: 1; max-height: 70vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img-wrap img {
  max-width: 100%; max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transition: opacity .25s;
}
.lb-btn {
  background: rgba(255,255,255,.13);
  border: none; color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-thumbs {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 6px;
  justify-content: center;
  padding: 12px 1rem;
  overflow-x: auto;
  background: rgba(0,0,0,.4);
}
.lb-thumbs img {
  width: 64px; height: 46px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .55;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.lb-thumbs img.active { opacity: 1; border-color: #fff; }
.lb-caption {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  margin-top: -50px;
  margin-bottom: 70px;
  text-align: center;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; color: #888;
  padding: 4rem 1rem;
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state code {
  background: #eee; padding: 2px 7px;
  border-radius: 4px; font-size: .9rem;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  background: #2c3e50;
  color: rgba(255,255,255,.6);
  margin-top: 4rem;
  font-size: .85rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header { flex-direction: column; gap: .8rem; }
  nav a { margin-left: .8rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
  }
  .hero-grid .thumb { display: none; }
}