/* Ролик-отзыв и цитата: страница ИЦ (site.css) и витрины (maker.css). Цвета свои: переменные у двух систем называются по-разному. */
.rv-video-box, .rv-dialog, .ot-full, .ot-dialog { --rv-panel: #1b1a18; --rv-panel-2: #23221f; --rv-line: #3b3934; --rv-line-2: #57544d; --rv-ink: #ecebe7; --rv-ink-2: #b3afa6; --rv-ink-3: #9a958b; --rv-lamp: #f1e4c8; --rv-red: #d81f26; }
.rv-video-box { margin: 0; width: 100%; max-width: 300px; min-width: 0; }
.rv-player { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; background: #000; }
.rv-video { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.rv-play { position: absolute; left: 50%; top: 58%; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(0, 0, 0, .68); color: #fff; cursor: pointer; transition: background-color .2s, transform .2s; }
.rv-play[hidden] { display: none; }
.rv-play svg { width: 34px; height: 34px; }
.rv-play:hover { background: var(--rv-red); transform: scale(1.05); }
.rv-play:focus-visible, .rv-link:focus-visible, .rv-dialog button:focus-visible { outline: 2px solid var(--rv-lamp); outline-offset: 2px; }
.rv-cap { margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--rv-ink-2); text-align: center; }
.rv-cap b { color: var(--rv-ink); font-weight: 700; }
/* Логотипы без рамок и подписей (владелец 03.11). Поля дают зону нажатия 52 px. */
.rv-links { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.rv-links li { margin: 0; }
.rv-link { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 6px; border-radius: 8px; color: var(--rv-ink-2); text-decoration: none; transition: transform .2s; }
.rv-link img { display: block; width: 40px; height: 40px; object-fit: contain; }
/* Оптическая компенсация: при той же ширине 40 px вытянутый знак YouTube ниже квадратных и кажется меньше. Уравниваем по площади: 1600 px² у квадрата. */
.rv-link-youtube img { width: 48px; height: 33px; }
.rv-link:hover { transform: scale(1.1); }
/* Кнопка на витрину в одном ряду с логотипами: заливка панели, без рамки, красный здесь не нужен (это переход, а не заявка). */
.rv-maker { display: flex; align-items: center; height: 44px; margin-left: 4px; padding: 0 14px; border-radius: 8px; background: var(--rv-panel-2); color: var(--rv-ink); font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.rv-maker:hover { background: #2c2a26; }
.rv-maker:focus-visible { outline: 2px solid var(--rv-lamp); outline-offset: 2px; }
/* Instagram — мелкой строкой ниже логотипов: есть, но внимание не забирает (владелец 03.11). */
.rv-ig { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--rv-ink-3); }
.rv-ig a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; color: inherit; text-decoration: none; }
.rv-ig a img { display: block; width: 24px; height: 24px; }
.rv-ig a span { text-decoration: underline; text-decoration-color: var(--rv-line-2); text-underline-offset: 3px; }
.rv-ig button { min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.rv-ig a:hover, .rv-ig button:hover { color: var(--rv-ink); }
.rv-ig a:focus-visible, .rv-ig button:focus-visible { outline: 2px solid var(--rv-lamp); outline-offset: 2px; }

/* Окно с пояснением. На телефоне прижато к верху: снизу экрана панель Яндекс.Браузера. */
.rv-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid var(--rv-line-2); border-radius: 12px; background: var(--rv-panel); color: var(--rv-ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .6); }
.rv-dialog[open] { animation: rv-in .2s cubic-bezier(.25, 1, .5, 1); }
.rv-dialog::backdrop { background: rgba(6, 6, 5, .78); }
@keyframes rv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-dialog[open] { animation: none; } .rv-link:hover, .rv-play:hover { transform: none; } }
.rv-dialog h2 { margin: 0 44px 12px 0; font-size: 21px; line-height: 1.25; color: var(--rv-ink); }
.rv-dialog p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--rv-ink-2); }
.rv-dialog-x { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--rv-ink-2); cursor: pointer; }
.rv-dialog-x svg { width: 16px; height: 16px; }
.rv-dialog-x:hover { background: var(--rv-panel-2); color: var(--rv-ink); }
.rv-dialog-ok { width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid var(--rv-line-2); border-radius: 6px; background: var(--rv-panel-2); color: var(--rv-ink); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: border-color .2s; }
.rv-dialog-ok:hover { border-color: var(--rv-lamp); }

.rv-nb { white-space: nowrap; }

/* Витрина: один ролик по центру. */
.rv-solo { display: grid; justify-items: center; gap: var(--s-5); }
.rv-solo h2 { text-align: center; }

@media (max-width: 760px) {
    /* Ширина даёт высоту 469 px: вместе с шапкой и заголовком плеер целиком выше панели Яндекс.Браузера (628 при 360). */
  .rv-video-box { max-width: none; }
  .rv-player { width: 264px; margin: 0 auto; }
  .rv-solo .rv-video-box { max-width: 328px; }
  .rv-dialog { margin: 72px auto auto; }
}
@media (max-width: 340px) { .rv-player { width: 232px; } }
/* Субтитры: у видео всегда (владелец 03.11). Читаемо на плеере шириной от 208 px. */
video::cue { font-family: "Clear Sans", "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.35; color: #fff; background: rgba(0, 0, 0, .72); }
/* Окно «почему»: низ и кнопка всегда на экране (на маленьком телефоне окно прокручивается внутри). */
@media (max-width: 760px) { .rv-dialog { max-height: calc(100vh - 84px); } }
@media (max-height: 460px) { .rv-dialog { margin: 8px auto auto; max-height: calc(100vh - 16px); padding: 16px; } .rv-player { width: calc((100vh - 24px) * 9 / 16); margin: 0 auto; } }
.rv-media-err { margin: 8px 0 0; font-size: 14px; line-height: 1.4; text-align: center; color: #ff7a7a; }
.rv-player.is-landscape, .ot-player.is-landscape { width: min(100%, 720px); max-width: 100%; aspect-ratio: 16 / 9; }
