 :root {
  --black: #05070b;
  --navy: #071c3a;
  --royal: #0057d8;
  --royal-2: #0d6bff;
  --amber: #f8b31a;
  --line: #d7deea;
  --soft: #f5f7fb;
  --text: #152238;
  --muted: #63708a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.catalog-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 28px;
  background: var(--black);
  border-bottom: 4px solid var(--amber);
}

.catalog-logo img { width: 220px; max-width: 48vw; display: block; }

.catalog-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-header nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  padding: 0 13px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

main { max-width: 1240px; margin: 0 auto; padding: 26px 22px 44px; }

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 22px;
  align-items: stretch;
  padding: 30px;
  background: linear-gradient(120deg, var(--navy), var(--royal));
  color: white;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: 0; }

.hero-copy { max-width: 760px; margin: 16px 0 0; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.55; }

.catalog-hero aside {
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(5, 7, 11, .22);
}

.catalog-hero aside strong { font-size: 58px; color: var(--amber); line-height: 1; }
.catalog-hero aside span { font-weight: 800; }

.catalog-tools {
  margin: 22px 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 240px auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-tools label { display: grid; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 800; }
.catalog-tools input, .catalog-tools select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font: inherit; }
.catalog-tools p { margin: 0; color: var(--muted); font-weight: 800; white-space: nowrap; }

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.terminal-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.terminal-card[hidden] { display: none; }

.terminal-card__media {
  display: grid;
  place-items: center;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.terminal-card__media img { max-width: 100%; max-height: 180px; object-fit: contain; display: block; }

.terminal-card__body { display: grid; gap: 10px; align-content: start; padding: 16px; }

.terminal-card__topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.terminal-card__topline span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.terminal-card__topline strong { color: var(--royal); font-size: 18px; white-space: nowrap; }

.terminal-card h2 { margin: 0; font-size: 20px; line-height: 1.2; color: var(--navy); letter-spacing: 0; }
.terminal-card p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.terminal-card a {
  justify-self: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--amber);
  color: var(--black);
  text-decoration: none;
  padding: 0 12px;
  font-weight: 900;
  font-size: 13px;
}

@media (max-width: 760px) {
  .catalog-header, .catalog-header nav { justify-content: center; }
  .catalog-header { padding: 16px; }
  .catalog-hero { grid-template-columns: 1fr; padding: 24px; }
  .catalog-tools { grid-template-columns: 1fr; }
  .catalog-tools p { white-space: normal; }
}
