/* ============================================================
   PERSONAS — переделано под JTBD-формат из ТЗ.
   Базовая разметка не меняется, только формат body.
   ============================================================ */

.personas {
  padding: clamp(56px, 7.5vw, 112px) 0;
  position: relative;
  border-top: 1px solid var(--line);
}

.personas-head { max-width: 720px; }

.personas-tabs {
  margin-top: 48px;
  display: flex; gap: 6px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.personas-tabs::-webkit-scrollbar { display: none; }

.personas-tabs .tab {
  position: relative;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s;
}
.personas-tabs .tab:hover { color: var(--ink-0); }
.personas-tabs .tab.is-active { color: var(--ink-0); }
.personas-tabs .tab::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--red-0);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.personas-tabs .tab.is-active::after { transform: scaleX(1); }

.personas-panels { margin-top: 48px; }
.persona-panel { display: none; }
.persona-panel.is-active { display: grid; }

.persona-panel {
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: flex-start;
}
@media (max-width: 920px) {
  .persona-panel { grid-template-columns: 1fr; }
}

.persona-panel h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
.persona-panel h3 em { color: var(--red-0); }

/* ─── JTBD ─────────────────────────────────────── */
.jtbd {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 22px;
  align-items: baseline;
}
.jtbd dt {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-0);
  margin: 0;
  padding-top: 3px;
}
.jtbd dd {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.jtbd dt + dd { border-bottom: 1px dashed var(--line); padding-bottom: 14px; }
.jtbd dt:last-of-type + dd { border-bottom: 0; }

.persona-extra { margin-top: 24px; color: var(--ink-2); font-size: 15px; }

/* ─── preview screen (как было) ─────────────── */
.persona-screen {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  min-height: 360px;
  display: flex; flex-direction: column; gap: 14px;
}
.persona-screen .ps-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}
.persona-screen .ps-head .dots { display: inline-flex; gap: 5px; }
.persona-screen .ps-head .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-4);
}
.persona-screen .ps-body {
  flex: 1;
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1.55;
}
.persona-screen .bubble {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  position: relative;
}
.persona-screen .bubble.me {
  background: linear-gradient(180deg, var(--red-0), var(--red-1));
  color: #fff;
  border-color: transparent;
  margin-left: 18%;
}
.persona-screen .bubble .meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.persona-screen .bubble.me .meta { color: rgba(255,255,255,0.75); }

.persona-screen .ps-foot {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.persona-screen .ps-foot .mic {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red-0), var(--red-1));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(251,26,38,0.18);
}
.persona-screen .ps-foot .mic::before {
  content: "";
  width: 8px; height: 12px;
  border-radius: 4px;
  background: #fff;
}
