

/* Start:/local/templates/vsestroy74-2.0/components/bitrix/news.list/video/style.css?179632594711362*/
/* Видео-карточки, вариант A «Лента» (04.12.2026): обложка целиком, на кадре только длительность,
   название и «рубрика · дата» — под кадром. Общий css/style.css Люксар задаёт для .vs-vreview / .vs-short
   текст поверх кадра, градиент и увеличение при наведении — здесь это перекрыто (двойные классы — чтобы
   не зависеть от порядка подключения файлов). */

/* Токены: текстовый акцент (рубрика, наведение, «Все видео →») читается на обоих фонах. */
.vs-vreviews, .vs-shorts, .vs-offer-videos, .vs-section:has(.vs-video-card) { --accent-text: #F9A11B; }
html[data-theme=light] .vs-vreviews, html[data-theme=light] .vs-shorts,
html[data-theme=light] .vs-offer-videos, html[data-theme=light] .vs-section:has(.vs-video-card) { --accent-text: #9A5600; }
.vs-section:has(.vs-video-card) .vs-section__head .vs-more-link { color: var(--accent-text); }

/* ---------- Сетки ---------- */
.vs-vreviews.vs-vreviews, .vs-shorts.vs-shorts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: start;
    gap: 28px 20px;
    overflow: visible;
}
/* видео-блог и «Ещё видео»: 3 / 2 / 1 */
.vs-vreviews.vs-vreviews--blog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
/* вертикальные: 5 в ряд; ровно 4 (корень видео-блога) — 4 в ряд */
.vs-shorts.vs-shorts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; }
.vs-shorts.vs-shorts:has(> .vs-video-card:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
    .vs-vreviews.vs-vreviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs-vreviews.vs-vreviews--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs-shorts.vs-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .vs-vreviews.vs-vreviews--blog { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .vs-shorts.vs-shorts, .vs-shorts.vs-shorts:has(> .vs-video-card:nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }
    /* подборки на главной, технологиях, в каталоге: карусель, край следующей карточки виден */
    .vs-vreviews.vs-vreviews:not(.vs-vreviews--blog):not(.vs-vreviews--clips) {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        gap: 14px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        /* поля — чтобы обводка фокуса не обрезалась краем прокрутки */
        padding: 4px 4px 8px;
        scroll-padding-inline: 4px;
        scrollbar-width: none;
    }
    .vs-vreviews.vs-vreviews:not(.vs-vreviews--blog):not(.vs-vreviews--clips)::-webkit-scrollbar { display: none; }
    .vs-vreviews:not(.vs-vreviews--blog):not(.vs-vreviews--clips) > .vs-video-card { scroll-snap-align: start; }
}

/* ---------- Карточка ---------- */
.vs-video-card.vs-vreview, .vs-video-card.vs-short {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-width: 0;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    color: var(--text);
    text-decoration: none;
    transform: none;
}
.vs-video-card.vs-video-card::before, .vs-video-card.vs-video-card::after { content: none; }
.vs-video-card.vs-video-card:hover { transform: none; box-shadow: none; }
.vs-video-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 12px; }

.vs-video-card .vs-video-card__poster {
    display: block;
    position: relative;
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #101419;
}
.vs-video-card.vs-video-card .vs-video-card__poster img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: none;
    filter: none;
    opacity: 1;
    transition: none;
}
/* без увеличения кадра при наведении */
.vs-video-card.vs-video-card:hover .vs-video-card__poster img,
.vs-video-card.vs-video-card:focus-visible .vs-video-card__poster img { transform: none; filter: none; }

/* ▶ — только при наведении и фокусе */
.vs-video-card .vs-video-card__play {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: #F9A11B;
    color: #131109;
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}
.vs-video-card .vs-video-card__play svg { margin-left: 3px; }
.vs-video-card:hover .vs-video-card__play, .vs-video-card:focus-visible .vs-video-card__play { opacity: 1; }

/* длительность — плашка в правом нижнем углу кадра, одинаковая в обеих темах */
.vs-video-card .vs-video-card__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(10, 12, 15, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.vs-video-card .vs-video-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 0 2px;
}
.vs-video-card .vs-video-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: color .18s ease;
}
.vs-video-card:hover .vs-video-card__title, .vs-video-card:focus-visible .vs-video-card__title { color: var(--accent-text); }
.vs-video-card .vs-video-card__sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.vs-video-card .vs-video-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}
.vs-video-card .vs-video-card__section { color: var(--accent-text); font-weight: 600; }
.vs-video-card .vs-video-card__section + time::before { content: "·"; margin-right: 6px; color: var(--muted); }

/* ---------- Короткие (вертикальные) ---------- */
.vs-video-card.vs-video-card--vertical .vs-video-card__poster { aspect-ratio: 9 / 16; }
.vs-video-card.vs-video-card--vertical .vs-video-card__poster img { object-fit: cover; }
.vs-video-card--vertical .vs-video-card__title { font-size: 14px; line-height: 1.35; }
/* горизонтальная обложка короткого ролика: кадр целиком на размытой копии */
.vs-video-card .vs-video-card__backdrop {
    position: absolute;
    inset: -24px;
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(.55);
}
.vs-video-card.vs-video-card--widecover .vs-video-card__poster img { object-fit: contain; }

/* ---------- Спецпредложения: полные выпуски и короткие видео ---------- */
.vs-offer-videos { display: grid; gap: 28px; }
.vs-offer-videos__group { min-width: 0; }
.vs-offer-videos h3.vs-offer-videos__heading {
    margin: 0 0 14px;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--muted);
}
.vs-vreviews.vs-vreviews--clips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 1024px) {
    .vs-offer-videos--mixed {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
        gap: clamp(26px, 3vw, 48px);
    }
    .vs-offer-videos--mixed .vs-offer-videos__group--episodes .vs-vreviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs-offer-videos--mixed .vs-offer-videos__group--clips {
        padding-left: clamp(18px, 2vw, 30px);
        border-left: 1px solid var(--stroke);
    }
    .vs-offer-videos--mixed .vs-vreviews.vs-vreviews--clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .vs-vreviews.vs-vreviews--clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* ---------- Раздел видео-блога /about/video/ (итерация 3) ----------
   Только внутри .vs-videos-page (list.php), общий css/style.css Люксар не меняется. Тройные классы — чтобы
   перебить правила Люксар без !important независимо от порядка подключения. */

/* Телефон: hero низкий (≤ ~220 px вместо min-height 380), чтобы первый ролик был ближе к первому экрану. */
@media (max-width: 760px) {
    .vs-videos-page .vs-svc-hero.vs-art-hero {
        position: relative;
        overflow: hidden;
        min-height: 0;
        height: auto;
        padding: 0;
    }
    /* картинка и вуаль — фоном, высоту задаёт текст */
    .vs-videos-page .vs-svc-hero.vs-art-hero .vs-svc-hero__img,
    .vs-videos-page .vs-svc-hero.vs-art-hero .vs-svc-hero__veil {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    .vs-videos-page .vs-svc-hero.vs-art-hero .vs-svc-hero__img { object-fit: cover; }
    .vs-videos-page .vs-svc-hero.vs-art-hero .vs-svc-hero__inner {
        position: relative;
        z-index: 1;
        min-height: 0;
        height: auto;
        padding: 20px 18px;
        gap: 14px;
        justify-content: flex-end;
    }
    .vs-videos-page .vs-svc-hero.vs-art-hero .vs-svc-hero__title {
        margin: 0;
        font-size: 30px;
        line-height: 1.1;
    }
    .vs-videos-page .vs-svc-hero.vs-art-hero .vs-svc-hero__lead {
        margin: 6px 0 0;
        font-size: 14px;
        line-height: 1.4;
    }
    .vs-videos-page .vs-svc-hero.vs-art-hero .vs-btn-accent {
        width: auto;
        min-height: 40px;
        padding: 10px 18px;
        font-size: 12px;
    }
}

/* Плашка «Мы на Rutube»: картинка убрана — текст и кнопка на всю ширину, без пустой колонки. */
.vs-videos-page .vs-section.vs-rutube {
    display: block;
    min-height: 0;
}
.vs-videos-page .vs-section.vs-rutube .vs-rutube__text { max-width: 720px; }

/* End */
/* /local/templates/vsestroy74-2.0/components/bitrix/news.list/video/style.css?179632594711362 */
