.expandable-btn {
  margin-top: 1em;
  display: inline-block;
  padding: 8px 14px;
  background-color: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 4px;
  transition:.3s;
}
.expandable-btn:hover {
  background-color: #5cb85c;
  border: 1px solid #26a269;
  color:#fff;
}

.expandable-text .hidden-text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  white-space: pre-wrap;
  display: block;
  line-height: 1.5;
}

.expandable-text .hidden-text.visible {
  max-height: none !important; /* Полностью раскрываем */
  opacity: 1;
  overflow: visible;
}

/* Эффект печати */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-color, #0066cc); }
}

.print-effect {
  display: inline-block;
  position: relative;
  overflow: hidden;
  animation: typing calc(var(--text-length) * 0.03s) steps(30, end),
             blink-caret 0.75s step-end infinite;
  border-right: 2px solid;
  white-space: nowrap;
}
