:root {
    --lh: 1.5em; /* Высота строки */
    --line-limit: 10; /* Лимит строк */
}

.card {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    font-family: sans-serif;
}

.text-content {
    line-height: var(--lh);
    overflow: hidden;
    /* Анимация высоты */
    max-height: calc(var(--lh) * var(--line-limit));
    transition: max-height 0.4s ease-in-out;

    /* Троеточие */
    display: -webkit-box;
    -webkit-line-clamp: var(--line-limit);
    -webkit-box-orient: vertical;
}


/* Состояние при разворачивании */
.text-content.is-open {
    max-height: 1000px; /* Достаточный запас */
    -webkit-line-clamp: unset;
}

.b-vacantions__item.card-is-open {
    position: absolute;
    background: #fff;
    z-index: 500;
    width: 400px;

}

.toggle-btn {
    margin-top: 8px;
    color: #007bff;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-weight: bold;
}