/* Video: the page header every page has, then the clips one under another at the homepage width.
   A client name over each tile, nothing else. The tile is the poster with the site's card corners;
   the modal is the site's black with the native player, no chrome of our own beyond a close button. */
.hero.plain{padding:96px 0 104px}
.hero.plain .lead{margin-top:14px}
.vd{padding:72px 0 140px}
.vd-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:56px}
.vd-item{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.vd-name{display:block;font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);margin:0 0 14px}   /* the site's eyebrow */
.vd-thumb{position:relative;display:block;border-radius:14px;overflow:hidden;background:var(--block)}
.vd-thumb img{display:block;width:100%;height:auto;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.vd-item:hover .vd-thumb img{transform:scale(1.02)}
.vd-play{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(255,255,255,.92);color:#000;display:grid;place-items:center;transition:transform .25s,background .25s}
.vd-play::after{content:"";display:block;width:0;height:0;margin-left:5px;border-style:solid;border-width:11px 0 11px 19px;border-color:transparent transparent transparent currentColor}
.vd-item:hover .vd-play{transform:scale(1.06);background:#fff}
.vd-item:focus-visible{outline:2px solid var(--accent);outline-offset:6px;border-radius:14px}
/* the modal: black, the clip as large as the screen allows, a close button in the corner */
.vd-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:#000;opacity:0;transition:opacity .25s}
.vd-modal[hidden]{display:none}   /* иначе display:grid перебивает атрибут hidden, и невидимое окно лежит поверх страницы и ловит все нажатия */
.vd-modal.open{opacity:1}
.vd-modal video{display:block;width:100vw;height:100vh;max-width:100%;object-fit:contain;background:#000;outline:0}
.vd-close{position:absolute;top:20px;right:20px;z-index:2;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;transition:background .2s}
.vd-close:hover{background:rgba(255,255,255,.22)}
.vd-close svg{width:28px;height:28px;display:block}
@media (max-width:640px){
  .vd{padding:48px 0 96px}
  .vd-list{gap:40px}
  .vd-thumb{border-radius:12px}
  .vd-play{width:52px;height:52px;margin:-26px 0 0 -26px}
  .vd-play::after{border-width:9px 0 9px 15px;margin-left:4px}
  .vd-close{top:12px;right:12px}
}
@media (prefers-reduced-motion:reduce){.vd-thumb img,.vd-play,.vd-modal{transition:none}}

/* заголовок и список клиентов: text-wrap:balance из base.css ломал строку раньше, чем кончалось место */
.hero.plain h1,.hero.plain .lead{text-wrap:wrap}
