/**
 * Стили блока "Текст и изображение" для фронтенда
 */

.text-image-block__content {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    align-items: stretch;
}

.has-text-background .text-image-block__content .text-image-block__title,
.has-text-background .text-image-block__content .text-image-block__description {
    color: #18383C !important;
}

.text-image-block.reverse-layout .text-image-block__content {
    flex-direction: row-reverse;
}

.text-image-block__text {
    flex: 1;
    min-width: 0;
}

.text-image-block.has-text-background .text-image-block__title em {
    color: var(--color-text-green);
}

.text-banner-block .text-image-block__description {
    margin: 0;
    color: var(--color-text-green);
    font-size: 30px;
    /* font-weight: 600; */
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.text-banner-block .text-image-block__plain {
    color: #18383C;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 10px;
}

.text-banner-block .text-image-block__plain ul {
    margin: 10px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

.text-banner-block .text-image-block__plain li {
    display: flex;
    gap: 8px;
    text-align: left;
}

.text-banner-block .text-image-block__plain li:before {
    content: "";
    left: 0;
    top: 0;
    color: rgb(232, 230, 212);
    font-weight: bold;
    min-width: 22px;
    max-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 100px;
    background-color: var(--color-text-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='23' viewBox='0 0 22 23' fill='none'%3E%3Cpath d='M11 0.487305C4.93436 0.487305 0 5.42166 0 11.4873C0 17.5529 4.93436 22.4873 11 22.4873C17.0656 22.4873 22 17.5529 22 11.4873C22 5.42166 17.0656 0.487305 11 0.487305Z' fill='%2376824A'/%3E%3Cpath d='M16.5752 9.15625L10.6168 15.1145C10.438 15.2932 10.2034 15.3832 9.96875 15.3832C9.7341 15.3832 9.49945 15.2932 9.32069 15.1145L6.34158 12.1354C5.98306 11.777 5.98306 11.1976 6.34158 10.8392C6.69994 10.4807 7.27917 10.4807 7.6377 10.8392L9.96875 13.1703L15.2791 7.86014C15.6374 7.50162 16.2167 7.50162 16.5752 7.86014C16.9335 8.21849 16.9335 8.79773 16.5752 9.15625Z' fill='%23FAFAFA'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}


.text-image-block__description p {
    margin: 0 0 15px 0;
}

.text-image-block__description p:last-child {
    margin-bottom: 0;
}

.text-image-block__description ul {
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.text-image-block__description li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.text-image-block__description li:before {
    content: "";
    display: flex;
    width: 18px;
    height: 18px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    aspect-ratio: 1/1;
    background-image: url("https://new.yourmed24.ru/wp-content/uploads/2025/09/icon-checkmark.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    position: absolute;
    left: 0;
    top: 0;
}

/* Базовые стили для изображения (переопределяются в типах) */
.text-image-block__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-image-block__img {
    border-radius: 12px;
}

.text-image-block.has-background {
    margin-left: calc(585px - 50vw);
    margin-right: calc(585px - 50vw);
    max-width: 100vw;
    overflow: hidden;
    padding: 100px calc(50vw - 585px);
    background: #E8E6D4;
}

.has-background+.has-background:not(.videos) {
    margin-top: -200px;
}

.text-image-block.has-background .text-image-block__title,
.text-image-block.has-background .text-image-block__title {
    color: #18383C !important;
}

.text-image-block.has-background .text-image-block__description,
.text-image-block.has-background .text-image-block__description {
    color: #18383C;
}

.text-image-block.has-text-background .text-image-block__description em,
.text-image-block.has-background .text-image-block__description em {
    color: var(--color-text-green);
}

.text-image-block.has-text-background .text-image-block__text {
    border-radius: 8px;
    background: #E8E6D4;
    padding: 30px;
}

.text-image-block__points {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
    margin-top: 30px;
}

.text-image-block__point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
}

.text-image-block__point-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.text-image-block__point-icon-img {
    width: 26px;
    height: 26px;
}

.text-image-block__point-text {
    color: #18383C;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    line-height: normal;
}

.points-control {
    margin-top: 15px;
}

.point-item {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.point-icon-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-point-icon-button,
.remove-point-icon-button {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-point-icon-button {
    background: #0073aa;
    color: white;
    border: none;
}

.upload-point-icon-button:hover {
    background: #005a87;
}

.remove-point-icon-button {
    background: #dc3232;
    color: white;
    border: none;
}

.remove-point-icon-button:hover {
    background: #a00;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .text-image-block__content {
        gap: 30px;
    }

    .text-image-block.image-fixed .text-image-block__image {
        flex: 0 0 350px;
    }

    .text-image-block.image-text-size .text-image-block__image {
        flex: 0 0 auto;
    }

    .text-image-block__title {
        font-size: 28px;
    }

    .text-image-block__description {
        font-size: 16px;
    }
}

.text-banner-block {
    border-radius: 8px;
    background: #E8E6D4;
    padding: 5px;
}

.text-banner-block .text-image-block__text {
    padding: 70px 0 70px 20px;
}

.text-banner-block .text-image-block__text {
    color: #18383C;
    font-size: 38px;
}

.text-image-block__title {
    margin-bottom: 10px;
    font-size: 38px;
}

.text-image-block__title em {
    color: var(--color-text-green);
}

/* Стили для списков */
.text-image-block__list {
    gap: 10px;
    display: flex;
    flex-direction: column;
}

/* Ориентация списка */
.text-image-block__list.orientation-horizontal .list-item {
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
}

.text-image-block__list.orientation-vertical {
    flex-direction: column;
}

.text-image-block__list .list-item {
    color: #fff;
    position: relative;
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 6px;
    border: 1px solid rgba(232, 230, 212, 0.30);
    background: rgba(132, 168, 172, 0.10);
    padding: 20px;
}

.text-image-block__list .list-item .list-item__title {
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
}

.text-image-block.has-text-background .text-image-block__list .list-item,
.text-image-block.has-background .text-image-block__list .list-item {
    border-radius: 8px;
    border: 1px solid rgba(118, 130, 74, 0.60);
    background: rgba(118, 130, 74, 0.05);
    color: var(--color-text-green);
}

.text-image-block.has-text-background .text-image-block__list .list-item__title,
.text-image-block.has-background .text-image-block__list .list-item__title {
    color: #18383c;
}

/* Обычный список (bullet) */
.text-image-block__list.list-bullet .list-item:not(.list-item--with-title)::before {}

/* Нумерованный список */
.text-image-block__list.list-number .list-item {
    counter-increment: list-counter;
}

.text-image-block__list.list-number {
    counter-reset: list-counter;
}

/* Список с галочками */
.text-image-block__list.list-number .list-item:not(.list-item--with-title)::before,
.text-image-block__list.list-checkmark .list-item:not(.list-item--with-title)::before {
    content: '';
    left: 0;
    top: 0;
    color: #E8E6D4;
    font-weight: bold;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 100px;
    background-color: var(--color-text-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='23' viewBox='0 0 22 23' fill='none'%3E%3Cpath d='M11 0.487305C4.93436 0.487305 0 5.42166 0 11.4873C0 17.5529 4.93436 22.4873 11 22.4873C17.0656 22.4873 22 17.5529 22 11.4873C22 5.42166 17.0656 0.487305 11 0.487305Z' fill='%2376824A'/%3E%3Cpath d='M16.5752 9.15625L10.6168 15.1145C10.438 15.2932 10.2034 15.3832 9.96875 15.3832C9.7341 15.3832 9.49945 15.2932 9.32069 15.1145L6.34158 12.1354C5.98306 11.777 5.98306 11.1976 6.34158 10.8392C6.69994 10.4807 7.27917 10.4807 7.6377 10.8392L9.96875 13.1703L15.2791 7.86014C15.6374 7.50162 16.2167 7.50162 16.5752 7.86014C16.9335 8.21849 16.9335 8.79773 16.5752 9.15625Z' fill='%23FAFAFA'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.text-image-block__list.list-number .list-item:not(.list-item--with-title)::before {
    content: '0' counter(list-counter);
    font-size: 10px;
    font-style: italic;
    font-weight: 500;
    background-image: none;
}

/* Стили для разных типов изображений */
.text-image-block.image-fixed .text-image-block__image {
    flex: 0 0 575px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-image-block.image-fixed .text-image-block__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 550px;
    max-width: 575px;
}

.text-image-block.image-text-size .text-image-block__image {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: left;
    align-self: stretch;
    max-width: calc(50% - 5px);
    position: relative;
    width: 100%;
    flex-direction: column;
    min-height: 300px;
}

.text-image-block.image-text-size .text-image-block__image img {
    border-radius: 8px;
}

.text-image-block.image-text-size .text-image-block__image h4 {
    color: var(--color-text);
    font-size: 28px;
    font-weight: 500;
    margin: 20px 0 0 0;
}

.text-image-block.image-text-size .text-image-block__image h5 {
    color: var(--color-text-green);
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.text-image-block.image-text-size .text-image-block__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.text-image-block__buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* Дополнительные стили для лучшего внешнего вида */
.text-image-block__text {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: calc(50% - 5px);
    justify-content: center;
}

.text-image-block__image {
    max-width: calc(50% - 5px);
}

.text-image-block__image form {
    margin: 20px 10px 0 10px;
    box-sizing: border-box;
    width: auto;
}

.text-image-block__image .dent-form__fields,
.text-image-block__image .dent-form__fields input {
    width: 100%;
    box-sizing: border-box;
}
.has-background input:-webkit-input-placeholder{
    color: red;
}
.text-image-block__image .dent-form__fields input {
    border-radius: 100px;
    border: 1px solid #76824A;
    background: transparent;
    color: var(--color-text);
}

.text-image-block__image .dent-form__disclaimer {
    color: var(--color-text);
    text-align: left;
    margin: -10px 0 10px 0;
}

@media (max-width: 768px) {
    .text-image-block.image-text-size .text-image-block__img {
        position: relative;
    }

    .text-image-block__text::before {
        display: none;
    }

    .text-image-block__text {
        max-width: 100%;
    }

    .text-image-block.image-text-size .text-image-block__image {
    min-height: 100px;
    padding: 0px 5px 5px 5px;
}

.text-image-block__points {
    margin-top: 0;
}

.has-background+.has-background:not(.videos) {
    margin-top: -140px;
}
}

@media (max-width: 768px) {
    .text-image-block__image,
    .text-banner-block .text-image-block__text {
        padding: 15px 15px 0;
        gap: 30px;
    }
     .text-banner-block .text-image-block__text{
         
     }
.text-image-block__image form{
    margin: 10px 0 0 0;
}
    .text-image-block.has-background+.text-image-block.has-background {
        margin-top: -70px;
    }

    .text-image-block {
        /* margin: 30px 0; */
    }

    .text-image-block.has-background {
        padding: 40px 0;
        margin: 30px 15px;
    }

    .text-image-block.has-text-background .text-image-block__text {
        padding: 20px;
        margin: 0;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .text-image-block__content {
        flex-direction: column;
        gap: 20px;
        /* padding: 0 15px; */
    }

    .text-image-block.reverse-layout .text-image-block__content {
        flex-direction: column;
        gap: 10px;
    }

    .text-image-block.image-fixed .text-image-block__image {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .text-image-block.image-text-size .text-image-block__image {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        align-self: stretch;
    }

    .text-image-block.image-text-size .text-image-block__image {
        max-width: 100%;
    }

    .text-image-block.image-text-size .text-image-block__img {
        height: 100%;
        object-fit: cover;
    }

    .text-image-block__title {
        font-size: 24px;
        margin-bottom: 0;
        text-align: center;
        width: 100%;
    }

    .text-banner-block .text-image-block__plain {
        text-align: center;
    }

    .text-banner-block .text-image-block__description,
    .text-image-block__description {
        font-size: 16px;
        text-align: center;
    }

    .text-image-block__list .list-item {
        font-size: 15px;
        padding-left: 25px;
    }

    .text-image-block__list.orientation-horizontal {
        flex-direction: column;
    }

    .text-image-block__list.orientation-horizontal .list-item {
        max-width: 100%;
    }

    .text-image-block__buttons {
        gap: 10px;
        justify-content: center;
        margin-top: 0;
    }

    .button {
        min-width: 140px;
        padding: 12px 24px;
        font-size: 15px;
    }

    .text-image-block.has-text-background .text-image-block__description,
    .text-image-block.has-background .text-image-block__description {
        text-align: left;
    }
    .text-image-block__description {
        margin-top: 10px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .text-image-block__content {
        padding: 0;
    }

    .text-image-block.has-background {
        padding: 30px 0;
        margin: 20px 10px;
    }

    .text-image-block.has-text-background .text-image-block__text {
        padding: 15px;
        margin: 0;
    }

    .text-image-block__title {
        font-size: 22px;
    }

    .text-image-block__description {
        font-size: 15px;
    }

    .text-image-block__list .list-item {
        font-size: 14px;
        padding-left: 20px;
    }

    .text-image-block__list.orientation-horizontal {
        flex-direction: column;
    }

    .text-image-block__list.orientation-horizontal .list-item {
        max-width: 100%;
    }

    .text-image-block.image-text-size .text-image-block__image {
        align-self: flex-start;
    }

    .text-image-block.image-text-size .text-image-block__img {
        height: auto;
    }

    .text-image-block__buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        padding: 14px 20px;
        font-size: 14px;
    }

    .text-image-block__img {
        border-radius: 8px;
    }
}