/* текст (основной контейнер с ограничением) */
.text-content {
    padding-bottom: 60px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2d3a4b;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* раскрыто — значение должно быть больше, чем полная высота текста */
.text-content.expanded {
    max-height: auto;   /* если текст очень длинный, увеличьте */
}
/* стили для скрытого блока */
.text_colapsed {
    overflow: hidden;
}
/* контейнер для кнопки — выравнивание */
.button-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
    position: absolute;
    bottom: 0;
}

/* стиль кнопки */
.toggle-btn {
    background: white;
    border: 1.5px solid #cbd5e1;
    border-radius: 40px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 550;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e22427;
}

.toggle-btn:hover {
/*    background: #eef2ff;
    border-color: #3b82f6;
    box-shadow: 0 7px 14px rgba(59,130,246,0.15);
    transform: translateY(-1px);*/
}

.toggle-btn:active {
/*    background: #dbeafe;
    transform: translateY(1px);
    box-shadow: none;*/
}

/* стрелочка для наглядности */
.toggle-btn::after {
    content: "↓";
    font-size: 1.2rem;
    transition: transform 0.2s;
}

/* когда раскрыто — стрелка смотрит вверх */
.expanded .button-wrapper .toggle-btn::after {
    content: "↑";
}