/* Кольцо отзывов (главная, страница ИЦ). Два вида, выбирает otzyvy-ring.js по ширине блока:
   узкий — дуга над текстом (телефон, планшет, ПК с колонкой рекламы), широкий — дуга вокруг текста. */
.ot, .ot-dialog { --ot-panel: #1b1a18; --ot-panel-2: #23221f; --ot-line: #3b3934; --ot-line-2: #57544d; --ot-ink: #ecebe7; --ot-ink-2: #b3afa6; --ot-lamp: #f1e4c8; }
main > section.ot { padding: var(--s-6, 32px) 0; overflow: hidden; overflow: clip; }
@media (min-width: 761px) { main > section.ot { padding: var(--s-8, 64px) 0; } }
.ot-stage { position: relative; height: 560px; overflow: hidden; overflow: clip; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ot-arc { position: absolute; left: 50%; border: 1px solid rgba(241, 228, 200, .22); border-radius: 50%; pointer-events: none; -webkit-mask-image: linear-gradient(#000 var(--ot-fade-a, 34%), transparent var(--ot-fade-b, 62%)); mask-image: linear-gradient(#000 var(--ot-fade-a, 34%), transparent var(--ot-fade-b, 62%)); }
.ot-cards { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; visibility: hidden; }
.ot.is-ready .ot-cards { visibility: visible; }
/* Низ кольца растворяется в фоне, карточки не обрываются линией. */
.ot.is-wide.is-movable .ot-cards { -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent 100%); mask-image: linear-gradient(#000 calc(100% - 140px), transparent 100%); }
.ot-item { position: absolute; left: 50%; top: 0; width: var(--ot-card-w, 132px); height: var(--ot-card-h, 176px); margin: 0; }
.ot-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--ot-line-2); border-radius: 12px; background: var(--ot-panel); color: var(--ot-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; touch-action: pan-y; }
.ot-card:hover { border-color: var(--ot-lamp); transform: scale(1.04); }
.ot-card:focus-visible { outline: 2px solid var(--ot-lamp); outline-offset: 2px; }
.ot-card-pic { position: relative; display: block; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #000; }
.ot-card-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; pointer-events: none; }
/* Значок запуска на груди, лицо свободно. */
.ot-card-play { position: absolute; left: 50%; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -20px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(0, 0, 0, .68); color: #fff; }
.ot-card-play svg { width: 20px; height: 20px; }
/* Текст и аудио: всё содержимое по центру карточки, поля равные со всех сторон. У ролика подпись отдельной строкой под кадром. */
.ot-type-text, .ot-type-audio { align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center; }
.ot-card-text { display: -webkit-box; flex: 0 1 auto; width: 100%; min-height: 0; overflow-wrap: break-word; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: 14px; line-height: 1.35; }
.ot.is-wide .ot-card-text { -webkit-line-clamp: 7; }
.ot-card-audio { display: flex; align-items: center; justify-content: center; color: var(--ot-lamp); }
.ot-card-audio svg { width: 44px; height: 44px; }
.ot-card-kind { font-size: 14px; color: var(--ot-ink); }
.ot-card-author { display: -webkit-box; flex: 0 0 auto; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ot-ink-2); }
.ot-type-video .ot-card-author, .ot-type-photo .ot-card-author { padding: 7px 14px 9px; text-align: center; }

/* Центр: логотип, девиз, УТП. Узкий вид — в потоке под дугой, верх задаёт скрипт. */
.ot-center { position: absolute; left: 50%; top: var(--ot-center-top, 220px); width: min(var(--ot-center-w, 328px), calc(100% - 32px)); transform: translateX(-50%); text-align: center; }
.ot-logo { display: block; width: 64px; height: 64px; margin: 0 auto 8px; }
/* «Отзывы» бьётся как настоящее сердце (владелец 03.11, «реалистичнее»). Ритм покоя 60 ударов в минуту, цикл 1 с:
   первый тон сильный и резкий, через 0,3 с второй, короткий и слабее, дальше пауза вдвое длиннее удара.
   Подъём быстрый, спад медленный. Свет идёт волной чуть позже удара и гаснет дольше, как пульс под кожей.
   Размах 5 %: двигается только слово, большое движение у владельца вызывало головокружение. Анимируются только transform и opacity. */
.ot-kicker { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--ot-ink); }
.ot-kicker span { position: relative; display: inline-block; animation: ot-heart 1s linear infinite; }
.ot-kicker span::before { content: ""; position: absolute; inset: -12px -26px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 31, 38, .6), transparent); opacity: 0; animation: ot-heart-glow 1s linear infinite; pointer-events: none; }
@keyframes ot-heart {
  0% { transform: scale(1); animation-timing-function: cubic-bezier(.2, 0, .3, 1); }
  7% { transform: scale(1.05); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  22% { transform: scale(.995); animation-timing-function: cubic-bezier(.2, 0, .3, 1); }
  30% { transform: scale(1.028); animation-timing-function: cubic-bezier(.3, 0, .5, 1); }
  50%, 100% { transform: scale(1); }
}
@keyframes ot-heart-glow {
  0% { opacity: .04; transform: scale(.92); animation-timing-function: cubic-bezier(.2, 0, .3, 1); }
  10% { opacity: .9; transform: scale(1.02); animation-timing-function: ease-out; }
  26% { opacity: .38; transform: scale(1.04); animation-timing-function: cubic-bezier(.2, 0, .3, 1); }
  34% { opacity: .62; transform: scale(1.08); animation-timing-function: ease-out; }
  85%, 100% { opacity: .04; transform: scale(.92); }
}
.ot.is-off .ot-kicker span, .ot.is-off .ot-kicker span::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ot-kicker span, .ot-kicker span::before { animation: none; } }
.ot-center h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.18; color: var(--ot-ink); }
.ot-usp { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ot-ink-2); text-wrap: pretty; }
.ot.is-wide .ot-center h2 { font-size: 30px; }
.ot.is-wide .ot-usp { font-size: 17px; }

/* Стрелки внутри сцены. Широкий вид: под текстом. Узкий: по бокам логотипа, чтобы остаться выше панели Яндекса. Положение по высоте задаёт скрипт. */
.ot-nav { position: absolute; left: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; transform: translateX(-50%); }
.ot:not(.is-wide) .ot-nav { width: 240px; max-width: calc(100% - 24px); height: 64px; justify-content: space-between; pointer-events: none; }
.ot:not(.is-wide) .ot-nav .ot-arrow { pointer-events: auto; }
.ot:not(.is-wide) .ot-nav .ot-count { display: none; }
.ot-kcount { display: none; margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--ot-ink-2); font-variant-numeric: tabular-nums; }
.ot:not(.is-wide).is-movable .ot-kcount { display: inline; }
.ot-nav[hidden] { display: none; }
.ot-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--ot-panel-2); color: var(--ot-ink); cursor: pointer; transition: background-color .2s; }
.ot-arrow svg { width: 16px; height: 16px; }
.ot-arrow:hover { background: #2c2a26; }
.ot-arrow:focus-visible { outline: 2px solid var(--ot-lamp); outline-offset: 2px; }
.ot-count { min-width: 64px; font-size: 14px; color: var(--ot-ink-2); text-align: center; font-variant-numeric: tabular-nums; }

/* Окно отзыва как просмотрщик новостей (владелец 03.11, скрин 6): на весь экран, стрелки по бокам и счётчик сверху, классы те же (site-media.css).
   Высоты на телефоне в абсолютных числах: низ обязан быть выше 616 px (панель Яндекс.Браузера, 628 при ширине 360). */
.ot-full { display: none; }
/* margin: auto центрует, пока есть место, а при длинном тексте начало остаётся доступным: flex-центровка увела бы его выше начала прокрутки. */
.ot-dialog .ot-full { display: flex; flex-direction: column; align-items: center; width: 100%; margin: auto; }
.ot-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--ot-ink); }
.ot-dialog[open] { animation: ot-in .18s ease-out; }
.ot-dialog::backdrop { background: rgba(0, 0, 0, .96); }
@keyframes ot-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ot-dialog[open] { animation: none; } .ot-card, .ot-card:hover { transition: none; transform: none; } }
.ot-dialog [hidden] { display: none; }
.ot-dcount { font-variant-numeric: tabular-nums; }
.ot-dialog-x { z-index: 1003; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; } /* Над содержимым окна: иначе крестик не нажимается. */
.ot-dialog-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 52px 72px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
/* В окне поверх страницы полосы прокрутки нет вовсе (замечание владельца 13.11.2026): длинный текст листается пальцем и колесом. */
.ot-dialog-body::-webkit-scrollbar { display: none; }
.ot-player { width: calc(var(--ot-video-h, 380px) * 9 / 16); max-width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: #000; flex: 0 0 auto; }
.ot-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ot-audio { display: block; width: min(100%, 440px); margin: 12px 0; }
.ot-full-title { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.35; text-align: center; color: var(--ot-ink); }
.ot-dialog .ot-full[data-type="text"] { align-items: stretch; width: min(100%, 560px); padding: 20px; border: 1px solid var(--ot-line-2); border-radius: 12px; background: var(--ot-panel); }
.ot-quote { margin: 0; padding: 0; border: 0; }
.ot-quote p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: var(--ot-ink); text-wrap: pretty; }
.ot-quote::before { content: "\201C"; display: block; height: 28px; margin: -4px 0 6px; font: 700 56px/1 Georgia, "Times New Roman", serif; color: var(--ot-lamp); }
.ot-quote ol { margin: 0 0 12px; padding: 0 0 0 26px; }
.ot-quote li { margin: 0 0 8px; padding-left: 4px; font-size: 17px; line-height: 1.55; color: var(--ot-ink); text-wrap: pretty; }
.ot-quote li::marker { font-weight: 700; color: var(--ot-lamp); }
.ot-by { padding-top: 12px; border-top: 1px solid var(--ot-line); }
.ot-sign { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ot-ink-2); }
.ot-about { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ot-ink-2); text-wrap: pretty; }
.ot-dialog .rv-links { margin-top: 4px; }
/* Фото: увеличение бегунком, колесом, двойным нажатием и щипком, перетаскивание увеличенного. */
.ot-zoom { position: relative; width: 100%; height: var(--ot-photo-h, 360px); overflow: hidden; touch-action: none; cursor: zoom-in; }
.ot-zoom.is-zoomed { cursor: grab; }
.ot-zoom.is-drag { cursor: grabbing; }
.ot-zoom img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.ot-zoom-controls { margin-top: 12px; color: var(--ot-ink); }
.ot-zoom-hint { max-width: 480px; margin: 8px 0 0; font-size: 13px; line-height: 1.4; text-align: center; color: var(--ot-ink-2); }
@media (min-width: 761px) { .ot-dialog { --ot-video-h: min(600px, calc(100vh - 230px)); --ot-photo-h: calc(100vh - 230px); } }
@media (max-width: 760px) {
  /* Нижнее поле от абсолюта: низ длинного текста обязан доехать выше 616 px и в модели «панель поверх окна». */
  .ot-dialog-body { padding: 52px 8px max(12px, calc(100vh - 616px)); }
  .ot-dialog .ot-full { margin: 0 auto auto; }
  /* Текст на всю ширину: стрелки уходят наверх, к счётчику, иначе лежат на словах. */
  .ot-dialog.is-text .doc-zoom-nav { top: 32px; }
  .ot-dialog.is-text .doc-zoom-next { right: 72px; }
  .ot-dialog.is-text .ot-dialog-body { padding-top: 66px; }
  .ot-dialog.is-text .ot-quote p, .ot-dialog.is-text .ot-quote li { font-size: 16px; line-height: 1.5; }
  .ot-about { font-size: 13px; }
}
/* Маленький телефон (320×568) и телефон боком: окно реально низкое, ролик ужимаем, чтобы ссылки остались видны. */
@media (max-width: 760px) and (max-height: 620px) { .ot-dialog { --ot-video-h: 316px; --ot-photo-h: 260px; } }
/* Телефон боком: ролик слева на всю высоту, название и ссылки справа. Плеер шире, и субтитры не поднимаются на лицо. */
@media (max-height: 460px) {
  .ot-dialog { --ot-video-h: calc(100vh - 60px); --ot-photo-h: 200px; }
  .ot-dialog-body { padding: 48px 72px 8px; }
  .ot-dialog .ot-full[data-type="video"] { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 20px; justify-items: start; align-items: start; }
  .ot-dialog .ot-full[data-type="video"] .ot-player { grid-row: 1 / -1; }
  .ot-dialog .ot-full[data-type="video"] .ot-full-title { text-align: left; }
  .ot-dialog .ot-full[data-type="video"] .rv-links { justify-content: flex-start; }
  .ot-dialog .ot-full[data-type="video"] .rv-ig { justify-content: flex-start; }
  .ot-dialog video::cue { font-size: 12px; }
}
/* Узкий телефон: длинное слово «Представители» не должно упираться в край карточки. */
@media (max-width: 350px) { .ot-type-text, .ot-type-audio { padding: 10px; } .ot-card-text { font-size: 12.5px; } .ot-card-author { font-size: 12px; } }
