:root {
  --bg: #070b0d;
  --panel: #0e1519;
  --panel-2: #121c21;
  --line: #29363d;
  --text: #f2f0eb;
  --muted: #b6bdc1;
  --gold: #f5bf45;
  --gold-dark: #cb8d11;
  --green: #23d366;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.site-header {
  min-height: 92px;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid #20292e;
  background: rgba(7,11,13,.96);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  margin-right: auto;
  text-decoration: none;
  line-height: 1;
  letter-spacing: -.03em;
}
.brand strong { display: block; font-size: 20px; }
.brand small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
}
nav { display: flex; gap: 30px; }
nav a, .phone {
  font-weight: 750;
  text-decoration: none;
}
nav a:hover, .phone { color: var(--gold); }
.phone {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.menu-button { display: none; }

main { min-height: 80vh; }
.catalog-hero {
  min-height: 470px;
  padding: 90px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1.6fr .75fr;
  align-items: end;
  gap: 80px;
  background:
    linear-gradient(90deg, rgba(7,11,13,.97) 0%, rgba(7,11,13,.82) 58%, rgba(7,11,13,.5)),
    radial-gradient(circle at 80% 30%, #5e4518, transparent 38%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .18em;
}
h1, h2, h3 { margin-top: 0; line-height: 1.05; letter-spacing: -.04em; }
h1 { font-size: clamp(48px, 7vw, 86px); margin-bottom: 28px; max-width: 900px; }
h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 0; }
.catalog-hero > div > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 21px;
}
.catalog-hero aside {
  padding: 28px;
  border-left: 3px solid var(--gold);
  background: rgba(14,21,25,.84);
}
.catalog-hero aside strong {
  display: block;
  color: var(--gold);
  font-size: 32px;
}
.catalog-hero aside span { color: var(--muted); }

.catalog-section, .detail-view {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 110px;
}
.catalog-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 42px;
}
.catalog-heading > p {
  color: var(--muted);
  font-size: 20px;
  margin: 0;
}
.controls {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.search input {
  width: 100%;
  padding: 16px 18px;
  color: var(--text);
  background: #081014;
  border: 1px solid #35444b;
  border-radius: 8px;
  outline: none;
}
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,191,69,.14); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.filter {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #3c4a51;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.filter:hover, .filter.active {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}
.result-count { color: var(--muted); margin: 24px 2px 16px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.instrument-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  transition: transform .2s, border-color .2s;
}
.instrument-card:hover { transform: translateY(-4px); border-color: #54646b; }
.instrument-card a { display: block; text-decoration: none; height: 100%; }
.card-image {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #162027, #0b1013);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.instrument-card:hover img { transform: scale(1.025); }
.photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  font-size: 12px;
}
.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #768087;
  font-weight: 750;
}
.card-body { padding: 22px; }
.category-label {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.card-body h3 {
  min-height: 48px;
  margin: 9px 0 13px;
  font-size: 23px;
  line-height: 1.15;
}
.card-meta { color: var(--muted); font-size: 14px; }
.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}
.price { color: var(--gold); font-size: 27px; font-weight: 850; }
.old-price { color: #8d969b; text-decoration: line-through; }
.empty-state {
  padding: 60px;
  text-align: center;
  border: 1px dashed #425159;
  border-radius: 14px;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
}
.main-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  cursor: zoom-in;
}
.main-photo img { width: 100%; height: 100%; object-fit: contain; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 10px;
}
.thumb {
  display: block;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: var(--panel);
  cursor: pointer;
}
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy .category-label { margin-bottom: 12px; }
.detail-copy h1 { font-size: clamp(38px, 5vw, 62px); margin-bottom: 16px; }
.article-number { color: var(--muted); }
.detail-price {
  padding: 22px 0;
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-price .price { font-size: 38px; }
.detail-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.detail-block h2 { font-size: 24px; margin-bottom: 12px; }
.description { color: #d2d6d8; white-space: pre-line; }
.details-note {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--panel-2);
  color: #d7dbdd;
}
.request-actions { display: grid; gap: 10px; margin-top: 28px; }
.button {
  padding: 15px 18px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}
.button.primary { background: var(--gold); color: #101010; }
.button.whatsapp { background: var(--green); color: #06190c; }
.fine-print { margin-top: 16px; color: #8f999e; font-size: 13px; }

dialog {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 40px 80px;
  border: 0;
  background: rgba(0,0,0,.95);
}
dialog::backdrop { background: rgba(0,0,0,.9); }
dialog img { width: 100%; height: 100%; object-fit: contain; }
dialog button {
  position: fixed;
  z-index: 2;
  border: 0;
  color: white;
  background: rgba(30,30,30,.72);
  cursor: pointer;
}
.lightbox-close { top: 18px; right: 20px; width: 48px; height: 48px; border-radius: 50%; font-size: 31px; }
.lightbox-prev, .lightbox-next { top: 50%; width: 50px; height: 70px; font-size: 48px; transform: translateY(-50%); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

footer {
  padding: 32px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header { min-height: 74px; }
  .menu-button {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 6px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    padding: 22px 24px;
    flex-direction: column;
    background: #080d0f;
    border-bottom: 1px solid var(--line);
  }
  .site-header nav.open { display: flex; }
  .phone { display: none; }
  .catalog-hero { grid-template-columns: 1fr; gap: 34px; min-height: 520px; }
  .catalog-heading, .detail-layout { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .brand strong { font-size: 16px; }
  .catalog-hero { padding-top: 68px; padding-bottom: 68px; }
  h1 { font-size: 45px; }
  .catalog-section, .detail-view { width: min(100% - 28px, var(--max)); padding-top: 58px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-heading { gap: 22px; }
  .controls { padding: 15px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter { white-space: nowrap; }
  .detail-layout { gap: 30px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  dialog { padding: 55px 10px 20px; }
  footer { flex-direction: column; }
}
