:root {
  --bg: #090909;
  --panel: #151515;
  --text: #f7f7f7;
  --muted: #9d9d9d;
  --orange: #f4752b;
  --white: #ffffff;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
img { display: block; max-width: 100%; }
button { font: inherit; }

.topbar {
  width: 100%;
  background: var(--white);
}
.topbar__inner {
  width: min(calc(100% - 24px), var(--shell));
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}
.logo {
  width: 92px;
  height: 110px;
  object-fit: contain;
}

.page {
  width: min(calc(100% - 24px), var(--shell));
  margin: 0 auto;
  padding: 30px 0 50px;
}
.page h1 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: .05em;
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.category-btn {
  min-height: 52px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}
.category-btn.is-active {
  background: var(--orange);
  color: #111;
  border-color: var(--orange);
}

.gallery-section h2 {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: .1em;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  border: 1px solid #222;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.empty {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #303030;
  border-radius: 12px;
}

@media (max-width: 800px) {
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .topbar__inner { min-height: 120px; }
  .logo { width: 76px; height: 92px; }
  .categories { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
