.video-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.video-block__content {
    padding: 15px;
    border: 1px solid #E9E9E9;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.video-block__player-box {
    width: 61.5%;
    max-width: 392px;
    min-height: 170px;
    position: relative;
}
.video-block__play-button {
    position: absolute;
    width: 52px;
    left: calc(50% - 26px);
    height: 52px;
    top: calc(50% - 26px);
}
.video-block__play-button--active {}
.video-block__open-video {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
	cursor: pointer;
transition: all 0.5s ease;
}
.video-block__open-video--hidden {}
.video-block__player-text {
    flex: 1;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

#main-video-block {
	margin-bottom: 60px;
}

.video-block__open-video:hover {
        scale: 1.1;
}

@media (max-width: 950px) {
.video-block {
    grid-template-columns: repeat(1, 1fr);
}
}
@media (max-width: 500px) {
.video-block__player-box {
    width: 100%;
    max-width: 500px;
}
}


/*css модального окна*/

/* Модальное окно */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal--active {
    display: flex;
}

/* Затемнение */
.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

/* Контент модалки */
.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 800px;
    z-index: 1;
}

/* Кнопка закрытия */
.video-modal__close {
    position: absolute;
    top: 16px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 2;
}


.video-modal__close svg {
    display: block;
}

/* Плеер */
.video-modal__player {
    position: relative;
    padding-bottom: 90vh; 
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .video-modal__content {
        width: 95%;
    }
    
    .video-modal__close {
        top: -40px;
        right: -5px;
    }
    
    .video-modal__close svg {
        width: 22px;
        height: 22px;
    }
}

.video-modal__poster {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    cursor: pointer;
}

.video-modal__poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal__poster .video-block__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

.video-modal__player iframe {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.video-modal__player.active iframe {
    display: block;
}

.video-modal__player.active .video-modal__poster {
    display: none;
}

.video-block__player-box {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-block__player-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-modal__player iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

@media (max-width: 800px) {
.video-modal__player {
        padding-bottom: 0%;
        height: fit-content;
        min-height: 400px;
}
}