/* Секция видео: 3 в ряд, до 12 карточек */
.videos {
    margin: 0;
    padding: 0;
}

.videos.has-background {
    margin-left: calc(585px - 50vw);
    margin-right: calc(585px - 50vw);
    max-width: 100vw;
    overflow: hidden;
    padding: 100px calc(50vw - 585px);
    background: #E8E6D4;
}

.videos.has-background + .videos.has-background {
    margin-top: -200px;
}

.videos__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.videos__header {
    margin-bottom: 30px;
}

.videos__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}

.videos__card {
    /* background: #fff; */
    /* border: 1px solid rgba(118,130,74,0.4); */
    border-radius: 8px;
    overflow: hidden;
    flex-direction: column;
    position: relative;
    gap: 10px;
}

.videos__thumb {
    position: relative;
    /* aspect-ratio: 16 / 9; */
    background: #E8E6D4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.videos__card-title{
    font-weight: 400;
    color: #ffffff;
    left: 0;
    margin: 0;
    z-index: 10;
    font-size: 16px;
    order: 2;
}
.has-background .videos__card-title{
    color: #18383c;
}
.videos__embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.videos__placeholder {
    color: var(--color-text-green);
    font-weight: 600;
}

.videos__embed {
    width: 100%;
    height: 600px;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.videos__container .videos__header{
    text-align: left;
    align-items: baseline;
    white-space: nowrap;
}
.videos__container .videos__header br{
    display: none;
}
.videos__container .videos__header em{
    display: inline-block;
    margin-left: 10px;
}

.videos.has-background .videos__subtitle,
.videos.has-background h2,
.videos.has-background label{
    color: #18383c;
}
@media (max-width: 1024px) {
    .videos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .text-image-block.has-background, .cards-text-icon-block.has-background, .videos.has-background {
        margin-left: -20px;
        margin-right: -20px;
        padding: 60px 20px;
        overflow: hidden;
        max-width: calc( 100% + 40px);
    }
    .videos__embed {
        height: 320px;
    }
}
@media (max-width: 640px) {
    .videos__grid {
        grid-template-columns: 1fr;
    }
    .videos__embed {
        height: 280px;
    }
}