/* AVE Design Studio — карточка «Предложите тему для видео» в сетке /video/.
   Карточка всегда последняя в сетке и добирает остаток последнего ряда: --vd-s5/4/3/2 = колонки − (роликов на странице % колонки),
   их считает video/index.php. Остаток в одну ячейку — обычная карточка; две и больше (или пустой ряд) — горизонтальный баннер. */

.vd-cta { grid-column: span var(--vd-s4, 1); container-type: inline-size; }
@media (min-width: 1600px) { .vd-cta { grid-column: span var(--vd-s5, 1); } }
@media (max-width: 1199px) { .vd-cta { grid-column: span var(--vd-s3, 1); } }
@media (max-width: 991px) { .vd-cta { grid-column: span var(--vd-s2, 1); } }
@media (max-width: 575px) { .vd-cta { grid-column: auto; } }

.vd-cta__in { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid rgba(200, 0, 0, .28); border-radius: var(--bl-radius); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.vd-cta__in:hover { border-color: rgba(200, 0, 0, .5); box-shadow: 0 18px 44px rgba(200, 0, 0, .14); transform: translateY(-3px); }

.vd-cta__vis { position: relative; display: flex; flex: none; flex-direction: column; justify-content: space-between; gap: 10px; aspect-ratio: 16 / 9; padding: 14px 16px; overflow: hidden; color: #fff;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(150deg, #d70f0f 0%, #b00000 55%, #860000 100%); }
.vd-cta__vis::after { content: ''; position: absolute; right: -18px; bottom: -26px; width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 18px rgba(255, 255, 255, .07), 0 0 0 40px rgba(255, 255, 255, .04); pointer-events: none; }
.vd-cta__ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 2px rgba(255, 255, 255, .55) inset; transition: transform .2s; }
.vd-cta__ico svg { width: 22px; height: 22px; }
.vd-cta__in:hover .vd-cta__ico { transform: scale(1.06); }
.vd-cta__kicker { position: absolute; top: 18px; right: 16px; left: 72px; color: rgba(255, 255, 255, .8); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-align: right; text-transform: uppercase; }
.vd-cta__title { position: relative; z-index: 1; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; text-wrap: balance; }

.vd-cta__b { gap: 8px; }
.vd-cta__text { color: var(--bl-text); font-size: 13px; line-height: 1.45; }
.vd-cta__btn { margin-top: auto; padding: 0; border: 0; background: none; color: var(--bl-red); font: 800 13px/1.3 'Open Sans', Arial, sans-serif; text-align: left; cursor: pointer; }
.vd-cta__btn::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: var(--bl-radius); }
.vd-cta__btn::after { content: ' →'; }
.vd-cta__btn:focus { outline: none; }
.vd-cta__btn:focus-visible::before { outline: 2px solid var(--bl-red); outline-offset: 3px; }
.vd-cta__in:hover .vd-cta__btn { color: var(--bl-red-dark); }

/* остаток ряда в 2+ колонки или целый ряд: горизонтальный баннер */
@container (min-width: 440px) {
    .vd-cta__in { flex-direction: row; }
    .vd-cta__vis { width: min(44%, 400px); aspect-ratio: auto; min-height: 168px; padding: 20px 22px; }
    .vd-cta__title { font-size: 20px; }
    .vd-cta__b { justify-content: center; gap: 12px; padding: 20px 26px; }
    .vd-cta__text { max-width: 46ch; font-size: 15px; line-height: 1.5; }
    .vd-cta__btn { align-self: flex-start; margin-top: 4px; padding: 12px 22px; border-radius: 10px; background: var(--bl-red); color: #fff; font-size: 14px; box-shadow: 0 10px 24px rgba(200, 0, 0, .22); transition: background-color .2s; }
    .vd-cta__in:hover .vd-cta__btn { background: var(--bl-red-dark); color: #fff; }
}
@container (min-width: 860px) {
    .vd-cta__b { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 20px 36px; }
    .vd-cta__text { font-size: 16px; }
    .vd-cta__btn { flex: none; align-self: center; margin-top: 0; padding: 14px 26px; font-size: 15px; }
}

@media (max-width: 767px) {
    .vd-cta__vis { padding: 12px 14px; }
    .vd-cta__ico { width: 38px; height: 38px; }
    .vd-cta__title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .vd-cta__in, .vd-cta__ico { transition: none; }
}
