.ready-video {
    margin: 30px 0;
}

.ready-video__title {
    margin: 0 0 24px;
    font-family: 'Inter Variable';
    font-size: 32px;
    line-height: normal;
    color: #333;
    text-align: left;
    letter-spacing: unset;
}

.ready-video__title span {
    margin-top: 12px;
    display: block;
    font-size: 16px;
}

.ready-video__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ready-video__cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 330px;
    width: 100%;
}

.ready-video__wrapper>.ready-video__card {
    max-width: calc(100% - 340px);
    width: 100%;
}

.ready-video__visual {
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

.ready-video__wrapper>.ready-video__card .ready-video__visual {
    height: calc(100% - 63px);
    aspect-ratio: auto;
}

.ready-video__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

p.ready-video__name {
    margin: 8px 0;
    font-family: 'Inter Variable';
    font-size: 14px;
    line-height: normal;
    color: #333;
}

p.ready-video__descr {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter Variable';
    font-size: 12px;
    line-height: normal;
    color: #333;
}

.ready-video__block {
    margin: 30px calc(50% - 50vw) 0;
    background-color: #f4f4f4;
}

.ready-video__block>.container {
    padding: 15px 35px;
    display: flex;
    align-items: center;
    gap: 15px;
}

p.ready-video__text {
    margin: 0;
    font-family: 'Inter Variable';
    font-size: 20px;
    line-height: normal;
    color: #333;
}

.ready-video__link {
    position: relative;
    padding: 16px 24px;
    min-width: 214px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #333;
    border-radius: 7px;
    font-family: 'Inter Variable';
    font-size: 18px;
    line-height: normal;
    color: #fff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: background-color .3s ease-in-out;
}

.ready-video__link::before{
    content: "";
    display: block;
    width: 20px;
    height: 200px;
    margin-left: 60px;
    background-color: #fff;
    opacity: .5;
    position: absolute;
    left: -110px;
    top: -50px;
    z-index: 1;
    transform: rotate(45deg);
    transition: all .1s;
    animation-name: slideme;
    animation-duration: 4s;
    animation-delay: .05s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.ready-video__link::after {
    content: '';
    display: block;
    border-radius: 5px;
    width: 104px;
    height: 28px;
    background-image: url('https://img.danila-master.ru/uploads/articlesImages/site/icons/rutube.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ready-video__link:hover {
    background-color: #df8844;
    transition: background-color .3s ease-in-out;
}

.ready-video__link:active {
    background-color: #333;
    transition: background-color .3s ease-in-out;
}

.ready-video__custom-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 7px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
}

.ready-video__visual:hover .ready-video__custom-poster {
    transform: scale(1.02);
}

.ready-video__play-btn {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.ready-video__visual:hover .ready-video__play-btn {
    background-color: #fff;
    transform: scale(1.07);
}

.ready-video__play-btn svg {
    margin-left: 4px;
    width: 28px;
    height: 28px;
    fill: #1a1a1a;
}

.ready-video__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
}

.ready-video__video.active {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 992px) {
    .ready-video__wrapper>.ready-video__card {
        max-width: 100%;
    }

    .ready-video__wrapper>.ready-video__card .ready-video__visual {
        aspect-ratio: 16 / 9;
    }

    .ready-video__cards {
        max-width: 100%;
        flex-direction: row;
    }
}

@media screen and (max-width: 768px) {
    .ready-video__block>.container {
        padding: 15px;
        flex-direction: column;
    }

    p.ready-video__text {
        font-size: 14px;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .ready-video__title {
        font-size: 21px;
    }

    .ready-video__wrapper {
        font-size: 24px;
    }

    .ready-video__cards {
        flex-direction: column;
        gap: 20px;
    }

    .ready-video__wrapper {
        gap: 20px;
    }

    .ready-video__play-btn {
        width: 50px;
        height: 50px;
    }

    .ready-video__play-btn svg {
        width: 22px;
        height: 22px;
    }
}