
/* страница «Преподаватели»: герой, цифры, фильтры, карточки */
.ctgh .tm-h1s{display:block;margin-top:10px;font-size:.42em;font-weight:700;letter-spacing:0;line-height:1.3;color:#3c3550}
.ctgh .tm-hv{position:relative;padding:0 0 64px 40px;min-height:440px}
.ctgh .tm-hv::before{content:"";position:absolute;right:-16px;top:20px;bottom:76px;left:84px;background:#f1eaf7;border-radius:18px}
.ctgh .tm-hv figure{margin:0;overflow:hidden;border-radius:14px;background:#e9e2f0;position:absolute}
.ctgh .tm-hv img{display:block;width:100%;height:100%;object-fit:cover}
.ctgh .tm-hp1{right:0;top:0;width:84%;aspect-ratio:4/3;box-shadow:0 30px 50px -22px rgba(36,29,54,.35)}
.ctgh .tm-hp2{left:0;bottom:0;width:50%;aspect-ratio:4/3;border:5px solid #faf9fc;box-shadow:0 24px 40px -20px rgba(36,29,54,.35)}
.ctgh .tm-hv{aspect-ratio:auto}
.ctgh .tm-hn{position:absolute;right:14px;bottom:8px;padding:14px 20px;border:1.5px solid #ddd5e8;border-radius:12px;background:#fff;box-shadow:0 18px 34px -16px rgba(36,29,54,.3)}
.ctgh .tm-hn b{display:block;font-size:40px;font-weight:800;line-height:1;color:var(--teal-d)}
.ctgh .tm-hn span{font-size:14px;color:#3c3550}
.ctgh .tm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.ctgh .tm-stats>div{border-top:2px solid var(--ink);padding-top:14px}
.ctgh .tm-stats b{display:block;font-size:40px;font-weight:800;letter-spacing:-.02em;color:var(--teal-d);line-height:1.1}
.ctgh .tm-stats span{display:block;margin-top:6px;font-size:16px;line-height:1.45;color:#3c3550}
.ctgh .tm-abt{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;margin-top:28px;align-items:start}
.ctgh .tm-abt p{margin:0;font-size:17px;line-height:1.7;color:#3c3550}
.ctgh .tm-csl{display:block;margin-bottom:10px;font-size:13.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.ctgh .tm-chips{display:flex;flex-wrap:wrap;gap:8px}
.ctgh .tm-certs span{font-size:13px;padding:3px 8px}
.ctgh .tm-chips span,.ctgh .tm-certs span{padding:5px 10px;border-radius:6px;background:#f1eaf7;color:var(--teal-d);font-size:14px;font-weight:700}
.ctgh .tm-list{scroll-margin-top:80px}
.ctgh .tm-filters{display:flex;flex-direction:column;gap:12px;margin:6px 0 14px}
.ctgh .tm-fg{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ctgh .tm-fg>span{flex:0 0 130px;font-size:14.5px;color:var(--muted)}
.ctgh .tm-fg button{font:inherit;font-size:15px;font-weight:600;padding:8px 14px;border:1.5px solid #d9d2e3;border-radius:8px;background:#fff;color:var(--ink);cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.ctgh .tm-fg button i{font-style:normal;font-weight:600;color:var(--muted);margin-left:6px}
.ctgh .tm-fg button:hover:not(:disabled){border-color:var(--teal-d)}
.ctgh .tm-fg button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.ctgh .tm-fg button[aria-pressed=true] i{color:#d8d2e4}
.ctgh .tm-fg button:disabled{opacity:.45;cursor:default}
.ctgh .tm-cnt{margin:0 0 16px;font-size:14.5px;color:var(--muted)}
.ctgh .tm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.ctgh .tm-c{display:flex;flex-direction:column;padding:12px 12px 18px;border:1.5px solid #ddd5e8;border-radius:14px;background:#fff}
.ctgh .tm-c[hidden]{display:none}
.ctgh .tm-ph{position:relative;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:#f1eaf7}
.ctgh .tm-ph img{display:block;width:100%;height:100%;object-fit:cover}
.ctgh .tm-b{display:flex;flex-direction:column;flex:1;padding:14px 8px 0}
.ctgh .tm-c h3{margin:0 0 2px;font-size:22px;font-weight:800;letter-spacing:-.01em}
.ctgh .tm-role{margin:0 0 10px;font-size:15px;line-height:1.35;color:var(--muted)}
.ctgh .tm-certs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ctgh .tm-loc{display:flex;align-items:center;gap:6px;margin:0 0 10px;font-size:14.5px;color:#3c3550}
.ctgh .tm-loc .ic{width:16px;height:16px}
.ctgh .tm-more{margin-bottom:12px}
.ctgh .tm-x{margin:0 0 10px;font-size:14.5px;line-height:1.45;color:#3c3550}
.ctgh .tm-x b{display:block;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.ctgh .tm-q{margin:0 0 4px;padding:12px 14px;border-left:3px solid var(--teal-d);background:#f6f1fa;border-radius:0 8px 8px 0;quotes:none}
.ctgh .tm-q p{margin:0 0 6px;font-size:14.5px;line-height:1.5;color:#2d2640;font-style:normal}
.ctgh .tm-qa{display:block;font-size:12.5px;color:var(--muted)}
.ctgh .tm-tg{display:none}
.ctgh .tm-wa{margin-top:auto;display:inline-block;text-align:center;padding:10px 14px;border:2px solid var(--ink);border-radius:999px;color:var(--ink);font-size:14.5px;font-weight:700;text-decoration:none;transition:background .15s,color .15s,border-color .15s}
.ctgh .tm-wa:hover{background:var(--ink);color:#fff}
.ctgh .tm-empty{margin:20px 0;color:var(--muted)}
.ctgh .tm-noimg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:64px;font-weight:800;color:var(--teal-d)}
.ctgh .tm-upd{margin:16px 0 0;font-size:14px;color:var(--muted)}
.ctgh .tm-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 32px;margin-top:34px;padding:26px 30px;border:1.5px solid #ddd5e8;border-radius:12px;background:#fff}
.ctgh .tm-cta h3{margin:0 0 4px;font-size:22px;font-weight:800}
.ctgh .tm-cta p{margin:0;font-size:16.5px;color:#3c3550;max-width:560px}
.ctgh .tm-ctab{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:1180px){.ctgh .tm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1020px){
  .ctgh .tm-abt{grid-template-columns:1fr;gap:22px}
  .ctgh .tm-stats{grid-template-columns:1fr;gap:14px}
}
@media(max-width:820px){.ctgh .tm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .ctgh .tm-hv{padding:0;min-height:0;display:flex;flex-direction:column;gap:12px}
  .ctgh .tm-hv::before{display:none}
  .ctgh .tm-hv figure{position:static;width:100%!important}
  .ctgh .tm-hp2{display:none}
  .ctgh .tm-hn{position:static}
  .ctgh .tm-fg>span{flex-basis:100%}
  .ctgh .tm-grid{grid-template-columns:1fr;gap:12px}
  .ctgh .tm-c{display:grid;grid-template-columns:92px minmax(0,1fr);gap:0 14px;padding:12px;align-items:start}
  .ctgh .tm-ph{width:92px;height:92px;aspect-ratio:auto;border-radius:10px}
  .ctgh .tm-b{padding:0}
  .ctgh .tm-c h3{font-size:20px}
  .ctgh .tm-more{display:none;margin:8px 0 0}
  .ctgh .tm-c.is-open .tm-more{display:block}
  .ctgh .tm-tg{display:inline-block;align-self:flex-start;margin:4px 0 8px;padding:0;border:0;background:none;font:inherit;font-size:14.5px;font-weight:700;color:var(--teal-d);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
  .ctgh .tm-wa{margin-top:6px;align-self:flex-start;padding:8px 18px;font-size:14px}
  .ctgh .tm-cta{padding:20px 18px}
  .ctgh .tm-ctab .btn{flex:1 1 100%;text-align:center}
}
