.services {
    margin-top: 160px;
}

.services__title {
    margin-bottom: 40px;
    font-weight: 500;
    font-size: 40px;
    color: #1f1f1f;
}

.services__grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.services__item {
    display: flex;
    gap: 60px;
    align-items: center;
}

.services__item.reverse {
    flex-direction: row-reverse;
    margin-top: -150px;
}

.services__img {
    width: 570px;
    height: 600px;
    background: #d9d9d9;
    flex-shrink: 0;
}

.services__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services__text {
    flex: 1;
}

.services__text h3 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 24px;
    color: #1f1f1f;
}

.services__text p {
    width: 400px;
}

@media (max-width:1200px) and (min-width:451px) {
    .services__img {
        width: 470px;
        height: 500px;
        flex-shrink: 0;
    }

    .services__grid {
        gap: 48px;
    }

    .services__item,
    .services__item.reverse {
        margin-top: 0;
        gap: 48px;
    }
}

@media (max-width:768px) and (min-width:451px) {
    .services__img {
        width: 350px;
        height: 400px;
        flex-shrink: 0;
    }

    .services__grid {
        gap: 20px;
    }

    .services__item,
    .services__item.reverse {
        margin-top: 0;
        gap: 20px;
    }

    .services__title {
        font-size: 32px;
    }

    .services__text h3 {
        font-size: 20px;
    }

    .services__text p {
        width: auto;
    }
}

@media (max-width: 450px) {
    .services {
        margin-top: 120px;
    }

    .services__title {
        font-weight: 700;
        font-size: 24px;
        color: #1f1f1f;
        margin-bottom: 24px;
    }

    .services__grid {
        gap: 32px;
    }

    .services__item,
    .services__item.reverse {
        flex-direction: column;
        gap: 16px;
        margin-top: 0;
    }

    .services__img {
        width: 100%;
        height: 340px;
    }

    .services__text h3 {
        font-weight: 600;
        color: #1f1f1f;
        margin-bottom: 10px;
    }

    .services__text p {
        width: 100%;
        color: #1f1f1f;
        margin-bottom: 60px;
    }
}