/* Section 6 - Online Consultation Block */

.section6 {
    position: relative;
    background: var(--black22, #222);
    color: var(--white, #ffffff);
    font-family: var(--font-family);
    overflow: hidden;
}

.section6__wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.section6__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.section6__image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.section6__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.section6__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--black22, #222);
}

.section6__title {
    margin: 0;
    color: var(--white, #ffffff);
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 106%;
}

.section6__description {
    margin: 0;
    color: var(--grayc5, #c5c5c5);
    font-family: var(--font-family), serif;
    font-weight: 400;
    line-height: 150%;
    max-width: 430px;
}

.section6__button {
    margin-top: 12px;
    width: 100%;
}

/* Mobile (<= 639px) - column with image on top */
@media (max-width: 639px) {
    .section6 {
        padding: 80px 0;
    }

    .section6__inner {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .section6__image {
        width: 100%;
        height: 300px;
        position: relative;
        overflow: hidden;
        order: 1; /* Изображение сверху */
    }

    .section6__image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section6__content {
        width: 100%;
        padding: 40px 20px;
        order: 2; /* Контент снизу */
        text-align: center;
    }

    .section6__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section6__description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .section6__button {
        width: 100%;
    }
}

/* Tablet (640px+) - 50/50 split with image on left */
@media (min-width: 640px) {
    .section6 {
        padding: 0; /* Убрать padding у секции */
    }

    .section6__inner {
        display: flex;
        flex-direction: row;
        min-height: 500px;
    }

    .section6__image {
        width: 50%;
        position: relative;
        overflow: hidden;
        order: 1; /* Изображение слева */
    }

    .section6__image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section6__content {
        width: 50%;
        padding: 60px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        order: 2; /* Контент справа */
        text-align: left;
    }

    .section6__title {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .section6__description {
        font-size: 16px;
        margin-bottom: 34px;
    }

    .section6__button {
        width: auto;
        align-self: flex-start;
        margin-top: 0;
    }
}

/* Desktop (1024px+) - 50/50 split without gap */
@media (min-width: 1024px) {
    .section6 {
        margin: 0 50px;
    }

    .section6__wrapper {
        flex-direction: row;
        min-height: 600px; /* Минимальная высота */
    }

    .section6__inner {
        display: flex;
        flex-direction: row;
        min-height: 600px;
    }

    .section6__image {
        width: 50%;
        position: relative;
        overflow: hidden;
        order: 1; /* Изображение слева */
    }

    .section6__image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section6__content {
        width: 50%;
        padding: 50px 55px 50px 50px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        order: 2;
        text-align: left;
    }

    .section6__title {
        font-size: 32px;
        margin-bottom: 34px;
    }

    .section6__description {
        font-size: 16px;
        margin-bottom: 34px;
    }
}

@media (min-width: 744px) and (max-width: 1023px)  {
    .section6__wrapper {
        flex-direction: row;
        min-height: 500px;
    }
}
