.masthead--homepage {
    position: relative;
}

.masthead__image {
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.masthead__image::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(270deg, var(--transparent-medium) 0%, var(--medium) 100%);
}

.masthead__image::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--light-medium);
}

.masthead__image img {
    display: block;
}

.masthead--homepage__wrap {
    position: relative;
    z-index: 2;
    padding: 35px 0;
    color: var(--white);
}

.masthead__text {
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.23) 0%, rgba(255, 255, 255, 0.00) 100%);
    padding: 30px 31px;
}

.masthead__text h1 {
    color: var(--white);
    margin-bottom: 6px;
}

.masthead__text p {
    margin-bottom: 15px;
}

.masthead-homepage-slider__layout {
    position: relative;
}

.masthead-homepage-slider-dots {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    margin-top: 16px;
}

.masthead-homepage-slider-dots .slick-dots {
    position: relative;
    bottom: auto;
    left: 0;
    width: auto;
    margin: 0;
    padding-left: 0;
}

.masthead-homepage-slider-dots .slick-dots li button {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
}

.masthead-homepage-slider-dots .slick-dots li.slick-active button {
    border-color: var(--secondary-color);
}

.masthead-homepage-slider-wrap {
    padding-bottom: 0;
}

.masthead__text .btn-group {
    gap: 19px;
}

.social-review-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0 38px;
    margin-top: 30px;
}
.social-review-block img {
    max-width : 149px ;
    height: auto;
}

.masthead-homepage-slider-wrap .slick-slide:not(.slick-active) {
    pointer-events: none;
}
.masthead__slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 100%;
}

.masthead__slider:not(.slick-initialized) .masthead__slide:first-child {
    height: 100%;
    min-height: inherit;
    position: relative;
}

.masthead__slider:not(.slick-initialized) .masthead__slide:first-child img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.masthead__slider .slick-list,
.masthead__slider .slick-track,
.masthead__slider .slick-slide,
.masthead__slider .slick-slide > div,
.masthead__slider .masthead__slide {
    width: 100%;
    height: 100% !important;
}

.masthead__slider .slick-slide,
.masthead__slider .slick-slide > div,
.masthead__slider .masthead__slide {
    position: relative;
}

.masthead__slider .slick-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.masthead-homepage-slider-dots .slick-dots li {
    line-height: 0;
}

.masthead__video-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 768px){

    .masthead--homepage__wrap {
        padding: 92px 0;
    }
    
    .masthead__text {
        padding: 49px 48px;
        max-width: 580px;
        margin-left: 27px;
    }
    
    .masthead__text h1 {
        margin-bottom: 28px;
        font-size: 68px;
        line-height: 1.05em;
    }
    
    .masthead__text p {
        margin-bottom: 30px;
    }
    
    .masthead-homepage-slider-dots {
        position: absolute;
        top: 0;
        left: -20px;
        margin: 0;
    }

    .masthead-homepage-slider-dots .slick-dots {
        margin: 0;
        gap: 8px;
        align-items: flex-start;
        flex-direction: column;
    }

    .masthead__text .btn-group {
        gap: 19px;
    }
    
    .social-review-block {
        margin-top: 105px;
    }
}

@media (min-width: 1200px){
    .masthead__image::before {
        width: 54%;
    }

    .masthead--homepage__wrap {
        padding: 135px 0;
    }
    
    .masthead__text {
        padding: 49px 48px;
        max-width: 888px;
        margin-left: 32px;
    }
    
    .masthead__text h1 {
        margin-bottom: 32px;
    }

    .social-review-block {
        margin-top: 130px;
        margin-left: 32px;
    }

    .masthead__text .btn-primary:hover {
        border-color: var(--white);
        color: var(--white);
        background: transparent;
    }

    .masthead__text .btn-secondary:hover {
        border-color: var(--white);
        color: var(--white);
    }
}


.masthead__video {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.masthead__video video,
.masthead__video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masthead-homepage-slider__layout h2 {
    color: white;
}