.page-template-page-home .home-slider-header {
    min-height: 838px;
}

/*
 * Bottom "photo grid" section: tiles should stay square regardless of each
 * source image's own proportions, cropping to fill rather than stretching.
 * <picture> has no default sizing of its own (browsers render it
 * display:inline, and it isn't a replaced element like <img>), so
 * width/height/object-fit on it are no-ops - it needs display:block before
 * percentage sizing means anything, and object-fit only ever applies to
 * the <img> inside, never to the <picture> wrapper itself.
 */
.page-template-page-home .photo-grid-module .home-grid__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.page-template-page-home .photo-grid-module .home-grid__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.page-template-page-home .photo-grid-module .home-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-template-page-home #video {
    min-height: 912px;
    cursor: pointer;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
    z-index: 9;
}

.page-template-page-home .video__container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.page-template-page-home .video__text-container {
    width: 1632px !important;
    max-width: 95% !important;
    margin: 0 auto;
    position: absolute;
    top: 10%;
    right: 0;
    left: 0;
}

.page-template-page-home .video__imgcontainer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 912px;
    min-height: 912px;
}

.page-template-page-home #video h3 {
    left: 0;
    width: 50%;
    color: #00175a;
    font-family: "Bebas Neue", sans-serif;
    font-size: 11.875rem;
    line-height: 10rem;
    z-index: 10;
}

.page-template-page-home #video img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 1920px;
    object-fit: contain;
    object-position: right center;
    transform: translateX(22%);
}

.page-template-page-home #video i {
    position: absolute;
    top: 50%;
    right: auto;
    left: 50%;
    width: 110px;
    height: 110px;
    border-radius: 60px;
    background-color: #dcdbe0;
    color: #00175a;
    font-size: 4.375rem;
    font-weight: 300;
    line-height: 6.875rem;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 9;
}

.page-template-page-home .fa-play::before {
    content: "\f144" !important;
}

.page-template-page-home .ytmovie {
    height: 912px;
}

.page-template-page-home .post-slider-module {
    min-height: 812px;
}

.page-template-page-home .home-advatages-grid {
    min-height: 702px;
}

.page-template-page-home .home-image-baner-module {
    min-height: 52vw;
}

.page-template-page-home .brands-slider-module {
    min-height: calc(31.25vw + 189px);
}

.page-template-page-home .brands-slider-module .photo__image {
    height: auto;
    aspect-ratio: 4 / 5;
}

.page-template-page-home .brands-slider-module .owl-slide-img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

@media only screen and (max-width: 1500px) {
    .page-template-page-home #video h3 {
        width: 38%;
    }

    .page-template-page-home #video i {
        background-color: transparent;
        color: #fff;
    }
}

@media only screen and (max-width: 1300px) {
    .page-template-page-home #video {
        min-height: 70.94vw;
    }

    .page-template-page-home #video img {
        width: 90%;
        height: 100%;
    }

    .page-template-page-home .video__imgcontainer {
        height: 70.94vw;
        min-height: 70.94vw;
    }

    .page-template-page-home #video h3 {
        font-size: 8.125rem;
        line-height: 6.875rem;
    }

    .page-template-page-home .video__text-container {
        top: -12%;
    }
}

@media only screen and (min-width: 1921px) {
    .page-template-page-home .brands-slider-module {
        min-height: calc(25vw + 189px);
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1300px) {
    .page-template-page-home .home-advatages-grid {
        min-height: 750px;
    }
}

@media only screen and (min-width: 1000px) and (max-width: 1199px) {
    .page-template-page-home .post-slider-module {
        min-height: 812px;
    }

    .page-template-page-home .home-advatages-grid {
        min-height: 870px;
    }

    .page-template-page-home .brands-slider-module {
        min-height: 569px;
    }
}

@media only screen and (max-width: 991px) {
    .page-template-page-home .post-slider-module {
        min-height: 904px;
    }

    .page-template-page-home .home-advatages-grid {
        min-height: calc(1646px - 75.8vw);
    }

    .page-template-page-home .brands-slider-module {
        min-height: 894px;
        padding-bottom: 92px;
    }
}

@media only screen and (max-width: 800px) {
    .page-template-page-home #video {
        min-height: clamp(484px, 88.8vw, 682px);
    }

    .page-template-page-home .video__container {
        flex-direction: column;
    }

    .page-template-page-home .ytmovie {
        height: 500px;
    }

    .page-template-page-home .video__text-container {
        position: static;
    }

    .page-template-page-home #video i {
        width: 80px;
        height: 80px;
        font-size: 10vw;
    }

    .page-template-page-home #video h3 {
        width: 100%;
        font-size: 4.875rem;
        line-height: 4.375rem;
    }
}

@media only screen and (max-width: 767px) {
    .page-template-page-home .home-slider-header {
        min-height: calc(clamp(500px, calc(100svh - 80px), 800px) + 8px);
    }

    .page-template-page-home .video__text-container {
        padding: 0 1.875rem;
    }

    .page-template-page-home .post-slider-module {
        min-height: 864px;
    }

    .page-template-page-home .home-advatages-grid {
        min-height: calc(1886px - 107vw);
    }

    .page-template-page-home .home-image-baner-module {
        min-height: 186.6vw;
    }

    .page-template-page-home .brands-slider-module {
        min-height: calc(125vw + 120px);
    }
}
