/* Section3 Combo Block */

.section3 {
    position: relative;
    color: var(--white, #ffffff);
    font-family: var(--font-family);
    overflow: hidden;
}

.section3__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section3__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section3__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(5, 5, 5, 0.75);
}

.section3__wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.section3__content {
    background-color: var(--black22, #222);
    display: flex;
    flex-direction: column;
}

.section3__title {
    margin: 0;
    color: var(--white, #ffffff);
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 120%;
}

.section3__description {
    margin: 0;
    color: var(--grayc5, #c5c5c5);
    font-family: var(--font-family), serif;
    font-weight: 400;
    line-height: 138%;
    max-width: 427px;
}

.section3__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section3__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.section3__item-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section3__item-icon img,
.section3__item-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.section3__item-text {
    color: var(--white, #ffffff);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
}

.section3__button {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    padding: 18px 81px;
}

@media (min-width: 743px) {
    .section3__button {
        width: auto;
    }
}

/* Mobile - остается column */
@media (max-width: 743px) {
    .section3 {
        padding: 60px 0;
    }

    .section3__content {
        width: 100%;
        padding: 34px 20px 40px;
        order: 1;
        gap: 20px;
    }

    .section3__image {
        width: 100%;
        height: 470px;
        position: relative;
        overflow: hidden;
        order: 2;
    }

    .section3__image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section3__title {
        font-size: 28px;
    }
}

@media (max-width: 391px) {
    .section3__image {
        height: 370px;
    }
}

/* Tablet - 50/50 split */
@media (min-width: 744px) and (max-width: 1023px) {
    .section3 {
        padding: 0;
    }

    .section3__wrapper {
        flex-direction: row;
        min-height: 500px;
    }

    .section3__content {
        width: 50%;
        padding: 60px 40px;
        order: 1; /* Контент слева */
        justify-content: center;
        gap: 24px;
    }

    .section3__image {
        width: 50%;
        position: relative;
        overflow: hidden;
        order: 2; /* Изображение справа */
        min-height: 500px;
    }

    .section3__image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section3__title {
        font-size: 36px;
    }

    .section3__description,
    .section3__item-text {
        font-size: 15px;
    }
}

/* Desktop - 50/50 split без отступа */
@media (min-width: 1024px) {
    .section3 {
        padding: 0 50px;
    }

    .section3__wrapper {
        flex-direction: row;
        min-height: 600px; /* Минимальная высота */
    }

    .section3__content {
        width: 50%;
        padding: 34px 50px; /* Padding внутри контента */
        justify-content: space-around;
        gap: 24px;
    }

    .section3__image {
        width: 50%;
        position: relative;
        overflow: hidden;
    }

    .section3__image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section3__title {
        font-size: 32px;
    }

    .section3__description {
        font-size: 16px;
    }

    .section3__item-text {
        font-size: 16px;
    }
}

/* Swapped state - image on left, content on right */
.section3--swapped .section3__wrapper {
    flex-direction: row-reverse;
}

/* Mobile - ensure swapped layout still stacks vertically */
@media (max-width: 743px) {
    .section3--swapped .section3__wrapper {
        flex-direction: column;
    }
}
