/* «Откуда вы о нас узнали?» (25.11, php/src/HeardAbout.php): список в формах заявок выглядит как соседние поля, цвета и шрифты — те же,
   что в style.css и home.css/services.css. Подключается только на страницах, где в форму вставлен список. Стрелка — CSS, цветом текста. */
.lead-form .field select[name="heard"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 38px 12px 14px;
  border: 1px solid rgba(134, 24, 181, 0.14);
  border-radius: 8px;
  background-color: #fbfdff;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

html[data-theme="dark"] .lead-form .field select[name="heard"] {
  border-color: rgba(255, 255, 255, 0.13);
  background-color: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.lead-form .field select[name="heard"]:focus {
  border-color: var(--brand);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(134, 24, 181, 0.12);
}

/* новая сетка hb-q: как select в services.css, на всю строку перед кнопкой; пустой вариант — цветом подсказок, как placeholder у «Почта» */
.hb .hb-q__cell--heard { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); align-content: start; }
.hb-q fieldset:has(.hb-q__cell--heard) .hb-q__go { grid-column: 1 / -1; min-height: 60px; }
.hb .hb-q__cell select[name="heard"] {
  all: unset; display: block; box-sizing: border-box; width: 100%; min-width: 0; cursor: pointer; min-height: 34px; padding-right: 26px;
  font: 500 clamp(17px, 1.7vw, 24px)/34px var(--display); color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.hb .hb-q__cell select[name="heard"]:has(option[value=""]:checked) { color: var(--v300); }
.hb .hb-q__cell select[name="heard"] option { color: var(--ink); }
.hb .hb-q__cell select[name="heard"]:focus-visible { outline: 2px solid var(--v700); outline-offset: 2px; }

@media (max-width: 720px) {
  .hb .hb-q__cell select[name="heard"] { font-size: 16px; }
}
