.t3-home-video {
    --t3-video-accent: #fefe00;
    --t3-video-text: #171717;
    --t3-video-muted: #676767;
    --t3-video-border: #e7e7e7;
    padding: 72px 0;
    background: #f8f9fb;
}

.t3-home-video.is-pending {
    display: none;
}

.t3-home-video .flex-container {
    display: flex;
}

.t3-home-video .number-block {
    flex: 0 0 auto;
}

.t3-home-video .widget-container-custom {
    min-width: 0;
    flex: 1 1 auto;
}

.t3-home-video__header {
    display: flex;
    margin-bottom: 32px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.t3-home-video__header h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.t3-home-video__slider {
    min-width: 0;
}

.t3-home-video__carousel .owl-stage {
    display: flex;
}

.t3-home-video__carousel .owl-item {
    display: flex;
}

.t3-home-video__carousel .t3-video-card {
    width: 100%;
}

.t3-home-video__controls {
    position: relative;
    z-index: 10000001;
    display: flex;
    margin-top: 24px;
    align-items: center;
    justify-content: space-between;
}

.t3-home-video__counter {
    display: flex;
    gap: 7px;
    font-size: 16px;
    line-height: 1;
}

.t3-home-video__counter span:first-child {
    font-weight: 700;
}

.t3-home-video__arrows {
    display: flex;
    gap: 12px;
}

.t3-home-video__arrows button {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #d7d7d7;
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: #fff;
}

.t3-home-video__arrows button::before {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    content: '';
    border-top: 2px solid #111;
    border-right: 2px solid #111;
}

.t3-home-video__arrows [data-t3-home-video-prev]::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.t3-home-video__arrows [data-t3-home-video-next]::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.t3-home-video__arrows button:hover,
.t3-home-video__arrows button:focus-visible {
    border-color: #fefe00;
    background: #fefe00;
}

.t3-home-video__footer {
    display: none;
    margin-top: 26px;
}

@media (max-width: 768px) {
    .mgo-mcw-widget {
        height: max-content !important;
    }

    .t3-home-video {
        padding: 48px 0;
    }

    .t3-home-video .number-block {
        margin-right: 18px;
    }

    .t3-home-video__header {
        margin-bottom: 24px;
    }

    .t3-home-video__header h2 {
        font-size: 28px;
    }

    .t3-home-video__header .widget-footer-button {
        display: none;
    }

    .t3-home-video__footer {
        display: block;
    }
}

@media (max-width: 520px) {
    .t3-home-video .flex-container {
        display: block;
    }

    .t3-home-video .number-block {
        margin: 0 0 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t3-home-video__carousel .owl-stage {
        transition-duration: 0s !important;
    }
}
