.videos-section {
    background: #fff;
    color: #000;
    margin: 30px 0;
}

.videos-section__item-description {
    display: none;
}

.videos-section__title {
    margin: 0 0 38px;
    color: #000;
    font-family: var(--ff-mts-wide), "MTS Wide", Arial, sans-serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.16;
    text-align: center;
    text-transform: none;
}

.videos-section__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 24px;
}

.videos-section:not(.videos-section--ready) .videos-section__item:nth-child(n+4) {
    display: none;
}

.videos-section__item[hidden] {
    display: none !important;
}

.videos-section__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 365 / 229;
    background: #141414;
    border-radius: 24px;
}

.videos-section__poster,
.videos-section__player,
.videos-section__player iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.videos-section__poster {
    object-fit: cover;
    object-position: center;
    transition: opacity 0.2s ease;
}

.videos-section__poster--empty {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        #20242a;
}

.videos-section__player {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.videos-section__player iframe {
    border: 0;
}

.videos-section__play,
.videos-section__stop {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.videos-section__play {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.videos-section__stop {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.videos-section__play:hover,
.videos-section__stop:hover {
    opacity: 0.88;
}

.videos-section__play:active {
    transform: translate(-50%, -50%) scale(0.96);
}

.videos-section__stop:active {
    transform: scale(0.96);
}

.videos-section__play img,
.videos-section__stop img {
    display: block;
    width: 50px;
    height: 50px;
}

.videos-section__item.is-playing .videos-section__poster,
.videos-section__item.is-playing .videos-section__play {
    opacity: 0;
    pointer-events: none;
}

.videos-section__item.is-playing .videos-section__player {
    opacity: 1;
    pointer-events: auto;
}

.videos-section__item-title {
    margin: 26px 0 0;
    color: #000;
    font-family: var(--ff-mts-wide), "MTS Wide", Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.18;
    text-align: center;
    text-transform: none;
}

.videos-section__more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 52px;
}

.videos-section__more[hidden],
.videos-section__stop[hidden] {
    display: none !important;
}

.videos-section__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 226px;
    min-height: 62px;
    padding: 14px 28px;
    color: #000;
    font-family: var(--ff-mts-compact), "MTS Compact", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    background: #fff;
    border: 1px solid currentColor;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.videos-section__more:hover {
    color: #fff;
    background: #000;
}

.videos-section__more svg {
    flex: 0 0 auto;
}

@media screen and (max-width: 1023px) {
    .videos-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .videos-section {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .videos-section__title {
        max-width: 330px;
        margin: 0 auto 31px;
        font-size: 24px;
        line-height: 1.18;
    }

    .videos-section__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .videos-section:not(.videos-section--ready) .videos-section__item:nth-child(n+3) {
        display: none;
    }

    .videos-section__media {
        aspect-ratio: 328 / 229;
        border-radius: 18px;
    }

    .videos-section__item-title {
        margin-top: 27px;
        font-size: 22px;
        line-height: 1.18;
    }

    .videos-section__more-wrap {
        margin-top: 34px;
    }

    .videos-section__more {
        min-width: 226px;
        min-height: 62px;
        font-size: 20px;
    }
}


