:root {
  --bg: #020303;
  --panel: #090b0b;
  --panel-2: #101313;
  --gold: #f7bd25;
  --gold-light: #ffe77a;
  --gold-dark: #9d6800;
  --text: #f4f4f4;
  --muted: #b6b8b8;
  --line: rgba(247, 189, 37, 0.58);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(247, 189, 37, 0.14), transparent 29rem),
    linear-gradient(180deg, #040505 0%, #000 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 26px 26px;
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 22px;
}

.site-header {
  text-align: center;
  padding: 8px 0 20px;
}

.brand-logo {
  display: block;
  width: min(820px, 100%);
  max-height: 180px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 8px 24px rgba(247, 189, 37, 0.12));
}

.tagline {
  margin: 8px 0 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(0.72rem, 1.7vw, 0.95rem);
  font-weight: 700;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 8px 0 18px;
}

.tab-button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(22,25,25,.98), rgba(7,8,8,.98));
  font: 800 0.9rem/1 Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.tab-button:hover {
  transform: translateY(-1px);
  border-color: var(--gold-light);
}

.tab-button:focus-visible {
  outline: 3px solid rgba(247, 189, 37, .32);
  outline-offset: 2px;
}

.tab-button.active {
  color: #080808;
  border-color: var(--gold-light);
  background: linear-gradient(135deg, #b97b00 0%, #ffe273 48%, #c88b08 100%);
  box-shadow: 0 6px 20px rgba(247, 189, 37, .18);
}

.catalog-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(13,15,15,.98), rgba(4,5,5,.99));
  box-shadow: var(--shadow);
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(247,189,37,.16), rgba(247,189,37,.03) 48%, transparent);
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font: 800 clamp(1.45rem, 4vw, 2.25rem)/1.1 Montserrat, sans-serif;
  letter-spacing: .02em;
}

.status {
  color: var(--muted);
  font-size: .86rem;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th {
  padding: 13px 14px;
  color: #080808;
  background: linear-gradient(135deg, #c98b0c, #ffe478 52%, #c48709);
  font: 800 .78rem/1.2 Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: .035em;
  text-align: left;
}

td {
  padding: 15px 14px;
  border-top: 1px solid rgba(247, 189, 37, .29);
  vertical-align: top;
  color: #e9eaea;
  font-size: .93rem;
  line-height: 1.42;
}

tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
tbody tr:hover { background: rgba(247,189,37,.055); }

td:nth-child(1),
td:nth-child(2) { font-weight: 700; }

td:nth-child(5) {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

td:nth-child(6) {
  text-align: center;
  font-weight: 700;
}

.product-cards { display: none; }

.empty-state {
  padding: 50px 24px;
  color: var(--muted);
  text-align: center;
}

.error-message {
  color: #ffd3d3;
}

footer {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(247,189,37,.52);
  border-radius: 9px;
  color: #d8d8d8;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  line-height: 1.45;
}

footer p { margin: 2px 0; }

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 680px);
    padding-top: 12px;
  }

  .brand-logo {
    max-height: 125px;
  }

  .tagline {
    letter-spacing: .18em;
  }

  .category-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tab-button {
    min-height: 48px;
    font-size: .78rem;
  }

  .catalog-heading {
    align-items: start;
    padding: 18px;
  }

  .status { padding-top: 3px; }

  .table-wrap { display: none; }
  .product-cards {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .product-card {
    overflow: hidden;
    border: 1px solid rgba(247,189,37,.42);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(18,21,21,.98), rgba(6,7,7,.98));
  }

  .card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 15px 12px;
    border-bottom: 1px solid rgba(247,189,37,.22);
  }

  .product-name {
    margin: 0;
    font: 800 1.03rem/1.25 Montserrat, sans-serif;
  }

  .product-code {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .75rem;
  }

  .price {
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .detail {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .detail:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.06);
  }

  .detail.usage {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .detail-label {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .65rem;
    font-weight: 800;
  }

  .detail-value {
    color: #ededed;
    font-size: .87rem;
    line-height: 1.4;
  }
}

@media (max-width: 420px) {
  .catalog-heading {
    display: block;
  }

  .status {
    margin-top: 8px;
  }
}


.contact-button {
  border-color: rgba(255, 231, 122, 0.85);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.contact-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(247, 189, 37, 0.12), transparent 38%),
    linear-gradient(180deg, #121414, #050606);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
}

.contact-dialog h2 {
  margin: 0 40px 22px 0;
  font: 800 clamp(1.45rem, 5vw, 2rem)/1.15 Montserrat, sans-serif;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 189, 37, 0.55);
  border-radius: 50%;
  color: var(--gold-light);
  background: #080909;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(247, 189, 37, 0.42);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.contact-item:hover {
  transform: translateY(-1px);
  border-color: var(--gold-light);
  background: rgba(247, 189, 37, 0.07);
}

.contact-label {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.68rem;
  font-weight: 800;
}

.contact-item strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .category-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-button {
    grid-column: 1 / -1;
  }

  .contact-dialog {
    padding: 24px 18px 20px;
  }
}
