.profile-search-page, .profile-search-page * { box-sizing: border-box; }
.profile-search-page { min-height: calc(100vh - 55px); padding: 36px 24px 64px; background: #f8f8f9; color: #242126; }
.profile-search-page__inner { width: min(1240px, 100%); margin: 0 auto; }
.profile-search-heading { margin-bottom: 22px; }
.profile-search-heading h1 { margin: 0 0 7px; font-size: clamp(27px, 3vw, 38px); font-weight: 850; line-height: 1.15; }
.profile-search-heading p { margin: 0; color: #77727b; font-size: 14px; line-height: 1.5; }
.profile-search-bar { position: relative; z-index: 30; display: flex; align-items: center; width: 100%; height: 58px; padding-left: 18px; border: 1px solid #e7e3e8; border-radius: 18px; background: #fff; box-shadow: 0 10px 32px rgba(40, 30, 45, .08); }
.profile-search-bar__icon { display: flex; flex: 0 0 22px; color: #ef6e3b; }
.profile-search-bar__icon svg { width: 22px; height: 22px; }
.profile-search-bar input[type="search"] { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: 0; background: transparent; color: #242126; font: 650 16px/1.3 Arial, sans-serif; }
.profile-search-bar input::placeholder { color: #aaa5ad; font-weight: 500; }
.profile-search-bar__submit { align-self: stretch; min-width: 116px; margin: 5px; padding: 0 24px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #ff7a3d, #f34b2f); color: #fff; cursor: pointer; font-size: 15px; font-weight: 800; }
.profile-search-bar__submit:hover { filter: brightness(.97); }
.profile-search-bar__filters { display: none; }
.profile-search-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); align-items: start; gap: 26px; margin-top: 26px; }
.profile-search-filters { position: sticky; top: 78px; z-index: 20; display: grid; gap: 20px; padding: 22px; border: 1px solid #ebe7ec; border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(40, 30, 45, .055); }
.profile-search-filters__mobile-head, .profile-search-filters__apply, .profile-search-filters__backdrop { display: none; }
.search-filter { position: relative; min-width: 0; }
.search-filter__label { display: block; margin: 0 0 8px 2px; color: #454148; font-size: 13px; font-weight: 800; }
.search-filter__control { display: flex; align-items: center; width: 100%; height: 46px; padding-left: 12px; border: 1px solid #e4dfe6; border-radius: 13px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.search-filter--open .search-filter__control { border-color: #ee8b61; box-shadow: 0 0 0 3px rgba(255,122,61,.1); }
.search-filter--invalid .search-filter__control { border-color: #dc2626; }
.search-filter__input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #242126; font-size: 14px; font-weight: 650; }
.search-filter__input::placeholder { color: #99949d; font-weight: 500; }
.search-filter__clear, .search-filter__toggle { flex: 0 0 28px; width: 28px; height: 42px; padding: 0; border: 0; background: transparent; color: #89858d; cursor: pointer; font-size: 18px; }
.search-filter__toggle { margin-right: 2px; font-size: 21px; transition: transform .18s; }
.search-filter--open .search-filter__toggle { transform: rotate(180deg); }
.search-filter__dropdown { position: absolute; top: calc(100% + 5px); right: 0; left: 0; z-index: 50; display: none; max-height: 270px; overflow-y: auto; padding: 6px; border: 1px solid #e7e2e8; border-radius: 14px; background: #fff; box-shadow: 0 16px 38px rgba(30,22,35,.14); }
.search-filter--open .search-filter__dropdown { display: block; }
.search-filter__option { display: block; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #242126; cursor: pointer; font-size: 13px; font-weight: 650; line-height: 1.35; text-align: left; }
.search-filter__option:hover, .search-filter__option:focus-visible { outline: none; background: #fff1ea; }
.search-filter__option[hidden] { display: none; }
.search-filter__empty { display: none; padding: 17px 8px; color: #8e8992; font-size: 13px; text-align: center; }
.search-filter__error { display: none; margin: 6px 2px 0; color: #c62626; font-size: 11px; font-weight: 650; }
.profile-search-filters__reset { color: #9a5a3d; font-size: 13px; font-weight: 750; text-decoration: none; }
.profile-search-results { min-width: 0; }
.profile-search-results__head { display: flex; align-items: center; gap: 9px; min-height: 34px; margin-bottom: 11px; color: #555158; font-size: 15px; }
.profile-search-results__head span { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; padding: 0 8px; border-radius: 20px; background: #eee9ed; color: #6d6870; font-size: 12px; font-weight: 800; }
.profile-search-results__list { display: grid; gap: 11px; }
.profile-search-card { display: flex; align-items: center; gap: 17px; min-height: 116px; padding: 13px 17px 13px 13px; border: 1px solid #ebe6ec; border-radius: 19px; background: #fff; box-shadow: 0 7px 22px rgba(39,29,44,.055); color: #242126; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.profile-search-card:hover { transform: translateY(-1px); border-color: rgba(255,122,61,.38); box-shadow: 0 12px 28px rgba(39,29,44,.09); }
.profile-search-card__avatar { display: flex; flex: 0 0 70px; align-items: center; justify-content: center; width: 70px; height: 88px; overflow: hidden; border-radius: 15px; background: linear-gradient(145deg,#ff9a55,#f45c35); color: #fff; font-size: 25px; font-weight: 850; }
.profile-search-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-search-card__content { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 7px; }
.profile-search-card__name { overflow: hidden; font-size: 18px; font-weight: 820; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.profile-search-card__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-search-card__meta span { padding: 4px 8px; border-radius: 999px; background: #fff1e9; color: #86543d; font-size: 11px; font-weight: 700; }
.profile-search-card__meta .profile-search-card__meta-empty { background: #f1eff1; color: #969199; }
.profile-search-card__description { display: -webkit-box; overflow: hidden; color: #69646d; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.profile-search-card__description--empty { color: #aaa5ad; }
.profile-search-card__arrow { flex: 0 0 auto; color: #ef6c38; font-size: 22px; font-weight: 750; }
.profile-search-results__empty { padding: 42px 20px; border: 1px dashed #ddd7df; border-radius: 18px; background: #fff; color: #7b757e; text-align: center; }

@media (max-width: 900px) {
  .profile-search-page { padding: 23px 12px 42px; }
  .profile-search-heading { margin-bottom: 15px; }
  .profile-search-heading h1 { font-size: 26px; }
  .profile-search-heading p { font-size: 12px; }
  .profile-search-bar { height: 53px; padding-left: 13px; border-radius: 16px; }
  .profile-search-bar input[type="search"] { padding: 0 9px; font-size: 16px; }
  .profile-search-bar__submit { min-width: 72px; padding: 0 13px; font-size: 13px; }
  .profile-search-bar__filters { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 7px; border: 0; border-left: 1px solid #eee9ef; background: transparent; color: #625d66; font-size: 0; font-weight: 750; }
  .profile-search-bar__filters svg { width: 20px; height: 20px; }
  .profile-search-bar__filters b { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 20px; background: #f06536; color: #fff; font-size: 10px; }
  .profile-search-layout { display: block; margin-top: 21px; }
  .profile-search-filters { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 100003; display: grid; max-height: min(80vh, 600px); overflow: visible; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -16px 50px rgba(20,15,24,.22); transform: translateY(110%); visibility: hidden; transition: transform .24s ease, visibility .24s; }
  .profile-search-page--filters-open .profile-search-filters { transform: translateY(0); visibility: visible; }
  .profile-search-filters__mobile-head { display: flex; align-items: center; justify-content: space-between; }
  .profile-search-filters__mobile-head strong { font-size: 20px; }
  .profile-search-filters__mobile-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3f1f3; color: #59545c; font-size: 24px; }
  .profile-search-filters__apply { display: block; min-height: 48px; border: 0; border-radius: 14px; background: linear-gradient(135deg,#ff7a3d,#f34b2f); color: #fff; font-size: 14px; font-weight: 800; }
  .profile-search-filters__backdrop { position: fixed; inset: 0; z-index: 100002; display: block; border: 0; background: rgba(24,18,28,.42); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .profile-search-page--filters-open .profile-search-filters__backdrop { opacity: 1; visibility: visible; }
  body.search-filters-open { overflow: hidden; }
  .search-filter__input { font-size: 16px; }
  .search-filter__dropdown { position: static; max-height: 180px; margin-top: 5px; box-shadow: none; }
  .profile-search-results__head { font-size: 14px; }
  .profile-search-card { min-height: 102px; gap: 12px; padding: 11px; border-radius: 16px; }
  .profile-search-card__avatar { flex-basis: 58px; width: 58px; height: 73px; border-radius: 12px; font-size: 21px; }
  .profile-search-card__name { font-size: 15px; }
  .profile-search-card__description { font-size: 12px; -webkit-line-clamp: 1; }
  .profile-search-card__meta span { font-size: 10px; }
  .profile-search-card__arrow { font-size: 18px; }
}
@media (max-width: 380px) { .profile-search-bar__icon { display: none; } .profile-search-bar { padding-left: 5px; } }
