/* Страница «Преподаватели»: шапка-приветствия и карточки. Шрифт Onest — только внутри main. */
main, main h1, main h2, main p, main a, main li, main span, main button { font-family: "Onest", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }
.phD { padding-block: 118px 26px !important; text-align: center; }
.phD__q { font-size: 22px; font-weight: 500; color: #6b6782; letter-spacing: 0; margin: 0 0 6px; }
.phD__g { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 4.5vw, 64px); }
.phD__g button { border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #1d1a2b; transition: color .15s; -webkit-tap-highlight-color: transparent; }
.phD__g button:focus-visible, .phD__all button:focus-visible { outline: 3px solid #7d5fff; outline-offset: 6px; border-radius: 8px; }
.phD__g .w { font-size: clamp(40px, 8.2vw, 112px); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.phD__g .w.ar { font-family: "Noto Kufi Arabic", "Onest", sans-serif; font-weight: 700; letter-spacing: 0; font-size: clamp(34px, 6.9vw, 94px); line-height: 1.1; margin: -.06em 0 .02em; }
.phD__g .c { font-size: 15px; font-weight: 500; color: #6b6782; }
@media (hover: hover) { .phD__g button:hover { color: #7d5fff; } }
.phD__g.on button { color: #d9d3f3; } .phD__g.on button .c { color: #b9b4cc; }
.phD__g.on button.is-on { color: #7d5fff; } .phD__g.on button.is-on .c { color: #1d1a2b; }
.phD__all { min-height: 30px; margin: 14px 0 0; }
.phD__all button { border: 0; background: none; color: #7d5fff; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.tcard { box-shadow: none !important; border: 1px solid #e9e5f7 !important; }
.tcard[hidden] { display: none !important; }
.tcard__hi { position: absolute; top: 12px; left: 12px; z-index: 2; background: #7d5fff; color: #fff; font-weight: 700; font-size: 15px; line-height: 1; padding: 9px 13px 10px; border-radius: 16px 16px 16px 4px; transform: rotate(-5deg); box-shadow: 0 6px 16px rgba(60, 35, 170, .28); }
.tcard__hi[lang=ar] { font-family: "Noto Kufi Arabic", sans-serif; font-size: 14px; padding: 7px 13px 11px; border-radius: 16px 16px 4px 16px; left: auto; right: 12px; transform: rotate(5deg); }
.tcard__over { display: none; }
.tcard__points li:first-child { display: none; }
.tcard__bio-inner { padding-bottom: 14px; }
.tcard__name { font-size: 26px !important; font-weight: 700 !important; }
.tcard__lang { font-size: 14px !important; margin-top: 1px !important; } .tcard__lang span { color: #6b6782; font-weight: 500; }
.tcard__lead { font-size: 17px; line-height: 1.38; font-weight: 600; color: #1d1a2b; letter-spacing: -.01em; margin: 0 0 12px; }
.tcard__tag { background: #f3f0ff !important; border: 0 !important; color: #4a3fa0 !important; font-size: 12.5px !important; }
.tcard__cost { font-size: 14px; color: #6b6782; margin: 0 0 12px; } .tcard__cost b { color: #1d1a2b; font-size: 16px; } .tcard__cost span { margin-left: 14px; white-space: nowrap; }
.tcard__more { border: 0 !important; background: none !important; color: #7d5fff !important; font-weight: 600 !important; padding-inline: 8px !important; }
.thelp { margin: 28px auto 0; max-width: 560px; text-align: center; font-size: 15.5px; line-height: 1.5; color: #6b6782; } .thelp a { color: #7d5fff; font-weight: 600; }

@media (min-width: 900px) {
  .tcards { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
  .tcard { display: grid !important; grid-template-columns: 200px 1fr; column-gap: 20px; padding: 14px !important; border-radius: 26px !important; }
  .tcard__media { aspect-ratio: 4 / 5 !important; height: auto; align-self: start; border-radius: 18px !important; }
  .tcard__body { padding: 6px 6px 2px 0 !important; height: 100%; }
  .tcard__head { margin-bottom: 10px !important; }
  .tcard__tags { margin-bottom: 16px !important; }
  .tcard__cost { margin-top: auto; padding-top: 4px; }
  .tcard__bio { grid-column: 1 / -1; }
}
@media (max-width: 899px) { .phD { padding-block: 92px 8px !important; } .phD__q { font-size: 17px; } .phD__g .c { font-size: 12.5px; } .phD__all { min-height: 24px; margin-top: 8px; } }
@media (max-width: 640px) {
  .phD { padding-block: 88px 6px !important; }
  .phD__q { text-align: left; font-size: 16px; margin-bottom: 2px; }
  .phD__g { flex-direction: column; align-items: stretch; gap: 0; }
  .phD__g button { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 0; border-bottom: 1px solid #eeeaf9; }
  .phD__g button:last-child { border-bottom: 0; }
  .phD__g .w { font-size: 58px; line-height: 1.12; } .phD__g .w.ar { font-size: 48px; line-height: 1.3; margin: 0; }
  .phD__g .c { font-size: 13px; line-height: 1.25; text-align: right; flex: none; }
  .phD__g .cm { display: none; } .phD__g .cn { display: block; white-space: nowrap; }
  .phD__all { text-align: left; margin-top: 6px; }
  .tcards { gap: 14px !important; }
  .tcard { display: block !important; padding: 10px !important; border-radius: 26px !important; }
  .tcard__media { height: auto !important; aspect-ratio: 5 / 4 !important; border-radius: 18px !important; }
  .tcard__photo { border-radius: 18px !important; }
  .tcard__over { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 54px 14px 12px; background: linear-gradient(to top, rgba(20, 14, 48, .82), rgba(20, 14, 48, 0)); color: #fff; z-index: 1; }
  .tcard__over b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
  .tcard__over i { font-style: normal; font-size: 14px; opacity: .92; }
  .tcard__head { display: none !important; }
  .tcard__body { display: block !important; padding: 14px 6px 4px !important; }
  .tcard__lead { font-size: 18px; line-height: 1.33; }
  .tcard__tags { margin-bottom: 14px !important; }
  .tcard__actions { margin-top: 0 !important; }
  .thelp { text-align: left; margin-top: 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .phD__g button { transition: none; } }
