/* 12.10: блок преподавателей без поп-апов. Переопределяет .pair-* из site-polish.css (селекторы через .tch). */
.tch { --tch-gold: #c9a84c; --tch-ink: #17110d; --tch-bronze: #76531a; position: relative; margin-top: 56px; }
.tch-vh { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tch .pair-grid { margin-top: 0; }
.tch-nojs { margin-top: 40px; }
.tch-fallback { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font: 700 20px/1.3 Evolventa,Jost,sans-serif; }
.tch-fallback a { color: #7a2238; }
.tch [hidden], .tch .pair-grid[hidden] { display: none !important; }
.tch .pair-card { position: relative; cursor: pointer; min-width: 0; }
.tch .pair-card-copy { min-width: 0; }
.tch .pair-card-copy h3 { overflow-wrap: break-word; hyphens: manual; }
.tch .pair-card-photo img { -webkit-user-drag: none; user-select: none; }
.tch .pair-card.is-open { background: rgba(255,250,241,.92); box-shadow: inset 0 0 0 2px var(--tch-gold); }

/* «Подробнее» — текстовая кнопка внутри карточки */
.tch .pair-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 0 2px; border: 0; background: none; color: var(--tch-bronze); font: 600 12px/1.2 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.tch .pair-card-copy > p + .pair-toggle { margin-top: auto; }
.tch .pair-toggle i { width: 9px; height: 9px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
.tch .pair-toggle[aria-expanded="true"] i { margin-top: 4px; transform: rotate(-135deg); }
.tch .pair-toggle:hover span:first-child, .tch .pair-toggle:hover { color: #5c3f12; }
.tch button:focus-visible, .tch a:focus-visible, .tch .pair-panel h3:focus-visible { outline: 2px solid #7a2238; outline-offset: 3px; }
.tch .pair-panel h3:focus:not(:focus-visible) { outline: none; }

/* ====== Вариант «Лента с превью» (rail) ====== */
.tch-rail .tch-view { position: relative; }
.tch-rail .pair-grid { gap: 20px; scroll-behavior: auto; cursor: grab; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.tch-rail .pair-grid.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.tch-rail .pair-grid.is-drag .pair-card { pointer-events: none; }
/* три карточки + край четвёртой */
.tch-rail .pair-card { flex: 0 0 calc((100% - 60px) / 3.3); }
.tch-arrow { position: absolute; z-index: 4; top: var(--tch-arrow-y, 40%); display: grid; place-items: center; width: 58px; height: 58px; margin-top: -29px; border: 1px solid rgba(201,168,76,.75); border-radius: 50%; background: rgba(23,17,13,.88); color: #f3dc9a; font: 400 24px/1 Jost, sans-serif; cursor: pointer; box-shadow: 0 10px 28px rgba(23,17,13,.28); transition: opacity .2s, transform .2s, background .2s; }
.tch-arrow:hover:not(:disabled) { background: #7a2238; transform: scale(1.06); }
.tch-arrow:disabled { opacity: .28; cursor: default; }
.tch-rail .tch-arrow-prev { left: -29px; }
.tch-rail .tch-arrow-next { right: -29px; }
.tch-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 22px; }
.tch-thumbs { display: flex; gap: 10px; }
.tch-thumbs button { position: relative; width: 52px; height: 52px; padding: 0; overflow: hidden; border: 1px solid rgba(126,91,30,.35); border-radius: 50%; background: #2a1d15; opacity: .55; cursor: pointer; transition: opacity .2s, box-shadow .2s, transform .2s; }
.tch-thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tch-thumbs button.is-seen { opacity: 1; box-shadow: 0 0 0 2px #faf4e8, 0 0 0 4px var(--tch-gold); }
.tch-thumbs button.is-open { transform: translateY(-3px); }
.tch-thumbs button:hover { opacity: 1; }
.tch-count { margin: 0; color: var(--tch-bronze); font: 400 14px/1 Jost, sans-serif; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.tch-count b { font: 700 22px/1 Evolventa,Jost,sans-serif; letter-spacing: 0; color: #3b2a14; }

/* Панель «О паре» под лентой / под рядом */
.pair-panel { position: relative; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr) minmax(0, .95fr); grid-template-areas: "head text media" "nav nav nav"; gap: 0 44px; margin-top: 28px; padding: 76px 48px 0; background: #17110d; color: #efe5d2; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.pair-panel.is-landscape { grid-template-columns: minmax(200px, .65fr) minmax(0, 1.15fr) minmax(0, 1.3fr); }

.pair-panel.is-in { animation: tch-in .42s cubic-bezier(.2,.7,.2,1); }
@keyframes tch-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.pair-panel-head { grid-area: head; min-width: 0; }
.pair-panel-kicker { margin: 0 0 14px; color: var(--tch-gold); font: 400 11px/1.2 Jost, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.pair-panel h3 { margin: 0; color: #fbf3e2; font: 700 clamp(24px, 2.4vw, 32px)/1.1 Evolventa,Jost,sans-serif; overflow-wrap: normal; }@media(min-width:1333.33px){.pair-panel h3{font-weight:400}}
.pair-panel h3 em { color: var(--tch-gold); font-family: Cormorant, serif; font-style: italic;font-weight:600 }
.pair-panel-text { grid-area: text; min-width: 0; max-width: 68ch; }
.tch .pair-panel-text p { margin: 0 0 16px; color: #e3d7c0; font-size: 17px; line-height: 1.65; }
.tch .pair-panel-text strong { color: #fbf3e2; font-weight: 600; }
.pair-panel-media { grid-area: media; min-width: 0; align-self: start; }
.pair-panel-media:empty { display: none; }
.pair-clip { margin: 0 0 24px; }
.pair-clip-box { position: relative; overflow: hidden; background: #000; }
.pair-clip video { display: block; width: 100%; height: auto; background: #000; }
.pair-clip.is-portrait video { width: auto; max-width: 100%; max-height: min(72vh, 600px); margin: 0 auto; aspect-ratio: 9 / 16; }
.pair-clip.is-landscape video { aspect-ratio: 16 / 9; }
.pair-clip-poster { display: block; width: 100%; height: auto; }
.pair-clip.is-photo .pair-clip-box { aspect-ratio: 4 / 5; max-height: min(72vh, 600px); background: linear-gradient(145deg, #0c0a09, #421522); }
.pair-clip.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair-clip .pair-credits { margin: 10px 0 0; }
.pair-yt { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 16px 0 0; }
.pair-yt[hidden] { display: none; }
.pair-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid rgba(201,168,76,.7); background: rgba(201,168,76,.06); color: #f3dc9a; font: 600 12px/1.3 Jost, sans-serif; letter-spacing: .12em; text-align: center; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pair-btn b { font-weight: 400; font-size: 16px; }
.pair-btn:hover { background: #7a2238; border-color: #7a2238; color: #fff7e6; }
.pair-dl { margin-top: 12px; width: 100%; }
.tch .pair-credits { font-size: 13px; line-height: 1.45; color: #a8987d; overflow-wrap: break-word; }
.pair-credits a { color: inherit; }
.pair-panel-close { position: absolute; z-index: 2; top: 18px; right: 22px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 14px; border: 0; background: none; color: #d8c08a; font: 400 12px/1 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.pair-panel-close i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(201,168,76,.55); border-radius: 50%; font-style: normal; font-size: 13px; }
.pair-panel-close:hover i { background: #7a2238; }
.pair-panel-nav { grid-area: nav; display: grid; grid-template-columns: 1fr 1fr; margin: 22px -48px 0; border-top: 1px solid rgba(201,168,76,.25); }
.pair-panel-nav button { min-width: 0; padding: 20px 48px; border: 0; background: none; color: #e8cf8c; font: 700 16px/1.3 Evolventa,Jost,sans-serif; text-align: left; cursor: pointer; overflow-wrap: break-word; }
.pair-panel-nav button + button { text-align: right; border-left: 1px solid rgba(201,168,76,.25); }
.pair-panel-nav i { font: 400 18px Jost, sans-serif; font-style: normal; }
.pair-panel-nav button:hover { background: rgba(201,168,76,.08); }

/* ====== Вариант «Сцена и миниатюры» (stage) ====== */
.tch-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.tch-strip button { display: grid; justify-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: #5b4a30; cursor: pointer; }
.tch-strip-img { display: block; width: 100%; max-width: 120px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 1px solid rgba(126,91,30,.35); opacity: .6; transition: opacity .2s, box-shadow .2s; }
.tch-strip-img img { width: 100%; height: 100%; object-fit: cover; }
.tch-strip-name { font: 700 14px/1.25 Evolventa,Jost,sans-serif; text-align: center; overflow-wrap: break-word; }
.tch-strip button[aria-pressed="true"] .tch-strip-img { opacity: 1; box-shadow: 0 0 0 3px #faf4e8, 0 0 0 5px var(--tch-gold); }
.tch-strip button[aria-pressed="true"] .tch-strip-name { color: #7a2238; }
.tch-strip button:hover .tch-strip-img { opacity: 1; }
.tch-stage-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border: 1px solid rgba(126,91,30,.3); background: rgba(255,250,241,.62); }
.tch-stage-photo { touch-action: pan-y; position: sticky; top: 90px; align-self: start; aspect-ratio: 6 / 7; background: linear-gradient(145deg, #0c0a09, #421522); }
.tch-stage-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tch-stage .tch-arrow { top: auto; bottom: 18px; margin: 0; width: 52px; height: 52px; }
.tch-stage .tch-arrow-prev { left: 18px; }
.tch-stage .tch-arrow-next { left: 82px; }
.tch-stage-photo .tch-count { position: absolute; right: 18px; bottom: 30px; color: #f3dc9a; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tch-stage-photo .tch-count b { color: #fff7e6; }
.tch-stage-copy { min-width: 0; display: flex; flex-direction: column; padding: 44px 48px; }
.tch-stage-copy h3 { margin: 0 0 16px; font: 700 clamp(28px, 3vw, 42px)/1.06 Evolventa,Jost,sans-serif; overflow-wrap: break-word; }@media(min-width:1066.67px){.tch-stage-copy h3{font-weight:400}}
.tch-stage-copy h3 em { font-family: Cormorant, serif; font-style: italic; color: #8e621d;font-weight:600 }
.tch-stage-lead { margin: 0; color: #5b5246; font-size: 17px; line-height: 1.6; }
.tch-stage .pair-toggle { margin-top: 10px; }
.tch-stage-more { margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(126,91,30,.25); animation: tch-in .35s ease; }
.tch-stage .pair-panel-text p { color: #4b4237; }
.tch-stage .pair-panel-text strong { color: #1b1510; }
.tch-stage .pair-btn { border-color: rgba(126,91,30,.55); background: transparent; color: var(--tch-bronze); }
.tch-stage .pair-btn:hover { background: #7a2238; border-color: #7a2238; color: #fff7e6; }
.tch-stage .pair-yt { align-items: flex-start; }
.tch-stage .pair-credits { margin: 0 0 4px; color: #7a6d5c; }

@media (max-width: 1000px) {
  .tch-rail .pair-card { flex-basis: calc((100% - 40px) / 2.25); }
  .pair-panel, .pair-panel.is-landscape { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "text" "media" "nav"; padding: 36px 32px 0; }
  .pair-panel-head { padding-right: 150px; margin-bottom: 22px; }
  .pair-panel-nav { margin: 22px -32px 0; }
  .pair-panel-nav button { padding: 18px 32px; }
  .tch-stage-box { grid-template-columns: minmax(0, 1fr); }
  .tch-stage-photo { position: relative; top: auto; aspect-ratio: 4 / 4.2; }
  .tch-stage-copy { padding: 30px 30px 34px; }
}
@media (max-width: 760px) {
  .tch { margin-top: 40px; }
  /* лента до края экрана: справа виден край следующей карточки */
  .tch-rail .tch-view { margin-right: calc(50% - 50vw); }
  .tch-rail .pair-grid { gap: 12px; padding-right: 15px; scroll-padding-left: 0; }
  .tch-rail .pair-card { flex: 0 0 min(78vw, 340px); }
  .tch-arrow { width: 48px; height: 48px; margin-top: -24px; font-size: 20px; }
  .tch-rail .tch-arrow-prev { left: 8px; }
  .tch-rail .tch-arrow-next { right: 12px; }
  .tch-bar { margin-top: 18px; gap: 10px; }
  .tch-thumbs { gap: 8px; }
  .tch-thumbs button { width: 44px; height: 44px; }
  .tch-count { font-size: 12px; }
  .tch-count b { font-size: 19px; }
  .pair-panel, .pair-panel.is-landscape { margin-top: 22px; padding: 26px 20px 0; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
  .pair-panel-head { padding-right: 52px; margin-bottom: 18px; }
  .pair-panel-close { top: 14px; right: 10px; padding: 0 4px; }
  .pair-panel-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pair-panel-close i { width: 40px; height: 40px; }
  .tch .pair-panel-text p { font-size: 16px; }
  .pair-panel-nav { margin: 18px -20px 0; }
  .pair-panel-nav button { padding: 16px 18px; font-size: 14px; }
  .tch-strip { gap: 6px; }
  .tch-strip-name { font-size: 11px; }
  .tch-stage-photo { aspect-ratio: 6 / 7; }
  .tch-stage-copy { padding: 24px 20px 26px; }
  .tch-stage .tch-arrow { width: 46px; height: 46px; bottom: 14px; }
  .tch-stage .tch-arrow-prev { left: 14px; }
  .tch-stage .tch-arrow-next { left: 70px; }
  .tch-stage-lead { font-size: 16px; }
}
@media (max-width: 380px) {
  .tch-thumbs { gap: 6px; }
  .tch-thumbs button { width: 38px; height: 38px; }
  .tch-strip-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pair-panel.is-in, .tch-stage-more { animation: none !important; }
  .tch-arrow, .tch-thumbs button, .tch .pair-toggle i, .tch-strip button, .tch-strip img, .tch .pair-card, .tch .pair-card img, .tch .pair-card-photo img { transition: none !important; }
  .tch .pair-grid { scroll-behavior: auto; }
}
