.video-page,
.video-landing {
    --v-ink: var(--k-ink, #0b101b);
    --v-text: var(--k-text, #3d4b62);
    --v-muted: var(--k-muted, #68778d);
    --v-line: var(--k-line, #dde3ec);
    --v-soft: var(--k-surface-2, #f5f7fa);
    --v-blue: var(--k-blue, #2266ef);
    --v-navy: var(--k-ink, #0b101b);
    color: var(--v-ink);
}

.video-page__shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 4.5rem;
}

.video-page__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.video-page__eyebrow,
.video-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--brand-alfa-10, rgba(26, 83, 198, .1));
    color: var(--v-blue);
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.video-page__title {
    margin: 0.65rem 0 0;
    font-family: inherit;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.video-page__lead {
    max-width: 38rem;
    margin: 0.8rem 0 0;
    color: var(--v-text);
    font-size: 1rem;
    line-height: 1.65;
}

.video-page__all {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    padding: 0 1rem;
    border: 1px solid var(--v-line);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--v-ink);
    font-size: 0.8125rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}
.video-page__all:hover { border-color: var(--v-blue); color: var(--v-blue); }

.video-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 1.75rem;
}

.video-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--v-line);
    border-radius: 999px;
    background: #fff;
    color: var(--v-text);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.video-chip:hover { border-color: var(--v-blue); color: var(--v-blue); }
.video-chip.is-active { background: var(--v-blue); border-color: var(--v-blue); color: #fff; }
.video-chip__count { color: var(--v-muted); font-size: 0.6875rem; font-weight: 700; }
.video-chip.is-active .video-chip__count { color: rgba(255, 255, 255, .72); }

.video-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 0;
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--v-navy);
    box-shadow: 0 24px 60px -32px rgba(14, 23, 44, .55);
}

.video-hero__media { position: relative; min-height: 360px; background: #060d1c; }
.video-hero__media .video-player { position: absolute; inset: 0; height: auto; min-height: 0; aspect-ratio: auto; border-radius: 0; }

.video-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    color: #fff;
}

.video-hero__copy .video-hero__eyebrow {
    background: rgba(255, 255, 255, .1);
    color: #cbd9f5;
}

.video-hero__title {
    margin: 0.85rem 0 0;
    font-family: inherit;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.video-hero__lead {
    margin: 0.85rem 0 0;
    color: #b9c7df;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.video-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    color: #dbe5f6;
    font-size: 0.6875rem;
    font-weight: 650;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--v-line);
    border-radius: 1.1rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px -22px rgba(14, 23, 44, .35);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.video-card:hover {
    border-color: var(--border-hover, #c5cedc);
    box-shadow: 0 18px 36px -24px rgba(14, 23, 44, .38);
    transform: translateY(-2px);
}
.video-card.is-current {
    border-color: var(--v-blue);
    box-shadow: 0 0 0 3px rgba(26, 83, 198, .12);
}

.video-card__media,
.video-player {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 24% 20%, rgba(53, 102, 210, .5), transparent 42%),
        linear-gradient(135deg, #111d35, #060d1c);
    aspect-ratio: 16 / 9;
}

.video-card__media img,
.video-player__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__media::after,
.video-player::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 28, 0) 42%, rgba(6, 13, 28, .62));
    pointer-events: none;
}

.video-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.video-play__button {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--v-navy);
    box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .55);
    transition: transform .16s ease, background .16s ease;
}
.video-play:hover .video-play__button { transform: scale(1.06); background: #fff; }

.video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #060d1c;
}

.video-duration {
    position: absolute;
    right: .65rem;
    bottom: .65rem;
    z-index: 3;
    padding: .18rem .42rem;
    border-radius: .35rem;
    background: rgba(6, 13, 28, .82);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.video-card__body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.1rem 1.15rem; }
.video-card__meta { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--v-muted); font-size: .6875rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.video-card__title { margin: .45rem 0 0; color: var(--v-ink); font-size: 1.05rem; font-weight: 700; line-height: 1.38; }
.video-card__desc { display: -webkit-box; margin: .4rem 0 0; overflow: hidden; color: var(--v-text); font-size: .8125rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-card__cta { margin-top: auto; padding-top: .8rem; color: var(--v-blue); font-size: .75rem; font-weight: 700; }

.video-empty {
    margin-top: 1.75rem;
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--v-line);
    border-radius: 1.25rem;
    background: var(--v-soft);
    text-align: center;
}
.video-empty i { color: var(--v-muted); font-size: 2rem; }
.video-empty h2 { margin: 1rem 0 0; font-size: 1.15rem; font-weight: 750; }
.video-empty p { max-width: 28rem; margin: .5rem auto 0; color: var(--v-text); font-size: .875rem; line-height: 1.55; }

.video-landing {
    --v-ink: var(--k-ink, #0e172c);
    --v-text: var(--k-text, #3d4b62);
    --v-muted: var(--k-muted, #68778d);
    --v-line: var(--k-line, #dde3ec);
    --v-soft: var(--k-surface-2, #f5f7fa);
    --v-blue: var(--k-blue, #2266ef);
    --v-navy: #0e172c;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    gap: 1rem;
    margin-top: 2.25rem;
}

.video-landing__feature { position: relative; display: block; min-height: 340px; overflow: hidden; border-radius: 1.4rem; background: #0e172c; }
.video-landing__feature .video-player { position: absolute; inset: 0; height: auto; min-height: 0; aspect-ratio: auto; border-radius: 0; }
.video-landing__feature-copy { position: absolute; inset: auto 0 0; z-index: 1; padding: 1.35rem; color: #fff; pointer-events: none; }
.video-landing__feature-copy h3 { margin: .35rem 0 0; font-family: inherit; font-size: 1.25rem; line-height: 1.3; }
.video-landing__feature-copy p { margin: .35rem 0 0; color: #c7d4ea; font-size: .8125rem; line-height: 1.5; }
.video-landing__feature-copy .video-hero__eyebrow { background: rgba(255, 255, 255, .1); color: #cbd9f5; }

.video-landing__list { display: flex; flex-direction: column; gap: .75rem; }
.video-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: .85rem; align-items: center; padding: .6rem; border: 1px solid var(--v-line); border-radius: .9rem; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.video-row:hover { border-color: var(--border-hover, #c5cedc); box-shadow: 0 10px 22px -18px rgba(14, 23, 44, .35); }
.video-row__media { position: relative; overflow: hidden; border-radius: .6rem; background: #0e172c; aspect-ratio: 16 / 10; }
.video-row__media img { width: 100%; height: 100%; object-fit: cover; }
.video-row__media .video-play__button { width: 2.1rem; height: 2.1rem; font-size: .7rem; }
.video-row__title { display: block; margin: 0; color: var(--v-ink); font-size: .875rem; font-weight: 700; line-height: 1.4; }
.video-row__meta { display: block; margin-bottom: .3rem; color: var(--v-muted); font-size: .6875rem; font-weight: 650; }

@media (max-width: 980px) {
    .video-hero, .video-landing { grid-template-columns: 1fr; }
    .video-hero__media, .video-landing__feature { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
    .video-page__shell { width: min(100% - 1.25rem, 1180px); padding-top: 1.5rem; }
    .video-page__head { align-items: flex-start; flex-direction: column; gap: .9rem; }
    .video-grid { grid-template-columns: 1fr; gap: .9rem; }
    .video-row { grid-template-columns: 104px minmax(0, 1fr); }
    /* Без пропорций: min-height вместе с aspect-ratio 16/9 растягивал блок до 444px в ширину,
       и на телефоне появлялась прокрутка страницы вбок. */
    .video-landing__feature { width: 100%; aspect-ratio: auto; min-height: max(250px, 52vw); }
}
