* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0f1112;
  color: #e2e2e5;
  font-family: system-ui, sans-serif;
  padding: 24px;
}

header {
  background-color: #16181a;
  border: 1px solid #33373b;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

header h1 {
  font-size: 18px;
  font-weight: 500;
}

.header-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-icon.big {
  transform: scale(2.5);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  background-color: #16181a;
  border: 1px solid #33373b;
  color: #8f9093;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background-color: #252729;
  color: #e2e2e5;
}

.tab-btn.active {
  background-color: #a8c7fa;
  color: #062e6f;
  border-color: #a8c7fa;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background-color: #16181a;
  border: 1px solid #33373b;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h2 {
  font-size: 16px;
  font-weight: 500;
  color: #c6c6c9;
}

.card p {
  font-size: 14px;
  color: #8f9093;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  background-color: #1e2124;
  cursor: zoom-in;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 11, 12, 0.95);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #8f9093;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: #e2e2e5;
}