#pr_title {
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pr_title p {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 3em;
}

#services_list {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: nowrap;
}

.service_frame {
    width: 25em;
    height: auto;
    display: flex;
    flex-direction: column;
}

#serv_title {
    height: 5em;
    display: flex;
    flex-direction: column;
}

#serv_title p {
    margin: 0;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1.8em;
    text-align: center;
}

#serv_img_frame {
    margin: 2em auto;
    width: 100%;
    height: 11em;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#serv_img_frame img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

#text_frame p {
    color: #404040;
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1.5;
}

/* Ландшафтный режим */
@media (max-width: 950px) and (orientation: landscape) {
    #services_list {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .service_frame {
        width: 45%;
    }
    #serv_title {
        height: 4em;
    }
}

/* 540px (Foldables) */
@media (max-width: 540px) {
    #pr_title {
        height: 3.5rem;
    }
    #pr_title p {
        font-size: 2.6em;
    }
    .service_frame {
        width: 22em;
    }
    #serv_title p {
        font-size: 1.7em;
    }
    #serv_img_frame {
        height: 9.5em;
    }
    #text_frame p {
        font-size: 1.4rem;
    }
}

/* 480px (Android large) */
@media (max-width: 480px) {
    #pr_title {
        margin-bottom: 0.5em;
        height: 3rem;
    }
    #pr_title p {
        font-size: 2em;
    }
    #services_list {
        flex-direction: column;
        gap: 1rem;
    }
    .service_frame {
        width: 100%;
        padding: 0 1rem;
    }
    #serv_title {
        margin-top: 1em;
        height: 4em;
    }
    #serv_title p {
        font-size: 1.6em;
    }
    #serv_img_frame {
        margin: 1em auto;
        height: 8em;
    }
    #text_frame p {
        font-size: 1.2rem;
    }
}

/* 428px (iPhone Pro Max) */
@media (max-width: 428px) {
    #pr_title p {
        font-size: 1.9em;
    }
    #serv_title p {
        font-size: 1.55em;
    }
    #serv_img_frame {
        height: 7.5em;
    }
    #text_frame p {
        font-size: 1.15rem;
    }
}

/* 414px (iPhone Plus) */
@media (max-width: 414px) {
    #pr_title p {
        font-size: 1.85em;
    }
    #serv_title p {
        font-size: 1.5em;
    }
    #serv_img_frame {
        height: 7em;
    }
}

/* 390px (iPhone 12 Pro) */
@media (max-width: 390px) {
    #pr_title {
        height: 2.8rem;
    }
    #pr_title p {
        font-size: 1.8em;
    }
    #serv_title {
        height: 3.8em;
    }
}

/* 375px (iPhone mini) */
@media (max-width: 375px) {
    #pr_title p {
        font-size: 1.75em;
    }
    #serv_title p {
        font-size: 1.45em;
    }
    #serv_img_frame {
        height: 6.5em;
    }
    #text_frame p {
        font-size: 1.1rem;
    }
}

/* 360px */
@media (max-width: 360px) {
    #pr_title {
        height: 2.5rem;
    }
    #pr_title p {
        font-size: 1.7em;
    }
    #serv_title p {
        font-size: 1.4em;
    }
    #serv_img_frame {
        height: 6em;
    }
}

/* 320px (iPhone SE) */
@media (max-width: 320px) {
    #pr_title p {
        font-size: 1.6em;
    }
    .service_frame {
        padding: 0 0.8rem;
    }
    #serv_title {
        height: 3.5em;
    }
    #serv_title p {
        font-size: 1.35em;
    }
    #serv_img_frame {
        height: 5.5em;
    }
    #text_frame p {
        font-size: 1.05rem;
        line-height: 1.4;
    }
}