* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
}

.site-header {
  background: #1a1a1a;
  padding: 40px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2 {
  margin-top: 0;
}

.subtitle {
  color: #aaa;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #1b1b1b;
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #222;
}

.card-body {
  padding: 16px;
}

.button {
  display: inline-block;
  padding: 8px 12px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  margin-top: 8px;
  font-size: 14px;
}

.button:hover {
  background: #2563eb;
}

.viewer-page {
  min-height: 100vh;
}

.viewer-wrap {
  background: #181818;
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  padding: 16px;
}

model-viewer {
  width: 100%;
  height: 70vh;
  background: #101010;
  border-radius: 12px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #93c5fd;
  text-decoration: none;
}

.description {
  margin-top: 16px;
  color: #cfcfcf;
  line-height: 1.5;
}

.card-links,
.links-block {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
