/* Страницы сайта: «хлебные крошки», шапка страницы, сетки карточек, страница компании, пагинация, пустые состояния. */

/* путь от главной */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 16px; font-size: 13px; line-height: 18px; color: var(--muted); }
.crumbs .icon { color: var(--faint); }
.crumbs [aria-current] { color: var(--text); }
.link--quiet { color: inherit; font-weight: 400; }

/* шапка страницы */
.page-head { display: flex; flex-direction: column; gap: 6px; padding-block: 14px 24px; }
.page-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-title { font: 300 clamp(24px, 5.4vw, 28px)/1.2 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }

/* заголовок секции с кнопкой справа */
.section__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* сетка карточек: 1 → 2 → 3 колонки */
.grid-cards { display: grid; gap: 16px; }
@media (min-width: 640px)  { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* карточка категории */
.cat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.cat-card > .icon { color: var(--faint); }
.cat-card__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); }

/* страница компании */
.company-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-block: 14px 24px; }
.company-hero__main { flex: 1 1 320px; display: flex; align-items: center; gap: 16px; min-width: 0; }
.company-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; line-height: 20px; }
.company-hero__meta b { font-size: 14px; font-weight: 500; }
.company-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.company-layout { display: grid; gap: 20px; align-items: start; }
.company-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1000px) {
  .company-layout { grid-template-columns: 340px minmax(0, 1fr); }
  .company-aside { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 559px) { .company-hero__actions { width: 100%; } .company-hero__actions .btn { flex: 1 1 auto; } }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.chip__count { color: var(--muted); font-size: 13px; }
.chip--filter[aria-current="true"] .chip__count { color: inherit; opacity: .8; }

/* сведения: подпись — значение */
.info-list { display: flex; flex-direction: column; margin: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* страницы */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination .btn--icon { min-width: var(--h); width: auto; padding: 0 6px; }
.pagination [aria-current="page"] { cursor: default; }

/* пустое состояние */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; }
.empty__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--muted); }

/* поиск в шапке */
.hsearch { position: relative; flex: 0 1 260px; align-items: center; }
.hsearch > .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hsearch__input {
  width: 100%; height: 32px; padding: 0 12px 0 32px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--ring-inset); font-size: 13px; line-height: 18px; outline: 0;
  -webkit-appearance: none; appearance: none; transition: box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.hsearch__input::placeholder { color: var(--faint); }
.hsearch__input:focus, .hsearch__input:focus-visible { outline: 0; background: var(--card); box-shadow: var(--ring-focus); }
.hsearch__input::-webkit-search-cancel-button, .hsearch__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* подвал */
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* главная: поиск по центру, лента отзывов и колонка справа (без «лендинга» и градиентов) */
.home-top { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 28px 4px; text-align: center; }
.home-top .lead { max-width: 36em; }
.home-top .search { width: 100%; max-width: 640px; margin-top: 6px; text-align: left; }
.write-pill { max-width: 100%; }
.write-pill__q { display: none; color: var(--muted); font-weight: 400; }
.write-pill .icon { color: var(--brand); }
@media (min-width: 560px) { .write-pill__q { display: inline; } }
@media (min-width: 900px) { .home-top { gap: 16px; padding-block: 52px 12px; } }

.home-layout { display: grid; gap: 24px; align-items: start; }
.home-feed { min-width: 0; scroll-margin-top: 72px; }
.home-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1000px) { .home-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }

/* компания над отзывом в ленте */
.review__co { display: flex; align-items: center; gap: 10px; min-width: 0; --press: .98; }
.review__co b { font-size: 14px; line-height: 20px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* короткий список лучших компаний */
.top-list { display: flex; flex-direction: column; margin-top: 6px; }
.top-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding-block: 10px; border-top: 1px solid var(--line); --press: .98; }
.top-row:first-child { border-top: 0; }
.top-row:last-child { padding-bottom: 0; }
.top-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top-row__body > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row__score { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; }
.top-row__score b { font-weight: 500; }
.top-row__score .icon { color: var(--stars-on, var(--star)); }

/* «Поделитесь мнением»: рисунок из трёх карточек-отзывов, без картинок */
.share { display: flex; flex-direction: column; gap: 8px; background: var(--brand-tint); box-shadow: none; }
.share p { color: var(--brand-ink); }
.share__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.share-art { position: relative; height: 104px; margin-bottom: 6px; }
.share-art__card { position: absolute; width: 150px; max-width: 54%; padding: 10px 12px 12px; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--ring); }
.share-art__card i { display: block; height: 6px; margin-top: 7px; border-radius: 3px; background: var(--surface-2); }
.share-art__card--a { left: 0; top: 16px; transform: rotate(-4deg); }
.share-art__card--b { left: 50%; top: 0; z-index: 1; transform: translateX(-50%); }
.share-art__card--c { right: 0; top: 24px; transform: rotate(4deg); }

/* для бизнеса — спокойная серая карточка */
.home-biz { display: flex; flex-direction: column; gap: 8px; padding: 20px; }

/* «Не нашли? Добавьте» — в окне поиска и под результатами */
.search-missing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }

/* кабинет компании: загрузка логотипа */
.logo-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.logo-form__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- подсказки под строкой поиска, пока человек печатает (suggest.js, components/suggest.php) ----------
   Вид — как у выпадающего меню (.menu): то же скругление, отступы, тень и пункты; появление — простое проявление. */
.has-suggest { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; max-height: none; overflow: visible; text-align: left; }
.suggest.is-open { opacity: 1; animation: suggest-in .12s var(--ease); }
.suggest.is-closing { animation: suggest-out .12s var(--ease) forwards; }
@keyframes suggest-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes suggest-out { from { opacity: 1; } to { opacity: 0; } }
.suggest .menu__item { height: 40px; gap: 10px; }
.suggest .menu__item.is-active { background: var(--surface); }
.suggest__name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.suggest__meta { flex: none; margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--muted); }
.suggest .suggest__all { justify-content: space-between; font-size: 13px; color: var(--muted); }
.suggest .suggest__all .icon { color: var(--muted); }
.suggest__empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 4px 8px; font-size: 14px; color: var(--muted); }
/* в шторке поиска подсказки — не выпадающий блок, а список в потоке под строкой */
.suggest--inline { position: static; min-width: 0; box-shadow: var(--ring); }
.suggest--inline .menu__item { height: 44px; }
