/* Страница /otzyvy/ — видео и текстовые отзывы клиентов и учеников */
.ot-nav{position:relative;background:#fff;border-bottom:1px solid #eee;padding:14px 0}
.ot-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ot-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border:1px solid #ddd;border-radius:999px;background:#fff;color:#222;font-size:15px;line-height:1.2;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.ot-chip span{font-size:12px;color:#888}
.ot-chip:hover{border-color:#c80000;color:#c80000}
.ot-chip[aria-pressed="true"]{background:#c80000;border-color:#c80000;color:#fff}
.ot-chip[aria-pressed="true"] span{color:rgba(255,255,255,.8)}

.ot-sec{padding:56px 0 40px}
.ot-sec--soft{background:#f6f6f7}
.ot-sec[hidden]{display:none}
.ot-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin-bottom:28px}
.ot-head h2{margin:0;font-size:30px;line-height:1.2}
.ot-head p{margin:0;color:#666;font-size:15px;max-width:640px}

.ot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
@media(max-width:991px){.ot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){.ot-grid{grid-template-columns:1fr}}

.ot-card{display:flex;flex-direction:column;background:#fff;border:1px solid #ececec;border-radius:16px;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.ot-sec--soft .ot-card{border-color:#e6e6e8}
.ot-card[hidden]{display:none}

/* Медиа: кружок, вертикальное и горизонтальное видео */
.ot-media{position:relative;margin:0 auto 18px;cursor:pointer;background:#111;overflow:hidden;border:0;padding:0;display:block}
.ot-media video,.ot-media img{display:block;width:100%;height:100%;object-fit:cover}
.ot-media--circle{width:240px;height:240px;border-radius:50%;box-shadow:0 0 0 4px #fff,0 0 0 5px #e3e3e3}
.ot-media--v{width:100%;max-width:300px;aspect-ratio:9/16;border-radius:14px}
.ot-media--h{width:100%;aspect-ratio:16/9;border-radius:14px}
.ot-play{position:absolute;left:50%;top:50%;width:62px;height:62px;margin:-31px 0 0 -31px;border-radius:50%;background:rgba(200,0,0,.92);display:flex;align-items:center;justify-content:center;transition:transform .2s,opacity .2s;pointer-events:none}
.ot-play::before{content:"";margin-left:5px;border-style:solid;border-width:11px 0 11px 18px;border-color:transparent transparent transparent #fff}
.ot-media:hover .ot-play{transform:scale(1.08)}
.ot-media.is-playing .ot-play{opacity:0}
.ot-dur{position:absolute;right:10px;bottom:10px;padding:2px 8px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;line-height:18px;pointer-events:none}
.ot-media--circle .ot-dur{right:50%;transform:translateX(50%);bottom:14px}
.ot-media.is-playing .ot-dur{opacity:0}
.ot-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.25);opacity:0;transition:opacity .2s}
.ot-bar i{display:block;height:100%;width:0;background:#c80000}
.ot-media.is-playing .ot-bar{opacity:1}
.ot-media--circle .ot-bar{display:none}
.ot-media:focus-visible{outline:3px solid #c80000;outline-offset:4px}

.ot-who{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.ot-who img{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none}
.ot-who b{display:block;font-size:17px;line-height:1.25;color:#111}
.ot-who small{display:block;font-size:13px;line-height:1.35;color:#777;margin-top:2px}
.ot-tag{display:inline-block;align-self:flex-start;margin-bottom:10px;padding:3px 10px;border-radius:999px;background:#fbeaea;color:#a00000;font-size:12px;line-height:18px}
.ot-q{margin:0 0 12px;font-size:16px;line-height:1.55;color:#222}
.ot-q::before{content:"«"}.ot-q::after{content:"»"}
.ot-more{margin-top:auto}
.ot-more summary{cursor:pointer;color:#c80000;font-size:14px;list-style:none}
.ot-more summary::-webkit-details-marker{display:none}
.ot-more summary::after{content:" ↓"}
.ot-more[open] summary::after{content:" ↑"}
.ot-more p{margin:10px 0 0;font-size:14px;line-height:1.6;color:#444}
.ot-link{display:inline-block;margin-top:12px;font-size:14px;color:#111;border-bottom:1px solid #c80000;text-decoration:none}
.ot-link:hover{color:#c80000;text-decoration:none}
.ot-date{display:block;margin-top:10px;font-size:12px;color:#999}

/* Лента сторис */
.ot-stories{display:grid;grid-auto-flow:column;grid-auto-columns:200px;gap:16px;overflow-x:auto;padding:4px 2px 16px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.ot-stories .ot-media{margin:0;width:200px;max-width:none;scroll-snap-align:start}
.ot-stories figure{margin:0}
.ot-stories figcaption{margin-top:8px;font-size:13px;color:#666;text-align:center}

.ot-tg{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:36px;padding:22px 26px;border-radius:16px;background:#111;color:#fff}
.ot-tg p{margin:0;font-size:17px;line-height:1.45}
.ot-tg a{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:999px;background:#c80000;color:#fff;font-weight:600;text-decoration:none;white-space:nowrap}
.ot-tg a:hover{background:#a00000;color:#fff;text-decoration:none}

@media(max-width:599px){
  .ot-sec{padding:40px 0 28px}
  .ot-head h2{font-size:24px}
  .ot-media--circle{width:220px;height:220px}
  .ot-media--v{max-width:230px}
  .ot-nav{padding:10px 0}
  .ot-chips{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding-bottom:2px}
  .ot-chip{flex:none;font-size:14px;padding:7px 13px}
}
