/* VIROTOS 3.0: история живёт внутри «Обо мне», а не на главной. */
.about-story-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin: 21px 0 0;
  padding: clamp(16px, 3.2vw, 21px);
  border: 1px solid var(--v-border-strong);
  border-radius: 18px;
  background: linear-gradient(122deg, var(--v-surface-2), var(--v-surface));
  color: var(--v-ink);
}
.about-story-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 140px;
  height: 140px;
  right: -65px;
  top: -66px;
  border-radius: 50%;
  background: var(--v-tint);
  box-shadow: 0 0 0 15px var(--v-tint);
  pointer-events: none;
}
.about-story-card__copy { min-width: 0; flex: 1 1 200px; }
.about-story-card__kicker {
  display: block;
  color: var(--v-accent-strong);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.5;
  margin-bottom: 5px;
}
.about-story-card h4 { color: var(--v-ink); font-size: 19px; letter-spacing: -.01em; margin: 0 0 5px; }
.about-story-card p { color: var(--v-muted); font-size: 13px; line-height: 1.55; margin: 0; }
.about-story-card__button, .about-story-back {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--v-accent);
  background: var(--v-accent);
  color: var(--v-accent-ink);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, filter .16s ease;
}
.about-story-card__button:hover, .about-story-back:hover { filter: brightness(1.08); transform: translateY(-1px); }
.about-story-card__button:focus-visible, .about-story-back:focus-visible {
  outline: 3px solid var(--v-accent);
  outline-offset: 3px;
}
.about-story-back {
  margin-bottom: 17px;
  background: var(--v-surface-2);
  color: var(--v-ink);
  border-color: var(--v-border-strong);
}
/* Точки и линия таймлайна теперь следуют обоим цветовым режимам. */
.modal-body .timeline { border-left-color: var(--v-border-strong); }
.modal-body .timeline .event::before { background: var(--v-accent); box-shadow: 0 0 0 3px var(--v-tint); }
.modal-body .timeline .event span { color: var(--v-muted); }
@media (max-width: 560px) {
  .about-story-card { padding: 15px; gap: 12px; }
  .about-story-card__button { width: 100%; }
  .about-story-back { max-width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .about-story-card__button, .about-story-back { transition: none; }
}
