/* ════════════════════════════════
   На этом сайте подключён Bootstrap, у которого класс .custom-select —
   встроенная стилизация нативного <select> (белый фон, рамка, фоновая
   стрелка). Сбрасываем это, т.к. используем свой компонент на div/button
   (см. .custom-select-trigger/.custom-select-panel ниже).
════════════════════════════════ */
.custom-select {
  display: block; width: auto; height: auto; padding: 0;
  font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit;
  background: none; border: none; border-radius: 0;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}

/* ════════════════════════════════
   SIDEBAR BRAND BLOCK — общий для Модулей и Судейства
════════════════════════════════ */
.list-brand { padding: 20px 16px 0; }
.sb-brand { display: flex; align-items: center; gap: 10px; }
.sb-brand-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-dk);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sb-brand-icon svg { width: 18px; height: 18px; }
.sb-brand-title { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.sb-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin-top: 14px; }

/* ════════════════════════════════
   SEARCH INPUT — общий для поиска модулей/категорий/участников
════════════════════════════════ */
.search-wrap { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; display: flex; }
.search-input {
  width: 100%; padding: 9px 12px 9px 36px;
  border-radius: 9px; border: 1px solid var(--border);
  background: #fff; font-family: inherit; font-size: 13px; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.search-clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--bg-soft);
  color: var(--text-3); cursor: pointer; display: none; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1;
}
.search-clear.show { display: flex; }

/* ════════════════════════════════
   CUSTOM SELECT — общий для команды (Судейство) и мобильного меню экосистемы (шапка)
════════════════════════════════ */
.custom-select { position: relative; }
.custom-select-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card);
  font-family: inherit; font-size: 15px; color: var(--text-3); cursor: pointer; text-align: left;
  transition: border-color 0.15s;
}
.custom-select-trigger.has-value { color: var(--text); }
.custom-select-trigger svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; transition: transform 0.15s; }
.custom-select-trigger:hover, .custom-select-trigger.open { border-color: var(--accent); }
.custom-select-trigger.open svg { transform: rotate(180deg); }

.custom-select-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px;
}
.custom-select-panel.show { display: block; }
.custom-select-option {
  padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); cursor: pointer;
  transition: background 0.12s;
}
.custom-select-option:hover { background: var(--bg-soft); }
.custom-select-option.selected { background: var(--accent-bg); color: var(--accent-dk); font-weight: 700; }
