/* ============================================================
   DESKTOP SEARCH OVERLAY
   Подключить после menu.css.
   Только ≥1280px, вызывается кнопкой «Поиск» в шапке.
   ============================================================ */

.search-desktop {
  display: none;
}

@media (min-width: 1280px) {

  .search-desktop {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    z-index: var(--z-modal);
    background-color: var(--color-black-soft);
    padding: 24px 16px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 250ms var(--ease-out-expo),
      transform 300ms var(--ease-out-expo),
      visibility 0s linear 300ms;
  }

  .search-desktop::-webkit-scrollbar {
    display: none;
  }

  .search-desktop.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 250ms var(--ease-out-expo),
      transform 300ms var(--ease-out-expo),
      visibility 0s linear 0s;
  }

  /* ── Шапка: логотип + кнопка закрыть ── */
  .search-desktop__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .search-desktop__close {
    display: flex;
    align-items: center;
    gap: 0;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0;
    transition: opacity var(--duration-fast) ease;
  }

  .search-desktop__close:hover { opacity: 0.6; }

  .search-desktop__close:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 4px;
  }

  .search-desktop__close svg {
    width: 22px;
    height: 22px;
    padding: 17px;
    box-sizing: content-box;
  }

  /* ── Поисковое поле ── */
  .search-desktop__field-wrap {
    margin-top: 80px;
    flex-shrink: 0;
  }

  .search-desktop__field {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
  }

  .search-desktop__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white-50);
    cursor: pointer;
    order: -1;
    transition: color var(--duration-fast) ease;
  }

  .search-desktop__icon:hover { color: var(--color-white); }

  .search-desktop__input {
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    color: var(--color-white);
    padding: 0 0 0 var(--space-xs);
    -webkit-appearance: none;
    appearance: none;
  }

  .search-desktop__input::placeholder {
    color: var(--color-white-35);
  }

  .search-desktop__input::-webkit-search-cancel-button {
    display: none;
  }

  .search-desktop__clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-white-25);
    cursor: pointer;
    transition: color var(--duration-fast) ease;
  }

  .search-desktop__clear:hover { color: var(--color-white); }

  /* Красная полоса под полем */
  .search-desktop__bar {
    width: 100%;
    height: 10px;
    background-color: var(--color-brand);
  }

  /* ── Состояния (чипы / результаты) ── */
  .search-desktop__state {
    margin-top: 40px;
    padding-bottom: 40px;
  }

  /* Чипы */
  .search-desktop__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

 .search-desktop__results-list {
  margin-top: 16px;
  display: flex;
  gap: 96px;
  align-items: flex-start;
}

.search-desktop__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

  /* ── Карточки результатов ──
     База — .menu__result-* в menu.css: там же выравнивание по центру
     превью и снятый overflow, они общие для мобилки и десктопа.
     Здесь остаётся единственное десктопное отличие — межстрочное. */
  .search-desktop .menu__result-name {
    line-height: 1.15;
  }

} /* конец @media (min-width: 1280px) */