/* Author Igor Veynik | Site: NexusLab.ru | Telegram: @thenexus | created 2026-09-18 | updated 2026-09-18 */
/* LS-18 п.5 — сворачивание длинных текстов до 3 строк с кнопкой «Показать все».
   Клампит SEO-текст раздела, описание карточки товара и т.п. Кнопку и класс-кламп
   навешивает ls18-collapse.js только когда текст реально длиннее 3 строк. */

.ls18-collapse {
    overflow: hidden;
    position: relative;
    transition: max-height 0.35s ease;
}

/* Плавное затухание нижней строки, пока текст свёрнут */
.ls18-collapse:not(.ls18-open)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2.4em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.ls18-collapse-btn {
    display: block;
    margin: 10px auto 0;
    padding: 6px 14px;
    border: none;
    background: none;
    color: #a55e25;
    font-weight: 500;
    cursor: pointer;
}

.ls18-collapse-btn:hover {
    text-decoration: underline;
}
