/* ===================================
   Block: Services
   =================================== */
#dd-services-block {
    background-color: var(--txt-light);
    float: left;
    width: 100%;
    padding: 100px 0;
}

/* Section header */
.services-header {
    margin-bottom: 50px;
    max-width: 660px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.services-section-title {
    font-size: 38px;
    font-weight: 500;
    line-height: 54px;
    color: var(--main);
    margin: 0;
}

.services-section-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
    color: var(--main);
    margin: 0;
}

/* Cards grid */
.services-cards-wrap {
    gap: 30px;
    align-items: stretch;
}

.services-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Card image */
.services-card-img-wrap {
    overflow: hidden;
    flex-shrink: 0;
}

.services-card-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Card body */
.services-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    padding-top: 24px;
}

.services-card-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 31px;
    color: var(--main);
    margin: 0;
}

.services-card-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
    color: var(--main);
    margin: 0;
}

/* Feature list */
.services-card-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.services-card-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    color: var(--main);
}

.services-card-feature img {
    flex-shrink: 0;
}

/* CTA */
.services-card-cta {
    margin-top: auto;
    padding-top: 16px;
}

.services-cta-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 20px;
    height: 59px;
    width: 240px;
    border-left: 3px solid var(--main);
    background: linear-gradient(to right, var(--cta) 50%, #fff 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: background-position 0.4s ease, padding-left 0.4s ease;
    text-decoration: none;
    color: var(--main);
    overflow: hidden;
    position: relative;
}

.services-cta-wrap > * {
    position: relative;
    z-index: 1;
}

.services-cta-wrap:hover {
    color: var(--main);
    background-position: left bottom;
    padding-left: 32px;
}

.services-cta-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.48px;
    color: var(--main);
}

.services-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cta);
    height: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.services-cta-arrow {
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.services-cta-wrap:hover .services-cta-arrow {
    transform: rotate(45deg);
}

/* ===================================
   Responsive
   =================================== */
@media screen and (max-width: 1400px) {
    .services-card-img {
        height: 320px;
    }

    .services-section-title {
        font-size: 32px;
        line-height: 46px;
    }
}

@media screen and (max-width: 1199px) {
    #dd-services-block {
        padding: 70px 0;
    }

    .services-card-img {
        height: 260px;
    }

    .services-section-title {
        font-size: 28px;
        line-height: 40px;
    }
}

@media screen and (max-width: 991px) {
    .services-cards-wrap {
        flex-direction: column;
        gap: 50px;
    }

    .services-card {
        flex: unset;
        width: 100%;
    }

    .services-card-img {
        height: 300px;
    }
}

@media screen and (max-width: 767px) {
    #dd-services-block {
        padding: 60px 0;
    }

    .services-section-title {
        font-size: 26px;
        line-height: 36px;
    }

    .services-card-img {
        height: 240px;
    }
}
