/* Каталог коучей — новый макет (широкие карточки в стиле подбора + критерии).
   Подключается ПОСЛЕ list-newspaper.css, поэтому переопределяет часть правил. */

.catalog--new { grid-template-columns: 300px 1fr; }

/* ---- Список широких карточек ---- */
.coach-list { display: flex; flex-direction: column; gap: 20px; }

.coach-card {
    position: relative;
    display: grid;
    grid-template-columns: 240px 1fr;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.coach-card:hover { box-shadow: 0 14px 38px rgba(20,40,70,.10); border-color: #d8e0ea; }

/* Медиа-колонка: фото + кнопка */
.coach-card__media {
    position: relative;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f7f9fc;
    border-right: 1px solid #eef2f7;
}
.coach-card__photo {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f7;
}
.coach-card__photo img, .coach-card__photo picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.coach-card__photo--ph { display: flex; align-items: center; justify-content: center; color: #b9c6d6; font-size: 3rem; }
.coach-card__badge {
    position: absolute; top: 26px; left: 26px;
    background: rgba(26,26,26,.86); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    padding: 4px 9px; border-radius: 6px;
}
.coach-card__btn {
    display: block; text-align: center;
    padding: 11px 14px;
    background: #3a5a7c; color: #fff;
    border-radius: 10px; font-weight: 600; font-size: .94rem;
    text-decoration: none; transition: background .15s ease;
}
.coach-card__btn:hover { background: #2c4660; }

/* Тело карточки */
.coach-card__body { padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.coach-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.coach-card__name { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.coach-card__name a { color: #1a1a1a; text-decoration: none; }
.coach-card__name a:hover { color: #3a5a7c; }
.coach-card__niche { font-size: .8rem; font-weight: 600; color: #3a5a7c; background: #eaf1f8; padding: 3px 10px; border-radius: 20px; }

.coach-card__rating { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: #33414f; }
.coach-card__rating b { color: #1a1a1a; }
.coach-card__stars .fas { color: #d8dee6; font-size: .82rem; }
.coach-card__stars .filled { color: #f5b301; }
.coach-card__reviews { color: #94a3b8; }

.coach-card__info-title, .coach-card__match-title, .coach-card__bio-title {
    margin: 0 0 6px; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: #94a3b8;
}
.coach-card__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.coach-card__facts li { font-size: .9rem; color: #33414f; }
.coach-card__facts i { color: #8aa0b8; margin-right: 5px; }

.coach-card__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.coach-card__chip {
    font-size: .82rem; padding: 4px 10px; border-radius: 16px;
    background: #f1f5f9; color: #475569; border: 1px solid #e8edf2;
}
.coach-card__chip.is-match { background: #e7f4ec; color: #1c7a44; border-color: #bfe6cd; font-weight: 600; }

/* «О себе» — обрезка + разворот */
.coach-card__bio-text {
    position: relative;
    font-size: .92rem; line-height: 1.6; color: #3d4756;
    max-height: 4.8em; overflow: hidden;
}
.coach-card__bio-text::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.7em;
    background: linear-gradient(rgba(255,255,255,0), #fff);
}
.coach-card__bio.is-expanded .coach-card__bio-text { max-height: none; }
.coach-card__bio.is-expanded .coach-card__bio-text::after { display: none; }
.coach-card__bio-toggle {
    margin-top: 6px; padding: 0;
    background: none; border: none; cursor: pointer;
    color: #3a5a7c; font-weight: 600; font-size: .88rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.coach-card__bio-toggle i { transition: transform .15s ease; }
.coach-card__bio.is-expanded .coach-card__bio-toggle i { transform: rotate(180deg); }

.coach-card__footer { margin-top: auto; padding-top: 4px; }
.coach-card__price { font-size: 1.05rem; font-weight: 700; color: #1a1a1a; }
.coach-card__price small { font-weight: 400; color: #94a3b8; font-size: .8rem; }
.coach-card__price--empty { font-weight: 600; color: #94a3b8; font-size: .95rem; }

/* ---- Фильтр: «Критерии подбора» + чекбокс-фасеты ---- */
.catalog--new .catalog-filters__heading {
    margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; color: #1a1a1a;
}
/* ---- Аккордеон фильтров (свёрнуто по умолчанию) ---- */
.filter-acc { border-top: 1px solid #eef2f7; }
.filter-acc:first-of-type { border-top: none; }
.filter-acc__trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 2px;
    background: none; border: none; cursor: pointer;
    font-size: .92rem; font-weight: 600; color: #1a1a1a; text-align: left;
}
.filter-acc__trigger:hover { color: #3a5a7c; }
.filter-acc__chevron { flex: none; font-size: .78rem; color: #94a3b8; transition: transform .2s ease; }
.filter-acc.is-open .filter-acc__chevron { transform: rotate(180deg); }
.filter-acc__panel { padding: 2px 0 12px; }

/* Заголовок смыслового кластера внутри «Видов коучинга» */
.facet-subgroup__title {
    margin: 12px 0 5px; font-size: .82rem; font-weight: 600; color: #475569;
}
.catalog-filters__group > .facet-subgroup__title:first-of-type { margin-top: 4px; }

.facet--check .facet__item { gap: 8px; }
.facet--check .facet__label { flex: 1; }
.facet--check .facet__box {
    width: 18px; height: 18px; flex: none;
    border: 2px solid #cbd5e1; border-radius: 5px; position: relative; transition: .15s ease;
}
.facet--check .facet__item:hover { background: #f1f5f9; }
/* Переопределяем синюю заливку .is-active из list-newspaper.css для чекбоксов */
.facet--check .facet__item.is-active { background: transparent; color: #1a1a1a; font-weight: 600; }
.facet--check .facet__item.is-active .facet__box { background: #3a5a7c; border-color: #3a5a7c; }
.facet--check .facet__item.is-active .facet__box::after {
    content: ""; position: absolute; left: 5px; top: 1px;
    width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.facet--check .facet__item.is-active .facet__count { color: #94a3b8; }

/* ---- Адаптив ---- */
@media (max-width: 900px) {
    .coach-card { grid-template-columns: 190px 1fr; }
}
@media (max-width: 640px) {
    .coach-card { grid-template-columns: 1fr; }
    .coach-card__media { flex-direction: row; align-items: center; gap: 14px; border-right: none; border-bottom: 1px solid #eef2f7; }
    .coach-card__photo { width: 110px; height: 110px; flex: none; }
    .coach-card__badge { top: 24px; left: 24px; }
    .coach-card__btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .coach-card, .coach-card__btn, .coach-card__bio-toggle i { transition: none; }
}
