#rutube-video {
    width: 100%; /* Видео будет занимать 100% доступной ширины */
    max-width: 960px; /* Максимальная ширина на ПК */
    height: 540px; /* Высота видео пропорционально ширине (16:9) */
    margin: 0 auto; /* Центрирование видео */
    border-radius: 20px; /* Закругленные углы */
}

/* Для планшетов */
@media (max-width: 768px) {
    #rutube-video {
        max-width: 620px; /* Ширина на планшетах */
        height: 350px; /* Высота для планшета */
        border-radius: 20px; /* Закругленные углы */
    }
}

/* Для мобильных устройств */
@media (max-width: 480px) {
    #rutube-video {
        max-width: 300px; /* Ширина на мобильных устройствах */
        height: 170px; /* Высота для мобильных */
        border-radius: 20px; /* Закругленные углы */
    }
}

/* Keep the large CTA images inside the viewport below Tilda's 360px breakpoint. */
@media (max-width: 359px) {
    #rec1782073511 .tn-elem[data-elem-id="1768309274840"],
    #rec1782073511 .tn-elem[data-elem-id="1768309450743"] {
        left: 8px !important;
        width: calc(100% - 16px) !important;
    }

    #rec1782073511 .tn-elem[data-elem-id="1768309274840"] .tn-atom {
        font-size: 27px !important;
        line-height: 1.2 !important;
    }

    #rec1782073511 .tn-elem[data-elem-id="1768309450743"] .tn-atom {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .tn-elem[data-elem-id="1768310717526"],
    .tn-elem[data-elem-id="1768315216692000001"],
    .tn-elem[data-elem-id="1768392489748000003"],
    .tn-elem[data-elem-id="1768396295305000003"],
    .tn-elem[data-elem-id="1768397722236000004"] {
        left: 8px !important;
        width: calc(100% - 16px) !important;
        height: auto !important;
    }

    .tn-elem[data-elem-id="1768310717526"] .tn-atom,
    .tn-elem[data-elem-id="1768315216692000001"] .tn-atom,
    .tn-elem[data-elem-id="1768392489748000003"] .tn-atom,
    .tn-elem[data-elem-id="1768396295305000003"] .tn-atom,
    .tn-elem[data-elem-id="1768397722236000004"] .tn-atom,
    .tn-elem[data-elem-id="1768310717526"] img,
    .tn-elem[data-elem-id="1768315216692000001"] img,
    .tn-elem[data-elem-id="1768392489748000003"] img,
    .tn-elem[data-elem-id="1768396295305000003"] img,
    .tn-elem[data-elem-id="1768397722236000004"] img {
        width: 100% !important;
        height: auto !important;
    }
}
