/* Строка поиска на главной: выпадающие списки и выдача.
   Вёрстка полей — в home-hero.css, здесь только то, что оживляет её. */

.sy-field-input {
  width: 100%; border: none; outline: none; background: none;
  font-family: inherit; font-size: 15px; color: var(--navy);
  padding: 3px 0 0;
}
.sy-field-input::placeholder { color: var(--hint); }

.sy-field-select { cursor: pointer; user-select: none; }
.sy-field.is-set .sy-field-value { color: var(--accent); font-weight: 600; }
.sy-field.is-open .sy-field-chev { transform: rotate(180deg); }
.sy-field-chev { transition: transform .18s; }

.sy-menu {
  display: none; position: absolute; left: 8px; right: 8px; top: calc(100% + 10px);
  z-index: 40; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-card); padding: 8px;
}
.sy-field.is-open .sy-menu { display: block; }
.sy-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 16px; color: var(--navy);
  padding: 11px 14px; border-radius: 12px;
}
.sy-menu button:hover { background: var(--blue-mist); }
.sy-menu button span { font-size: 14px; color: var(--hint); }

/* ---------- выдача ---------- */

.sy-results { padding: 8px 0 40px; }
.sy-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sy-results-head h2 { font-size: 24px; font-weight: 600; color: var(--navy); }
.sy-reset {
  border: 2px solid var(--line); background: #fff; color: var(--navy);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  height: 44px; padding: 0 22px; border-radius: 999px;
}
.sy-reset:hover { border-color: var(--blue); color: var(--blue); }

.sy-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sy-res-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; padding-bottom: 14px;
  transition: box-shadow .2s, transform .2s;
}
.sy-res-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.sy-res-img { display: block; aspect-ratio: 4 / 3; background: var(--blue-mist); }
.sy-res-img img { width: 100%; height: 100%; object-fit: cover; }
.sy-res-name {
  display: block; padding: 12px 14px 4px; font-size: 16px; line-height: 1.35; color: var(--navy);
  /* название в две строки, иначе карточки в ряду разной высоты */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sy-res-price { display: block; padding: 0 14px; font-size: 18px; font-weight: 700; color: var(--navy); }
.sy-res-more, .sy-res-empty { font-size: 16px; color: var(--navy-2); margin-top: 16px; }

@media (max-width: 900px) {
  .sy-res-grid { grid-template-columns: repeat(2, 1fr); }
  .sy-results-head h2 { font-size: 20px; }
}
@media (max-width: 640px) {
  .sy-menu { left: 0; right: 0; }
  .sy-res-grid { gap: 10px; }
}
