@media (min-width: 931px) {
    .new-video__wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 801px) and (max-width: 930px) {
    .new-video__wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 551px) and (max-width: 800px) {
    .new-video__wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .new-video__wrapper {
        grid-template-columns: 1fr;
    }

    .new-video__wrapper {
        grid-template-columns: 1fr;
    }
}

.modal-window {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.modal-window.show {
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease-out;
}

.modal-window .close-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
    color: white;
    font-size: 25px;
}

.modal-window .modal-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 800px;
}

.all-news__btn {
    display: block;
    margin: 0 auto;
    padding: 0.2rem 0.5rem;
    width: min-content;
    border: 1px solid;
    white-space: nowrap;
    text-decoration: none;
    background-color: #008000;
    color: white;
}

.all-news__btn:hover {
    background-color: #339933;
}

.owl-stage {
    display: flex;
    flex-direction: row;
    align-items: start;
    flex-wrap: nowrap;
    padding: 5px 0;
}

.news-section .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-section .owl-carousel .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    margin: 10px 5px;
    transition: all 0.3s ease-out;
    background-color: #555555;
}

.news-section .owl-stage {
    padding: 0;
}

.owl-carousel .owl-dot.active {
    width: 20px;
    background-color: #ababab;
}

.news-section__news {
    padding: 0 0.5rem 0.5rem;
}

.news__header {
    display: flex;
    align-items: center;
    height: 4.5rem;
}

.news__header a {
    font-size: 1rem;
    
    /*Обрезка текста в 3 строки*/
    overflow: hidden;
    text-overflow: ellipsis;
    display: -moz-box;
    -moz-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    box-orient: vertical;
}

.news__body {
    display: flex;
    flex-direction: column;
}

.news__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background-color: #FFFFFF;
}

.news__image img {
    width: 100%;
    height: auto;
    max-height: 8rem;
    object-fit: contain;
}

.news__text {
    /*Обрезка текста в 6 строк*/
    overflow: hidden;
    text-overflow: ellipsis;
    display: -moz-box;
    -moz-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    line-clamp: 6;
    box-orient: vertical;
}

.owl-carousel .owl-item .news__text img {
    display: none;
}

.new-video__wrapper {
    display: grid;
    row-gap: 10px;
    column-gap: 10px;
}

.video-preview {
    position: relative;
    color: white;
}

.video-preview img {
    width: 100%;
}

.video-preview .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 50px;
    cursor: pointer;
}

.video-preview .title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.2rem 0.5rem;
    width: 100%;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.8);

    /*Обрезка текста в одну строку*/
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -moz-box;
    -moz-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    box-orient: vertical;
}

.useful-list {
    display: flex;
    overflow-x: scroll;
}

.useful-card {
    padding: 5px;
    display: flex;
    flex-direction: column;
}

.useful-card__cover {
    display: block;
    height: 130px;
    box-sizing: border-box;
}
