:root {
  --max-width: 1000px;
  --accent: #6b6b6b;
  --muted: #8f8f8f;
  --bg: #ffffff;
  --card-border: #e0e0e0;
  --page-padding: 24px;
  --intro-bg: #fafafa; /* jasne szare tło pod tekstem */
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: #222;
}

/* Wrapper */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 18px 0 6px;
  text-align: center;
}

.logo-mark {
  width: 36px;
  height: 24px;
  border-left: 3px solid #333;
  border-bottom: 3px solid #333;
  transform: rotate(45deg);
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

h1.site-title {
  font-size: 26px;
  letter-spacing: 4px;
  margin: 0 0 6px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

p.tagline {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Baner */
.hero {
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15), 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.25), 0 8px 20px rgba(0,0,0,0.15);
}

.hero .image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.hero:hover .image {
  transform: scale(1.02);
}

/* Galeria miniaturek */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  padding: 28px 0 40px;
  justify-items: center;
}

.grid .cell {
  background: #fff;
  border-radius: 10px;
  min-height: 160px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08), inset 0 0 10px rgba(255,255,255,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid .cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Tekst z szarym tłem */
.intro {
  text-align: center;
  margin-top: 20px;
  padding: 20px 20px 20px;
  background-color: var(--intro-bg);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.intro h2 {
  font-size: 28px;
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

.intro p {
  color: #555555;
  line-height: 1.7;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 18px auto;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* Stopka */
.note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 30px;
}

/* Overlay duże zdjęcie */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsywność */
@media (max-width: 720px) {
  .intro h2 { font-size: 22px; }
  .thumb { height: 160px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
}
