/* =======================
   Розділ "Про нас"
======================= */
.about-us-home-section {
    background-color: #F3F2EE;
    margin-top: 4.375rem;
}

.about-container-home {
    padding-top: 4.25rem;
}

.text-about-home .text-medium {
    font-weight: 400;
    line-height: 1.3;
    color: #000;
    padding-top: 2.5rem;
}

/* Розташування тексту і фото */
.row-all-about-home {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 2.5rem;
    align-items: stretch;
}

.text-about-home {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.row-image-about-home {
    height: 100%;
}

.row-image-about-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-block-about-home,
.image-about-home-rows {
    display: none;
}

/* =======================
   Блок "Чому ми"
======================= */
.title-why-me {
    width: 20%;
}

.why-us-home {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.right-why-us-home {
    width: 80%;
}

.block-image-text-why-us {
    display: flex;
    align-items: flex-end;
    gap: 1.875rem;
}

.sub-left-why-me-home,
.sub-right-why-me-home {
    flex: 1;
}

.sub-left-why-me-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.description-title-why-us-home {
    line-height: 1.1;
    max-width: 31rem;
}

/* Чередування блоків */
.block-image-text-why-us:nth-child(2n) {
    flex-direction: row-reverse;
    padding: 2.5rem 0;
}

/* =======================
   ЄДИНИЙ СТИЛЬ ДЛЯ ВСІХ H2 + ПІДЗАГОЛОВКІВ
======================= */

/* Базова стилістика для всіх заголовків і підзаголовків у блоці */
.about-us-home-section h2,
.title-why-me h2,
.sub-title-why-us-home {
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2f4447;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

/* Основні заголовки (Про нас, Чому ми) */
.about-us-home-section h2,
.title-why-me h2 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

/* Підзаголовки в блоці "Чому ми" */
.sub-title-why-us-home {
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
}

/* =======================
   Медіа-запити
======================= */
@media (max-width: 1450px) {
    .text-about-home .text-medium {
        font-size: 1.1rem;
    }
}

/* Мобільна */
@media (max-width: 766px) {

    /* Заголовки й підзаголовки — по центру */
    .about-us-home-section h2,
    .title-why-me h2,
    .sub-title-why-us-home {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .row-all-about-home {
        grid-template-columns: 1fr;
        grid-row-gap: 1.25rem;
    }

    .text-about-home .text-medium {
        font-size: 1rem;
        padding-top: 1.875rem;
    }

    .row-image-about-home {
        order: 2;
        height: auto;
    }

    /* Чому ми */
    .why-us-home {
        flex-direction: column;
    }

    .title-why-me {
        width: 100%;
        margin: 1.875rem 0;
    }

    .right-why-us-home {
        width: 100%;
    }

    .block-image-text-why-us {
        flex-direction: column !important;
        gap: 1.25rem;
        margin-bottom: 1.875rem;
    }

    .sub-left-why-me-home img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .sub-title-why-us-home.text-medium {
        font-size: 1rem;
        padding-bottom: 10px;
    }

    .description-title-why-us-home.text-medium {
        font-size: 1rem;
        line-height: 1.2;
    }
}

