.hero-services {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.hero-services__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-services__bg--active {
    opacity: 1;
}

.hero-services__bg--hidden {
    opacity: 0;
}

.no-webp .hero-services__bg--1 { background-image: url('/img/HeroServices1.jpg'); }
.webp    .hero-services__bg--1 { background-image: url('/img/HeroServices1.webp'); }

.no-webp .hero-services__bg--2 { background-image: url('/img/HeroServices2.jpg'); }
.webp    .hero-services__bg--2 { background-image: url('/img/HeroServices2.webp'); }

.no-webp .hero-services__bg--3 { background-image: url('/img/HeroServices3.jpg'); }
.webp    .hero-services__bg--3 { background-image: url('/img/HeroServices3.webp'); }

.no-webp .hero-services__bg--4 { background-image: url('/img/HeroServices4.jpg'); }
.webp    .hero-services__bg--4 { background-image: url('/img/HeroServices4.webp'); }

.hero-services__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}


.hero-services__slide-inner {
    width: 100%;
    position: relative;
    max-width: 1020px;
}

.hero-services__slides {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.hero-services__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 150px 60px 460px 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    height: 100%;
}

.hero-services__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.hero-services__slide--hidden {
    opacity: 0;
}

.hero-services__slide-link {
    display: block;
    width: 100%;
    transition: 0.35s ease
}

.hero-services__slide-link:hover  {
    opacity: 0.7;
}

.hero-services__title {
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    padding-right: 90px;
    margin-bottom: 30px;
    color: #fff;
}

.hero-services__arrow-btn {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    position: absolute;
    top: 16px;
    right: 0;
}

.hero-services__arrow-btn svg {
    width: 64px;
    height: 64px;
}

.hero-services__desc {
    font-family: 'Fira Sans Condensed', sans-serif;
    font-size: 24px;
    line-height: 40px;
    font-weight: 500;
    color: white;
    margin: 0;
    max-width: 720px;
}

.hero-services__cards {
    display: flex;
    width: 100%;
    gap: 30px;
    bottom: 0;
    position: absolute;
    left: 0;
    padding: 0 60px 100px 60px;
}


.hero-services__card {
    flex: 1;
    border: 1px solid white;
    padding: 32px;
    cursor: pointer;
    color: #fff;
    background: transparent;
    position: relative;
	min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.35s ease;
    text-decoration: none;
}


.hero-services__card:hover {
    text-decoration: none;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15)
}

.hero-services__card.is-active {
    background: #fff;
    color: #000;
}

.hero-services__card-arrow {
    position: absolute;
    top: 32px;
    left: 32px;
}

.hero-services__card-arrow svg {
    width: 50px;
    height: 50px;
}

.hero-services__card-subtitle {
    font-family: 'Fira Sans Condensed', sans-serif;
    font-size: 14px;
    margin-bottom: 7px;
    font-weight: 400;
}

.hero-services__card-title {
    font-family: 'Sofia Sans Condensed', sans-serif;
    font-size: clamp(20px, 2vw, 44px);
    font-weight: 700;
    line-height: 1;
}

.hero-services__card.is-active .hero-services__card-title {
    text-decoration: underline;
}



@media only screen and (max-height: 940px) {
    .hero-services__card {
        min-height: 200px;
    }

    .hero-services__slide {
        padding-bottom: 260px;
    }

    .hero-services__cards {
        padding-bottom: 60px;
    }
}

@media only screen and (max-height: 740px) {
    .hero-services__desc {
        display: none;
    }

     .hero-services__title {
        font-size: 46px !important;
    }

    .hero-services__arrow-btn {
        width: 50px !important;
        height: 50px !important;
        top: 10px !important;
        right: 0;
    }
}



@media only screen and (max-width: 1199px) {
    .hero-services__title {
        font-size: 60px;
    }

    .hero-services__arrow-btn {
        width: 50px;
        height: 50px;
        top: 10px;
        right: 0;
    }

    .hero-services__arrow-btn svg {
        width: 50px;
        height: 50px;
    }

    .hero-services__cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
	
    .hero-services__card {
        min-height: 170px;
    }
	
    .hero-services__card-arrow svg {
        width: 25px;
        height: 25px;
    }
	
	.hero-services__card-arrow {
    position: absolute;
    top: 24px;
    left: 24px;
	}

    .hero-services__cards {
        padding: 0 30px 60px 30px;
    }
	
    .hero-services__slide {
        padding: 110px 30px 370px 30px;
    }

    .hero-services__desc {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .hero-services__title {
        font-size: 46px;
    }

    .hero-services__arrow-btn {
        top: 0;
        right: 0;
    }

    .hero-services__card {
        padding: 16px;
        min-height: 130px;
    }
	
    .hero-services__card-arrow {
        top: 16px;
        left: 16px;
    }

    .hero-services__cards {
        padding: 0 15px 30px 15px;
        gap: 16px;
    }
	
    .hero-services__slide {
        padding: 110px 15px 290px 15px;
    }
}