:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1a1a1d;
  --text: #f5f5f5;
  --muted: #b6b6bb;
  --line: #26262a;
  --brand: #f4752b;
  --white: #ffffff;
  --radius: 18px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #e9e9e9;
}

.header-strip {
  width: min(calc(100% - 24px), var(--shell));
  min-height: 134px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}

.site-logo {
  width: clamp(78px, 12vw, 108px);
  height: auto;
  object-fit: contain;
}

.catalog-shell {
  width: min(calc(100% - 24px), var(--shell));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.intro-block {
  text-align: center;
  margin-bottom: 26px;
}

.intro-block h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  letter-spacing: 0.06em;
}

.intro-block p {
  margin: 10px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.category-tab {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: .18s ease;
}

.category-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.category-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #111;
}

.category-current {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}

.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.image-frame {
  aspect-ratio: 4 / 5;
  width: 100%;
  background: #0f0f11;
  display: grid;
  place-items: center;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
}

@media (max-width: 860px) {
  .category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-strip {
    min-height: 112px;
    padding: 16px 0;
  }

  .site-logo {
    width: 84px;
  }

  .catalog-shell {
    padding-top: 22px;
  }

  .category-nav {
    grid-template-columns: 1fr;
  }

  .category-tab {
    min-height: 48px;
    font-size: 0.92rem;
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
