/* block.css - Стили для видео-слайдера */

.custom-video-slider-wrapper {
    background-image: url("video_bg_min.jpg");
    max-width: 1920px;
    margin: auto;
    margin-top: 160px;
    display: flex;
    min-height: 920px;
    overflow: hidden;
    position: relative;
    justify-content: end;
    align-items: end;
}

.video-slider-container {
    max-width: 1335px;
    min-height: 747px;
    padding-top: 70px;
    padding-left: 50px;
    display: flex;
    align-items: stretch;
    background-color: #fff;
    position: relative;
}
.video-slider-container::after {
    content: '';
    position: absolute;
    left: -50px;
    top: 50px;
    bottom: 0;
    width: 50px;
    background: #402920;
}

/* Пшеница */
.wheat-container {
    position: absolute;
    bottom: 0;
    left: 17%;
    width: 600px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}
.wheat {
    height: 100%;
    width: auto;
    transform-origin: 50% 100%;
    animation: wind-sway 15s linear infinite;
    will-change: transform;
}

@keyframes wind-sway {
    0%   { transform: translateX(-10px) translateY(0) rotate(-2deg) skewX(-2deg); }
    25%  { transform: translateX(0px) translateY(-2px) rotate(0deg) skewX(0deg); }
    50%  { transform: translateX(10px) translateY(0) rotate(2deg) skewX(2deg); }
    75%  { transform: translateX(0px) translateY(2px) rotate(0deg) skewX(0deg); }
    100% { transform: translateX(-10px) translateY(0) rotate(-2deg) skewX(-2deg); }
}

/* Карточка управления видео */
.video-slider-controls-card {
    flex: 0 0 226px;
    max-width: 226px;
    max-height: 310px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}
.slider-control-bottom-left {
    display: flex;
    gap: 10px;
}
.slider-social-button {
    border: 1px solid #898887;
    padding: 16px;
    display: flex;
    max-height: 62px;
    justify-content: center;
    align-items: center;
}

.video-slider-controls-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.video-slider-control-title {
    display: flex;
    gap: 10px;
    align-items: center;
}

.video-slider-control-title span {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    color: #656362;
}

.video-block-title {
    font-weight: 500;
    font-size: 74px;
    line-height: 100%;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #120f0e;
    margin-bottom: 30px;
}
.video-block-subtitle {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: rgba(18, 15, 14, 0.65);
    margin-bottom: 50px;
}

.video-slider-control-bottom {
    display: flex;
    justify-content: center;
}

.video-slider-control-bottom-left {
    display: flex;
    gap: 10px;
}

.video-slider-social-button {
    border: 1px solid #918f8e;
    padding: 16px;
    display: flex;
    max-height: 62px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.video-slider-social-button:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
}

.video-slider-control-bottom-right {
    display: flex;
    align-items: center;
}

.video-slider-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border: 1px solid #898887;
}

.video-slider-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    background: transparent;
    border: none;
}

.video-slider-btn:hover {
    background: rgba(0,0,0,0.05);
}

.video-slider-btn:hover svg path {
    stroke: #241f1e !important;
}

.video-slider-btn:active {
    transform: scale(0.95);
}

.video-slider-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.video-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-slider-pagination .swiper-pagination-bullet:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.video-slider-pagination .swiper-pagination-bullet-active {
    background: white;
    width: 12px;
    height: 12px;
}

.video-slide-counter {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 15px;
}

/* Слайдер */
.video-slider-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 310px;
}

/* Видео-карточка */
.video-post-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: #1a1a2e;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-post-thumbnail {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-post-card:hover .video-post-thumbnail img {
    transform: scale(1.05);
}

/* Оверлей с иконкой видео */
.video-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.video-post-card:hover .video-post-overlay {
    opacity: 1;
}

.video-play-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}

.video-post-card:hover .video-play-icon {
    background: #ad563c;
    border-color: #ad563c;
    transform: scale(1.05);
}

.video-post-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: "Manrope", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 100%;
    color: rgba(255,255,255,0.65);
}

/* Контент карточки */
.video-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 24px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
}

.video-post-title {
    margin: 0 0 6px 0;
    font-weight: 400;
    font-size: 24px;
    line-height: 125%;
    color: white;
    font-family: "Manrope", sans-serif;
}

.video-post-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-post-title a:hover {
    color: #AD563C;
}

.video-post-excerpt {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-post-meta {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
}

.video-post-date, .video-post-time {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: rgba(255, 255, 255, 0.65);
}
.video-post-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-post-card-link {
    text-decoration: none !important;
}

/* ===== Swiper: базовые стили ===== */
.custom-video-swiper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 50px;
    z-index: 1;
}

.custom-video-swiper .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.custom-video-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

.custom-video-swiper .video-slider-slide {
    height: 310px;
    box-sizing: border-box;
}

.custom-video-swiper .video-post-card {
    width: 100%;
    height: 100%;
}

/* Кнопки навигации не блокируются */
.custom-video-swiper .swiper-button-lock {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .video-slider-container {
        flex-direction: column;
    }

    .video-slider-controls-card {
        flex: none;
        min-height: 150px;
        max-width: 100%;
        max-height: none;
    }

    .video-post-card {
        max-width: 100%;
        width: 100%;
        height: 280px;
    }

    .video-post-thumbnail {
        height: 180px;
    }

    .video-slider-control-title {
        font-size: 28px;
    }

    .video-slider-buttons {
        gap: 20px;
    }

    .video-slider-btn {
        width: 50px;
        height: 50px;
    }

    .custom-video-swiper .video-slider-slide {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .video-slider-control-title {
        font-size: 22px;
    }

    .video-slider-control-title span {
        font-size: 14px;
    }

    .video-slider-controls-card {
        padding: 20px;
    }

    .video-slider-social-button {
        padding: 12px;
        max-height: 50px;
    }

    .video-post-card {
        height: 260px;
    }

    .video-post-thumbnail {
        height: 100%;
    }

    .video-post-title {
        font-size: 18px;
    }

    .video-play-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .custom-video-swiper .video-slider-slide {
        height: 260px;
    }
}

/* Модальное окно */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    animation: videoModalFadeIn 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.85);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: videoModalSlideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-modal-body {
    padding: 20px;
}

.video-modal-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px 4px 4px;
}

.video-modal-title {
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    margin: 0;
}

.video-modal-year {
    font-family: "Manrope", sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes videoModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes videoModalSlideDown {
    from { transform: translateY(-50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        border-radius: 12px;
    }

    .video-modal-body {
        padding: 12px;
    }

    .video-modal-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .video-modal-title {
        font-size: 16px;
    }

    .video-modal-year {
        font-size: 14px;
    }

    .video-modal-close {
        top: 12px;
        right: 14px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .custom-video-slider-wrapper {
        margin-top: 60px;
        min-height: auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .video-slider-container {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        min-height: auto;
        padding-top: 20px;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .video-slider-container::after {
        display: none;
    }

    .video-slider-track-wrapper {
        max-width: 100%;
        width: 100%;
        min-height: auto;
        overflow: hidden;
    }

    .custom-video-swiper {
        width: 100%;
        max-width: 100%;
    }

    .custom-video-swiper .swiper-slide.video-slider-slide {
        height: 280px;
    }
}
@media (max-width: 480px) {

    .custom-video-swiper .swiper-slide.video-slider-slide {
        height: 240px;
    }
}

