/* ---- видео-отзывы: карточки 9:16, окно просмотра ---- */
.hb-vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hb-vgrid .hb-video { position: relative; display: block !important; height: auto !important; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #DCDCDC; color: #FFFFFF; text-decoration: none; padding: 0 !important; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hb-vgrid .hb-video:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.hb-vgrid .hb-video:focus-visible { outline: 3px solid #F87400; outline-offset: 3px; }
.hb-vgrid .hb-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-vgrid .hb-video::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72)); pointer-events: none; }
.hb-video-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: #F87400; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(248, 116, 0, 0.45); transition: transform 0.2s ease; }
.hb-video-play svg { margin-left: 3px; }
.hb-vgrid .hb-video:hover .hb-video-play { transform: scale(1.08); }
.hb-video-cap { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.hb-video-cap strong { font-size: 16px; font-weight: 600; line-height: 1.25; color: #FFFFFF; }
.hb-video-cap small { font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.hb-vgrid:not(.is-open) .hb-video[data-extra] { display: none !important; }
.hb-vmore { align-self: center; min-height: 54px; padding: 0 30px; border-radius: 999px; border: 1.5px solid #D9CFC5; background: #FFFFFF; color: #212121; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.hb-vmore:hover { border-color: #F87400; color: #F87400; }
.hb-vmore[hidden] { display: none; }
dialog.hb-vmodal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
dialog.hb-vmodal::backdrop { background: rgba(10, 8, 6, 0.86); backdrop-filter: blur(6px); }
.hb-vmodal-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hb-vmodal video { display: block; max-width: min(100%, 460px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); width: auto; height: auto; border-radius: 22px; background: #000000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.hb-vmodal iframe.hb-vmodal-yt { display: block; border: 0; width: min(100%, 420px); height: min(calc(100vh - 40px), 746px); height: min(calc(100dvh - 40px), 746px); aspect-ratio: 9 / 16; border-radius: 22px; background: #000000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.hb-vmodal-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hb-vmodal-close:hover { background: #F87400; }
.hb-vmodal-close:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
@media (max-width: 1100px) { .hb-vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hb-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hb-vgrid .hb-video { border-radius: 20px; }
  .hb-video-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .hb-video-cap { left: 12px; right: 12px; bottom: 12px; }
  .hb-video-cap strong { font-size: 14px; }
  .hb-vmodal-in { padding: 0; }
  .hb-vmodal video { max-width: 100%; border-radius: 0; max-height: 100dvh; }
  .hb-vmodal iframe.hb-vmodal-yt { width: 100%; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
}
