.gallery-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 40px 100px;
}

.gallery-wrap h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.gallery-intro {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 32px;
}

.offer {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.offer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.offer-item {
  display: flex;
  flex-direction: column;
}

.offer-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.offer-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

.offer-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; gap: 26px; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.category-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 0 24px;
}

.masonry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.masonry-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.masonry-item img.loaded {
  opacity: 1;
}

.masonry-item:hover img {
  transform: scale(1.035);
}

.masonry-item .cat-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.masonry-item:hover .cat-tag {
  opacity: 1;
  transform: translateY(0);
}

.masonry-item.hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lb-stage {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-stage img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lb-stage img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lb-caption {
  color: #d4d4d8;
  font-size: 13px;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}

.lb-close:hover {
  opacity: 1;
}

.lb-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb-prev { margin-right: 24px; }
.lb-next { margin-left: 24px; }

@media (max-width: 760px) {
  .gallery-wrap { padding: 8px 20px 80px; }
  .masonry { gap: 10px; }
  .masonry-col { gap: 10px; }
  .masonry-item { border-radius: 8px; }
  .lightbox { padding: 16px; }
  .lb-nav { width: 40px; height: 40px; font-size: 20px; }
  .lb-prev { margin-right: 10px; }
  .lb-next { margin-left: 10px; }
  .lb-close { top: 14px; right: 16px; font-size: 28px; }
}
