:root {
  --bg: #101010;
  --bg-soft: #181818;
  --card: #1c1c1c;
  --gold: #d9a441;
  --gold-soft: #b9862f;
  --text: #f2f2f2;
  --muted: #b9b9b9;
  --line: #2a2a2a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #101010;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #101010;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.brand-text strong .light { color: #fff; font-weight: 800; }
.brand-text small {
  letter-spacing: 4px;
  font-size: 0.7rem;
  color: var(--muted);
}

.nav { display: flex; gap: 18px; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--gold); }

.lang-switch button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}
.lang-switch button.active { color: var(--gold); }
.lang-switch span { color: var(--line); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 48px;
}

.hero h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 0 24px; }

.hero-logo img {
  width: 100%;
  max-width: 380px;
  display: block;
  margin-left: auto;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.hero-actions { display: flex; gap: 12px; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--gold);
}
.btn-gold { background: var(--gold); color: #101010; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { color: var(--gold); background: transparent; }
.btn-outline:hover { background: #222; }

.section { padding-top: 32px; padding-bottom: 32px; }
.section h2 { margin: 0 0 6px; font-size: 1.6rem; }
.muted { color: var(--muted); margin-top: 0; }
code { color: var(--gold); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.card h3 { margin: 0 0 8px; color: var(--gold); font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card a { color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.tile {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border: 1px dashed #3a3a3a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* 2-row carousel: viewport shows N columns, each column = 2 stacked images */
.carousel {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 20px;
}
.car-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 12px;
}
.car-track {
  display: flex;
  gap: 12px;
  transition: transform 0.35s ease;
  will-change: transform;
}
.g-col {
  flex: 0 0 calc((100% - 24px) / 3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.g-item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-item:hover img { transform: scale(1.03); }
.g-item img { transition: transform 0.25s ease; }
.car-btn {
  flex: 0 0 44px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--gold);
  font-size: 1.8rem;
  border-radius: 12px;
  cursor: pointer;
  align-self: center;
  height: 88px;
}
.car-btn:hover:not(:disabled) { border-color: var(--gold); }
.car-btn:disabled { opacity: 0.3; cursor: default; }
.car-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 12px;
  width: 56px;
  height: 72px;
  cursor: pointer;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner { padding-top: 20px; padding-bottom: 20px; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .g-col { flex-basis: calc((100% - 12px) / 2); }
  .nav { display: none; }
}

@media (max-width: 640px) {
  .g-col { flex-basis: 85%; }
  .car-btn { flex-basis: 38px; height: 64px; }
}
