.arb-repository {
  --arb-bg: #08090d;
  --arb-surface: #121722;
  --arb-line: rgba(255, 255, 255, 0.14);
  --arb-text: #f7f7fb;
  --arb-muted: #b8c0d0;
  --arb-gold: #d7b55d;
  --arb-blue: #0b2b78;
  background: linear-gradient(180deg, #08090d, #121722);
  color: var(--arb-text);
  padding: clamp(24px, 5vw, 56px);
  border-radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.arb-header {
  display: grid;
  grid-template-columns: 86px minmax(220px, 1fr) minmax(220px, 360px);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.arb-header img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.arb-header span {
  color: var(--arb-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.arb-header h2 {
  margin: 4px 0 0;
  color: var(--arb-text);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

.arb-search,
.arb-submit-form input,
.arb-submit-form select,
.arb-submit-form textarea {
  width: 100%;
  border: 1px solid var(--arb-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--arb-text);
  min-height: 44px;
  padding: 10px 12px;
}

.arb-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.arb-filterbar button,
.arb-submit-form button {
  border: 1px solid var(--arb-line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--arb-text);
  font-weight: 800;
  cursor: pointer;
}

.arb-filterbar button.active,
.arb-submit-form button {
  border-color: rgba(215, 181, 93, 0.7);
  background: linear-gradient(135deg, var(--arb-gold), #f3d889);
  color: #161105;
}

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

.arb-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--arb-line);
  border-radius: 8px;
  background: var(--arb-surface);
}

.arb-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88)),
    linear-gradient(135deg, var(--arb-blue), var(--arb-gold));
  background-size: cover;
  background-position: center;
  transition: transform 180ms ease;
}

.arb-card:hover .arb-cover {
  transform: scale(1.06);
}

.arb-card-content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.arb-card-content span {
  width: fit-content;
  border: 1px solid var(--arb-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #f3d889;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.arb-card-content h3 {
  margin: 0;
  color: var(--arb-text);
  font-size: 22px;
  line-height: 1.08;
}

.arb-card-content p {
  margin: 0;
  color: var(--arb-muted);
}

.arb-card-content a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--arb-text);
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 800;
}

.arb-submit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  border: 1px solid var(--arb-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.arb-submit-form h3,
.arb-submit-form label:nth-of-type(6),
.arb-submit-form label:nth-of-type(7),
.arb-submit-form button,
.arb-success,
.arb-error {
  grid-column: 1 / -1;
}

.arb-submit-form h3 {
  margin: 0;
  color: var(--arb-text);
}

.arb-submit-form label {
  display: grid;
  gap: 6px;
  color: var(--arb-muted);
  font-weight: 700;
}

.arb-success {
  margin: 0;
  color: #35c79c;
  font-weight: 800;
}

.arb-error {
  margin: 0;
  color: #ff8c8c;
  font-weight: 800;
}

.arb-empty {
  color: var(--arb-muted);
}

@media (max-width: 720px) {
  .arb-header {
    grid-template-columns: 70px 1fr;
  }

  .arb-header img {
    width: 70px;
    height: 70px;
  }

  .arb-search {
    grid-column: 1 / -1;
  }

  .arb-submit-form {
    grid-template-columns: 1fr;
  }

  .arb-card {
    min-height: 300px;
  }
}
