/* Блоки хаба направления. Префикс hd- — чтобы не пересекаться
   с .course-card, .section и прочими классами темы. */

/* ---- фильтры-окошки ---- */
.hd-fbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 18px}
.hd-fbar select{appearance:none;font:inherit;font-size:14px;color:#14181f;
background-color:#f7f8fa;
background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%237b8592'/%3E%3C/svg%3E");
background-repeat:no-repeat;background-position:right 12px center;
border:1px solid #e0e3e9;border-radius:9px;padding:9px 34px 9px 13px;cursor:pointer;
max-width:100%}
.hd-fbar select:hover{border-color:#c9cfda}
.hd-fbar select:focus{outline:2px solid #ddd6fe;border-color:#6d28d9}
.hd-fbar__btn{font:inherit;font-size:14px;border:0;border-radius:9px;padding:10px 18px;
background:#6d28d9;color:#fff;cursor:pointer;font-weight:500}
.hd-fbar__btn:hover{background:#5b21b6}
.hd-fbar__reset{font:inherit;font-size:14px;border:0;border-radius:9px;padding:10px 18px;
background:#f2f3f6;color:#4a5462;cursor:pointer}
.hd-fbar__found{margin-left:auto;color:#7b8592;font-size:13px}

/* ---- карточки каталога ---- */
.hd-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.hd-card{border:1px solid #e6e8ec;border-radius:12px;overflow:hidden;display:flex;
flex-direction:column;background:#fff}
.hd-card__img{width:100%;height:112px;object-fit:cover;display:block;background:#eef0f4}
.hd-card__ph{display:flex;align-items:center;justify-content:center;color:#fff;
font-weight:600;font-size:15px;padding:12px;text-align:center;line-height:1.25}
.hd-card__tag{font-size:11px;color:#4a5462;background:#f4f5f7;padding:5px 9px;
border-radius:6px;display:inline-block;margin:11px 0 0 13px;align-self:flex-start}
.hd-card__body{padding:12px 13px 14px;flex:1;display:flex;flex-direction:column;gap:9px}
.hd-card__name{font-weight:600;font-size:14px;line-height:1.32;margin:0}
.hd-card__name a{color:#14181f;text-decoration:none}
.hd-card__name a:hover{color:#6d28d9}
.hd-card__row{display:flex;justify-content:space-between;align-items:center;
font-size:12px;color:#7b8592;gap:8px}
.hd-card__price{font-size:18px;font-weight:700;color:#14181f}
.hd-card__old{display:block;font-size:11px;color:#a8b0bb;text-decoration:line-through}
.hd-card__disc{background:#f97316;color:#fff;font-size:12px;font-weight:600;
padding:3px 8px;border-radius:5px}

/* ---- таблицы ---- */
.hd-table{width:100%;border-collapse:collapse;font-size:15px;table-layout:fixed}
.hd-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;
color:#7b8592;font-weight:500;padding:10px 12px;border-bottom:1px solid #e6e8ec;
white-space:nowrap}
.hd-table td{padding:14px 12px;border-bottom:1px solid #f0f1f4;vertical-align:top}
.hd-table tr:last-child td{border-bottom:0}
.hd-num{color:#7b8592;font-size:13px;width:38px}
.hd-name{font-weight:500}
.hd-name a{color:#6d28d9;text-decoration:none}
.hd-name a:hover{text-decoration:underline}
.hd-old{color:#a8b0bb;font-size:12px;text-decoration:line-through;display:block}
.hd-price{font-weight:700;white-space:nowrap}
.hd-disc{display:inline-block;background:#f97316;color:#fff;font-size:12px;
font-weight:600;padding:3px 8px;border-radius:5px;white-space:nowrap}
.hd-score{display:inline-block;background:#fef3e2;color:#b45309;font-weight:600;
font-size:13px;padding:3px 9px;border-radius:6px}
.hd-muted{color:#7b8592;font-size:13px}
.hd-bar{height:5px;background:#eef0f4;border-radius:3px;overflow:hidden;width:90px;margin-top:6px}
.hd-bar i{display:block;height:100%;background:#6d28d9}

/* ---- строка с раскрытием ---- */
.hd-det{cursor:pointer}
.hd-det__main{display:flex;align-items:flex-start;gap:12px}
.hd-det__img{width:64px;height:40px;object-fit:cover;border-radius:6px;
background:#eef0f4;flex-shrink:0}
.hd-det__ph{display:flex;align-items:center;justify-content:center;font-size:15px;
font-weight:700;color:#fff;width:64px;height:40px;border-radius:6px;flex-shrink:0}
.hd-det__plus{color:#b6bdc7;font-size:18px;line-height:1;margin-left:auto;flex-shrink:0;
transition:transform .15s}
.hd-det.is-open .hd-det__plus{transform:rotate(45deg)}
.hd-det__body{display:none;padding:12px 0 4px;font-weight:400;font-size:14px}
.hd-det.is-open .hd-det__body{display:block}
.hd-info{color:#5b6472;font-size:13px;margin:6px 0 0;display:flex;gap:14px;
flex-wrap:wrap;font-weight:400}
.hd-info b{color:#14181f;font-weight:500}
.hd-desc{color:#4a5462;font-size:13px;margin:8px 0 0;font-weight:400}

/* ---- кнопки перехода ---- */
.hd-go{display:inline-block;margin-top:10px;background:#6d28d9;color:#fff;
font-size:13px;font-weight:500;padding:8px 16px;border-radius:8px;
text-decoration:none;margin-right:8px}
.hd-go:hover{background:#5b21b6}
.hd-go--ghost{background:#f2f3f6;color:#4a5462}
.hd-go--ghost:hover{background:#e6e8ec;color:#14181f}

/* ---- школы ---- */
.hd-logo{width:34px;height:34px;border-radius:8px;display:inline-flex;
align-items:center;justify-content:center;font-weight:700;font-size:15px;
color:#fff;flex-shrink:0;background:#6d28d9}

/* ---- бесплатные ---- */
.hd-free{width:100%;border-collapse:collapse;font-size:14px}
.hd-free td{padding:10px 12px;border-bottom:1px solid #f4f5f7;vertical-align:middle}
.hd-free tr:last-child td{border-bottom:0}
.hd-free__dot{color:#a8b0bb;width:22px}
.hd-free__tag{display:inline-block;background:#ecfdf3;color:#067647;font-size:12px;
font-weight:600;padding:3px 8px;border-radius:5px;white-space:nowrap}

/* ---- преподаватели ---- */
.hd-people{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.hd-person{border:1px solid #e6e8ec;border-radius:10px;padding:12px 10px;
text-align:center;min-width:0;background:#fff}
.hd-person__ava{width:56px;height:56px;border-radius:50%;background:#eef0f4;
margin:0 auto 9px;display:flex;align-items:center;justify-content:center;
font-size:20px;color:#b6bdc7;overflow:hidden}
.hd-person__ava img{width:100%;height:100%;object-fit:cover;display:block}
.hd-person b{font-size:13px;font-weight:500;display:block;line-height:1.3;
overflow:hidden;text-overflow:ellipsis}
.hd-person span{color:#7b8592;font-size:11px;display:block;margin:5px 0 0;
line-height:1.35;max-height:2.7em;overflow:hidden}

/* ---- отзывы ---- */
.hd-revs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.hd-rev{border:1px solid #e6e8ec;border-radius:10px;padding:12px 13px;position:relative;
min-width:0;transition:box-shadow .15s;background:#fff}
.hd-rev:hover{box-shadow:0 4px 16px rgba(20,24,31,.09);z-index:5}
.hd-rev__top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.hd-rev__top b{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;
white-space:nowrap}
.hd-rev__sch{font-size:11px;color:#7b8592;margin:4px 0 0;overflow:hidden;
text-overflow:ellipsis;white-space:nowrap}
.hd-rev__txt{font-size:12px;color:#5b6472;margin:7px 0 0;overflow:hidden;
display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hd-rev__full{display:none;position:absolute;left:0;right:0;top:100%;margin-top:6px;
background:#fff;border:1px solid #e0e3e9;border-radius:10px;padding:13px;
box-shadow:0 10px 28px rgba(20,24,31,.16);font-size:12px;color:#2b3441;
line-height:1.5;z-index:20}
.hd-rev:hover .hd-rev__full{display:block}
.hd-rev__meta{color:#7b8592;font-size:11px;margin:8px 0 0;display:flex;
gap:10px;flex-wrap:wrap}
.hd-rev__meta a{color:#6d28d9;text-decoration:none}

/* ---- пагинация каталога ---- */
.hd-pager{display:flex;flex-wrap:wrap;gap:6px;align-items:center;
justify-content:center;margin:22px 0 0}
.hd-pager a,.hd-pager span{display:inline-flex;align-items:center;
justify-content:center;min-width:38px;height:38px;padding:0 12px;
border-radius:9px;font-size:14px;text-decoration:none;color:#14181f;
background:#f7f8fa;border:1px solid #e6e8ec}
.hd-pager a:hover{border-color:#6d28d9;color:#6d28d9;background:#fff}
.hd-pager__cur{background:#6d28d9 !important;color:#fff !important;
border-color:#6d28d9 !important;font-weight:600}
.hd-pager__step{background:#fff !important;font-weight:500}
.hd-pager__dots{border:0 !important;background:transparent !important;
color:#a8b0bb !important;min-width:20px !important;padding:0 !important}

/* ---- адаптив ---- */
@media(max-width:1100px){
	.hd-cards{grid-template-columns:repeat(3,1fr)}
	.hd-revs{grid-template-columns:repeat(3,1fr)}
	.hd-people{grid-template-columns:repeat(5,1fr)}
}
@media(max-width:900px){
	.hd-cards{grid-template-columns:repeat(2,1fr)}
	.hd-revs{grid-template-columns:repeat(2,1fr)}
	.hd-people{grid-template-columns:repeat(3,1fr)}
	.hd-table{font-size:14px}
	.hd-table td,.hd-table th{padding:12px 8px}
}
@media(max-width:640px){
	.hd-cards,.hd-revs,.hd-people{grid-template-columns:repeat(2,1fr)}
	.hd-hide-sm{display:none}
	.hd-fbar__found{margin-left:0;width:100%}
}
