:root {
  --bg: #f6f1e8;
  --ink: #1a1714;
  --muted: #7a7268;
  --line: #e6dccf;
  --card: #fffdf9;
  --gold: #b0893a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
}
.uae-bar { display: grid; grid-template-columns: 18% 1fr 1fr 1fr; height: 3px; }
.uae-bar i:nth-child(1) { background: #c8102e; }
.uae-bar i:nth-child(2) { background: #007a3d; }
.uae-bar i:nth-child(3) { background: #fff; }
.uae-bar i:nth-child(4) { background: #111; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 86px; height: auto; }
nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
nav a.solid {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}
main { max-width: 1080px; margin: 0 auto; padding: 8px 24px 64px; }
h1 { font-weight: 500; letter-spacing: -.03em; font-size: 40px; margin: 12px 0 8px; }
.lead { color: var(--muted); max-width: 38rem; line-height: 1.6; margin: 0 0 28px; }
.cats, .results { display: flex; flex-wrap: wrap; gap: 8px; }
.cat, .find {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.cat.on { border-color: var(--gold); background: #f8f1e2; }
.search {
  margin: 22px 0;
  display: flex;
  gap: 8px;
}
.search input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
}
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.card {
  width: 100%;
  text-align: start;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 16px 0;
  display: flex;
  gap: 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.card img, .detail img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.card strong, .detail strong { display: block; font-weight: 600; }
.card span, .muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.dock {
  position: sticky;
  top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 180px;
}
.detail p { margin: 8px 0; line-height: 1.5; font-size: 14px; }
.detail a { color: inherit; }
.form {
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.wide { grid-column: 1 / -1; }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 88px; resize: vertical; }
button[type="submit"] {
  margin-top: 8px;
  border: 0;
  background: #1a1714;
  color: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
}
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.error { color: #9d1c32; }
.code {
  font-family: ui-monospace, monospace;
  background: #f6f1e8;
  padding: 8px 10px;
  border-radius: 8px;
  letter-spacing: .04em;
}
@media (max-width: 800px) {
  h1 { font-size: 32px; }
  .layout, .grid { grid-template-columns: 1fr; }
  .dock { position: static; }
}
