.seo-text {
    position: relative;
    box-sizing: border-box;
    padding: 64px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-radius: 24px;
    border: 1px solid #E1E1E1;
    background: #FFFFFF;
    font-family: "TT Hoves", sans-serif;
}

.seo-text * {
    box-sizing: border-box;
    margin: 0;
}

/* Заголовок H2 - через тег и через класс */
.seo-text h2,
.seo-text .seo-title-h2 {
    color: #212121;
    font-size: 30px;
    font-weight: 600;
    line-height: 34px;
    letter-spacing: -0.3px;
    margin: 0 0 32px 0;
}

/* Заголовок H3 - через тег и через класс */
.seo-text h3,
.seo-text .seo-title-h3 {
    color: #212121;
    font-size: 22px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: -0.22px;
    margin-bottom: 8px;
}

/* Текст параграфа */
.seo-text p {
    color: #212121;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 32px;
}

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

/* Списки */
.seo-text ol {
    list-style-type: none;
    counter-reset: seo-counter;
    margin: 0 0 0 40px;
    padding: 15px 0 5px 0;
}

.seo-text ol li {
    position: relative;
    margin: 0;
    padding: 0 0 20px 10px;
    line-height: 1.4;
    color: #212121;
    font-size: 20px;
    font-weight: 400;
}

.seo-text ol li:before {
    content: counter(seo-counter);
    counter-increment: seo-counter;
    display: inline-block;
    position: absolute;
    top: 0;
    left: -38px;
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border-radius: 100px;
    border: 1px solid #212121;
    color: #212121;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    font-weight: normal;
}

/* Кнопка раскрытия контента */
.seo-text__expand-button {
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 100px;
    border: 1px solid #E1E1E1;
    background: #FFFFFF;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -24px;
    transition: transform .25s, background-color .25s, border-color .25s;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    padding: 0;
    margin: 0;
}

.seo-text__expand-button:hover {
    background-color: #FFF9CF;
    border: 2px solid #E1E1E1;
}

.seo-text__expand-button:hover svg path {
    stroke: #212121;
}

.seo-text__expand-button:hover svg rect {
    fill: #FFF9CF;
    stroke: #FFF9CF;
}

.seo-text__expand-button--active {
    transform: rotate(180deg) translateX(50%);
}

/* Скрытая часть контента */
.seo-text__full-content {
    display: none;
}

/* Состояние expanded - контент показан */
.seo-text__preview.seo-text__preview--expanded + .seo-text__full-content {
    display: block;
}

/* Мобильные устройства */
@media (max-width: 767.98px) {
    .seo-text {
        padding: 16px 20px 20px;
        gap: 25px;
        border-radius: 12px;
    }

    .seo-text h2,
    .seo-text .seo-title-h2 {
        font-size: 22px;
        line-height: 26px;
        margin-bottom: 25px;
    }

    .seo-text h3,
    .seo-text .seo-title-h3 {
        font-size: 22px;
        line-height: 26px;
    }

    .seo-text p {
        font-size: 18px;
        line-height: 28px;
    }

    .seo-text ol li {
        font-size: 18px;
    }

    .seo-text__preview:not(.seo-text__preview--expanded) p {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1199px) {
    .seo-text {
        padding: 16px 32px;
        gap: 25px;
    }
}