  :root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --border: #e5e5e2;
    --muted: #767572;
    --text: #191919;
    --accent: #f04e23;
    --accent-hover: #d83d13;
    --ok: #0a9b5b;
    --err: #c63a1b;
    --tg: #26a5e4;
    --vk: #0077ff;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }

  .topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px;
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 10;
  }
  .topbar .logo { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
  .topbar .crumb { color: var(--muted); font-size: 13px; margin-left: auto; }

  .container { max-width: 880px; margin: 0 auto; padding: 28px 22px 80px; }

  .stage { display: none; }
  .stage.active { display: block; animation: fadeIn 0.25s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

  /* ── Goal picker (stage-goal) ── */
  .goal-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 18px;
  }
  .goal-tile {
    appearance: none; -webkit-appearance: none;
    text-align: left; cursor: pointer; font: inherit; color: inherit;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px;
    transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s, border-color .18s, background .18s;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
  }
  .goal-tile:hover {
    transform: translateY(-2px); border-color: #0d9488;
    box-shadow: 0 6px 20px -8px rgba(13,148,136,.35);
  }
  .goal-tile:active { transform: translateY(0); }
  .goal-tile.picked {
    border-color: #0d9488; background: #f0fdfa;
    animation: goalPulse .45s cubic-bezier(.2,.7,.2,1);
  }
  @keyframes goalPulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(13,148,136,.45); }
    50%  { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(13,148,136,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13,148,136,0); }
  }
  .goal-emoji { font-size: 28px; line-height: 1; }
  .goal-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
  .goal-sub   { font-size: 13px; color: var(--muted); line-height: 1.4; }
  .goal-custom-wrap {
    margin-top: 14px; display: flex; gap: 10px; align-items: center;
    animation: fadeIn .25s ease;
  }
  .goal-custom-wrap input {
    flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: 10px; font: inherit; background: var(--surface);
  }
  .goal-custom-wrap input:focus { outline: none; border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
  @media (max-width: 640px) {
    .goal-grid { grid-template-columns: 1fr; }
    .goal-custom-wrap { flex-direction: column; align-items: stretch; }
  }

  h1 { font-size: 28px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.015em; }
  h2 { font-size: 20px; line-height: 1.3; margin: 0 0 14px; letter-spacing: -0.01em; }
  h3 { font-size: 16px; margin: 18px 0 10px; }
  p { margin: 10px 0; }
  .lead { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

  .btn {
    display: inline-block; padding: 12px 22px; border-radius: 10px;
    border: 1px solid transparent; background: var(--accent); color: #fff;
    font-weight: 600; font-size: 15px; cursor: pointer;
    transition: background 0.15s, transform 0.08s;
    font-family: inherit;
  }
  .btn:hover { background: var(--accent-hover); }
  .btn:active { transform: translateY(1px); }
  .btn:disabled { background: #cfcfcc; cursor: not-allowed; }
  .btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
  .btn.ghost:hover { background: #f1f1ef; }

  .card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 22px;
  }

  /* Stage 0 — subject picker */
  .subj-search-wrap {
    position: relative; margin: 18px 0 14px;
  }
  .subj-search {
    width: 100%; padding: 14px 16px 14px 44px;
    border: 1px solid var(--border); border-radius: 12px;
    font: inherit; font-size: 15px; outline: none; background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
  }
  .subj-search:focus { border-color: #0d9488; box-shadow: 0 0 0 4px rgba(13,148,136,.1); }
  .subj-search::placeholder { color: #94a3b8; }
  .subj-search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 16px; color: #94a3b8; pointer-events: none;
  }
  .subj-cat {
    margin: 18px 0 8px;
    font-size: 12.5px; color: var(--muted); font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
  }
  .subj-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
  .subj-tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 12px; text-align: center;
    cursor: pointer; font-size: 14px; font-weight: 500;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: border-color .15s, transform .12s, box-shadow .15s;
  }
  .subj-tile:hover {
    border-color: var(--accent); transform: translateY(-1px);
    box-shadow: 0 4px 14px -8px rgba(240,78,35,.35);
  }
  .subj-tile .emoji { font-size: 24px; line-height: 1; }

  /* Stage 1 — diagnostic */
  .progress-bar {
    height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 0 0 18px;
  }
  .progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.3s; }
  .question-wrap .q-text {
    font-size: 17px; line-height: 1.5; margin: 0 0 18px;
  }
  .option {
    display: block; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 16px; margin: 8px 0;
    cursor: pointer; font-size: 15px; line-height: 1.45;
    transition: border-color .15s, background .15s, transform .15s cubic-bezier(.2,.7,.2,1), box-shadow .15s;
  }
  .option:hover { border-color: var(--accent); background: #fff8f5; transform: translateX(2px); }
  .option.selected {
    border-color: var(--accent); background: #fff4ef;
    box-shadow: 0 0 0 3px rgba(234,88,12,.15);
    animation: optionPick .32s cubic-bezier(.2,.7,.2,1);
  }
  @keyframes optionPick {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.015); }
    100% { transform: scale(1); }
  }
  .option.correct { border-color: var(--ok); background: #ebfaf2; }
  .option.wrong { border-color: var(--err); background: #fdf0ec; }
  .muted-hint { color: var(--muted); font-size: 13px; }

  /* ── Planning interstitial (stage-planning) ── */
  .plan-steps { list-style: none; padding: 0; margin: 26px 0 0; }
  .plan-step {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; margin-bottom: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    opacity: .35; transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease, border-color .35s;
  }
  .plan-step.active { opacity: 1; transform: translateY(0); border-color: #0d9488; }
  .plan-step.done   { opacity: 1; transform: translateY(0); border-color: #10b981; background: #f0fdf4; }
  .plan-ic {
    flex: 0 0 28px; width: 28px; height: 28px; position: relative;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .plan-spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2.5px solid rgba(13,148,136,.2);
    border-top-color: #0d9488;
    animation: planSpin .8s linear infinite;
    opacity: 0; transition: opacity .2s;
  }
  .plan-step.active .plan-spinner { opacity: 1; }
  .plan-check {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #10b981; font-weight: 700; font-size: 18px;
    transform: scale(0); transition: transform .3s cubic-bezier(.2,.7,.2,1);
  }
  .plan-step.done .plan-spinner { opacity: 0; }
  .plan-step.done .plan-check   { transform: scale(1); }
  .plan-txt { font-size: 15px; line-height: 1.4; }
  @keyframes planSpin { to { transform: rotate(360deg); } }

  /* Stage 2 — report */
  .score {
    display: inline-block; padding: 8px 16px; border-radius: 10px;
    background: #fff4ef; color: var(--accent); font-weight: 700; font-size: 16px;
    border: 1px solid #ffd8c9; margin-bottom: 14px;
  }
  .report-body {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 22px;
    font-size: 15px; line-height: 1.6; min-height: 120px;
  }
  .report-narrative { white-space: pre-wrap; min-height: 24px; }
  .report-narrative__hint { color: var(--muted); font-size: 14px; line-height: 1.55; font-style: italic; }
  .report-body .caret { display: inline-block; width: 8px; height: 18px; background: var(--accent); opacity: 0.6; animation: blink 0.9s steps(2) infinite; vertical-align: middle; margin-left: 2px; }
  /* Per-question breakdown — детерминированный фолбэк, рисуется сразу даже если LLM молчит. */
  .report-breakdown { white-space: normal; display: grid; gap: 10px; margin-top: 16px; }
  .bd-item {
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border); background: #fff;
  }
  .bd-item--ok { border-color: #b7e9d0; background: #f5fcf8; }
  .bd-item--no { border-color: #f5c8c8; background: #fdf6f6; }
  .bd-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
  .bd-mark {
    flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12.5px; color: #fff; margin-top: 1px;
  }
  .bd-mark--ok { background: #10b981; }
  .bd-mark--no { background: #ef4444; }
  .bd-q { font-weight: 600; font-size: 14.5px; line-height: 1.45; color: var(--text); }
  .bd-line { font-size: 14px; line-height: 1.5; margin: 2px 0 0 32px; }
  .bd-line s { color: var(--muted); }
  .bd-line--ok { color: #064e3b; }
  .bd-line--no { color: #6b7280; }
  .bd-line--right { color: #064e3b; }
  /* Callout под последним абзацем разбора — апсейл «у нас есть материалы». */
  .report-next-cta {
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 16px; padding: 14px 16px;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #6ee7b7; border-radius: 12px;
    box-shadow: 0 4px 14px -8px rgba(16,185,129,.35);
    animation: ctaPulseIn .45s cubic-bezier(.2,.7,.2,1);
  }
  @keyframes ctaPulseIn {
    0%   { opacity: 0; transform: translateY(6px) scale(.985); }
    100% { opacity: 1; transform: translateY(0)   scale(1); }
  }
  .report-next-cta__ic {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px;
    background: #10b981; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
  }
  .report-next-cta__txt {
    flex: 1; font-size: 14.5px; line-height: 1.55;
    color: #064e3b; font-weight: 600;
  }
  @keyframes blink { to { opacity: 0; } }

  /* Stage 3 — slice */
  .slice-header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
  .pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; background: #fff; border: 1px solid var(--border);
    border-radius: 999px; font-size: 12.5px; color: var(--muted);
  }
  .pill b { color: var(--text); font-weight: 600; }

  .video-wrap {
    position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 14px; overflow: hidden;
    background: #000; margin: 0 0 18px;
  }
  .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .video-hint { font-size: 13px; color: var(--muted); margin: -10px 0 18px; }

  .methodology-title { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
  .methodology-body {
    font-size: 15.5px; line-height: 1.7; color: var(--text);
  }
  .methodology-body p { margin: 10px 0; }
  .methodology-body ul, .methodology-body ol { margin: 10px 0 10px 22px; padding: 0; }
  .methodology-body li { margin: 4px 0; }
  .methodology-body h1, .methodology-body h2, .methodology-body h3 { margin: 18px 0 10px; }
  .methodology-body table { border-collapse: collapse; margin: 12px 0; }
  .methodology-body th, .methodology-body td { border: 1px solid var(--border); padding: 6px 10px; }

  .blank-widget {
    display: inline-block; vertical-align: baseline;
    background: #fff; border: 1px dashed var(--accent); border-radius: 8px;
    padding: 2px 4px; margin: 0 2px;
  }
  .blank-widget select {
    border: 0; background: transparent; font: inherit; padding: 2px 4px;
    color: var(--text); outline: none; cursor: pointer;
  }
  /* Инстант-фидбэк: «верно» — мягкий teal с ✓ после варианта;
     «не то» — тёплый amber с подсказкой попробовать ещё. Без агрессивного красного. */
  .blank-widget.correct {
    border-style: solid; border-color: #10b981; background: #ecfdf5;
  }
  .blank-widget.correct select { color: #047857; font-weight: 600; }
  .blank-widget.correct::after {
    content: '✓'; margin-left: 4px; color: #10b981; font-weight: 700;
  }
  .blank-widget.wrong {
    border-style: solid; border-color: #f59e0b; background: #fff7ed;
  }
  .blank-widget.wrong select { color: #b45309; font-weight: 600; }
  .blank-widget.wrong::after {
    content: 'попробуйте ещё'; margin-left: 6px;
    font-size: 11.5px; color: #b45309; font-weight: 500;
    letter-spacing: .01em;
  }
  .blank-label { color: var(--muted); font-size: 14px; }

  .ai-panel {
    margin-top: 22px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px;
  }
  .ai-panel .head { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; }
  .ai-panel .head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
  .ai-panel .head h3 { margin: 0; font-size: 15px; }
  .ai-panel .head .remaining { margin-left: auto; font-size: 12.5px; color: var(--muted); }
  .ai-hint-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
  .ai-hint {
    background: #f4f4f2; border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 12px; font-size: 12.5px; cursor: pointer; color: var(--muted);
  }
  .ai-hint:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
  .ai-messages { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
  .ai-msg { padding: 10px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
  .ai-msg.user { background: #fff4ef; align-self: flex-end; max-width: 80%; }
  .ai-msg.bot { background: #f7f7f5; align-self: flex-start; max-width: 92%; border: 1px solid var(--border); }
  .ai-msg.err { background: #fdf0ec; color: var(--err); border: 1px solid #f5c4b6; }
  .ai-msg__cta { margin-top: 10px; padding: 8px 16px; font-size: 13.5px; border-radius: 8px; }
  .ai-input { display: flex; gap: 8px; }
  .ai-input input {
    flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
    font: inherit; font-size: 14.5px; outline: none;
  }
  .ai-input input:focus { border-color: var(--accent); }
  .ai-input button { padding: 11px 20px; }

  /* ═══ Stage 3.5 — SRS deck preview ═══ */
  .srs-h { font-size: 24px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.015em; }
  .srs-meta {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px;
  }
  .srs-meta__pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 12px; font-size: 12.5px; color: var(--text);
  }
  .srs-meta__pill b { color: var(--accent); }
  .srs-meta__ic { font-size: 13px; }
  .srs-progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
  .srs-progress__fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #14b8a6, #10b981);
    transition: width .35s cubic-bezier(.2,.7,.2,1);
  }
  .srs-stage {
    position: relative; min-height: 360px;
    padding: 14px 0 8px;
  }
  .srs-card-ghost {
    position: absolute; left: 50%; top: 18px;
    width: 92%; max-width: 540px; height: 320px;
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    transform-origin: 50% 100%;
    pointer-events: none;
  }
  .srs-card-ghost--1 {
    transform: translateX(-50%) translateY(8px) scale(.97);
    opacity: .55;
    box-shadow: 0 6px 18px -10px rgba(0,0,0,.15);
  }
  .srs-card-ghost--2 {
    transform: translateX(-50%) translateY(16px) scale(.94);
    opacity: .3;
    box-shadow: 0 4px 14px -8px rgba(0,0,0,.1);
  }
  .srs-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 540px; margin: 0 auto;
    perspective: 1200px;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s;
  }
  .srs-card.swipe-left  { transform: translateX(-140%) rotate(-10deg); opacity: 0; }
  .srs-card.swipe-right { transform: translateX(140%)  rotate(10deg);  opacity: 0; }
  .srs-card.swipe-up    { transform: translateY(-60px) scale(.96);     opacity: 0; }
  .srs-card__inner {
    position: relative;
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    box-shadow: 0 16px 40px -22px rgba(0,0,0,.25);
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
    transform-style: preserve-3d;
    min-height: 400px;
  }
  .srs-card.flipped .srs-card__inner { transform: rotateY(180deg); }
  .srs-card__face {
    position: absolute; inset: 0;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    padding: 22px 24px 20px;
    display: flex; flex-direction: column;
  }
  .srs-card__face--back { transform: rotateY(180deg); }
  .srs-card__face--front { cursor: pointer; }
  .srs-card__chip {
    display: inline-flex; align-items: center; gap: 6px;
    align-self: flex-start;
    background: #f0fdfa; border: 1px solid #99f6e4; color: #0f766e;
    border-radius: 999px; padding: 4px 10px;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: 12px;
  }
  .srs-card__topic { font-size: 13.5px; color: var(--text); margin-bottom: 14px; font-weight: 600; opacity: .8; }
  .srs-card__prompt { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .srs-card__q {
    font-size: 13px; color: var(--muted);
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 10px; font-weight: 600;
  }
  .srs-card__phrase {
    font-size: 17px; line-height: 1.5; color: var(--text);
    font-weight: 500; padding: 16px 18px;
    background: #fafaf8; border-radius: 12px; border: 1px solid var(--border);
    max-height: 260px; overflow-y: auto;
  }
  .srs-card__phrase mark {
    background: linear-gradient(90deg, #fef3c7, #fde68a);
    padding: 2px 8px; border-radius: 6px;
    color: #78350f; font-weight: 700;
    letter-spacing: .04em;
  }
  .srs-flip-btn {
    appearance: none; -webkit-appearance: none;
    margin-top: 14px; padding: 12px 18px;
    background: var(--accent); color: #fff;
    border: 0; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 14.5px; font-weight: 600;
    transition: background .15s, transform .08s;
  }
  .srs-flip-btn:hover { background: var(--accent-hover); }
  .srs-flip-btn:active { transform: translateY(1px); }
  .srs-card__answer-label {
    font-size: 12px; color: var(--muted);
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 8px; font-weight: 600;
  }
  .srs-card__answer {
    font-size: 24px; line-height: 1.25; font-weight: 700;
    color: #047857; letter-spacing: -.01em;
    padding: 16px 18px;
    background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 12px;
  }
  .srs-card__hint {
    margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5;
  }
  .srs-grade { margin-top: auto; padding-top: 14px; }
  .srs-grade__title {
    font-size: 13px; color: var(--text); font-weight: 600;
    margin-bottom: 10px;
  }
  .srs-grade__btns {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  }
  .srs-grade__btn {
    appearance: none; -webkit-appearance: none;
    border: 1px solid var(--border); background: #fff;
    border-radius: 12px; padding: 12px 8px;
    cursor: pointer; font: inherit;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: border-color .15s, transform .08s, box-shadow .15s, background .15s;
  }
  .srs-grade__btn:hover { transform: translateY(-1px); }
  .srs-grade__btn:active { transform: translateY(1px); }
  .srs-grade__lbl { font-size: 14.5px; font-weight: 600; }
  .srs-grade__nxt { font-size: 11.5px; color: var(--muted); }
  .srs-grade__btn--hard:hover { border-color: #f59e0b; background: #fff7ed; box-shadow: 0 4px 14px -8px rgba(245,158,11,.4); }
  .srs-grade__btn--hard .srs-grade__lbl { color: #b45309; }
  .srs-grade__btn--med:hover  { border-color: #0d9488; background: #f0fdfa; box-shadow: 0 4px 14px -8px rgba(13,148,136,.4); }
  .srs-grade__btn--med .srs-grade__lbl { color: #0f766e; }
  .srs-grade__btn--easy:hover { border-color: #10b981; background: #ecfdf5; box-shadow: 0 4px 14px -8px rgba(16,185,129,.4); }
  .srs-grade__btn--easy .srs-grade__lbl { color: #047857; }

  .srs-done {
    padding: 24px 22px 22px;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 70%);
    border: 1px solid #a7f3d0; border-radius: 20px;
    box-shadow: 0 24px 60px -40px rgba(6,78,59,.25);
    animation: srsDoneIn .45s cubic-bezier(.2,.7,.2,1);
  }
  @keyframes srsDoneIn {
    0%   { opacity: 0; transform: translateY(8px) scale(.985); }
    100% { opacity: 1; transform: translateY(0)   scale(1); }
  }
  .srs-done__head { text-align: center; margin-bottom: 18px; }
  .srs-done__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ecfdf5; color: #047857;
    border: 1px solid #a7f3d0; border-radius: 999px;
    padding: 5px 12px 5px 10px;
    font-size: 12.5px; font-weight: 600; letter-spacing: -.005em;
    margin-bottom: 12px;
  }
  .srs-done__hero { margin: 0 auto; max-width: 460px; }
  .srs-done__big {
    display: inline-flex; align-items: baseline; gap: 10px;
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #fff;
    padding: 14px 22px 16px; border-radius: 14px;
    box-shadow: 0 10px 30px -14px rgba(6,78,59,.55);
  }
  .srs-done__big b {
    font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
  }
  .srs-done__big-sub {
    font-size: 13px; line-height: 1.25; opacity: .92; text-align: left; max-width: 160px;
  }
  .srs-done__sub {
    margin: 12px 0 0; color: var(--text); opacity: .78; font-size: 14px; line-height: 1.45;
  }

  /* — Forgetting curve — */
  .srs-curve {
    margin: 18px auto 0; max-width: 520px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 12px 14px 10px;
  }
  .srs-curve__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
  }
  .srs-curve__title { font-size: 12.5px; font-weight: 600; color: #064e3b; letter-spacing: -.005em; }
  .srs-curve__legend { display: inline-flex; gap: 12px; font-size: 11.5px; color: var(--muted); }
  .srs-curve__legend-it { display: inline-flex; align-items: center; gap: 5px; }
  .srs-curve__dot { width: 8px; height: 2px; border-radius: 2px; display: inline-block; }
  .srs-curve__dot--off { background: #d1d5db; }
  .srs-curve__dot--on  { background: #047857; }
  .srs-curve__svg { width: 100%; height: 96px; display: block; }
  .srs-curve__grid { stroke: #f1f5f9; stroke-width: 1; }
  .srs-curve__off {
    fill: none; stroke: #cbd5e1; stroke-width: 2; stroke-dasharray: 4 4;
    stroke-linecap: round;
  }
  .srs-curve__on {
    fill: none; stroke: #047857; stroke-width: 2.4;
    stroke-linejoin: round; stroke-linecap: round;
    stroke-dasharray: 800; stroke-dashoffset: 800;
    animation: srsCurveDraw 1.4s cubic-bezier(.4,.0,.2,1) .15s forwards;
  }
  @keyframes srsCurveDraw { to { stroke-dashoffset: 0; } }
  .srs-curve__marks circle {
    fill: #fff; stroke: #047857; stroke-width: 1.6;
    opacity: 0; animation: srsCurveDot .25s ease-out forwards;
  }
  .srs-curve__marks circle:nth-child(1) { animation-delay: .55s; }
  .srs-curve__marks circle:nth-child(2) { animation-delay: .85s; }
  .srs-curve__marks circle:nth-child(3) { animation-delay: 1.15s; }
  .srs-curve__marks circle:nth-child(4) { animation-delay: 1.45s; }
  @keyframes srsCurveDot {
    0%   { opacity: 0; transform: scale(.4); transform-origin: center; }
    100% { opacity: 1; transform: scale(1); }
  }
  .srs-curve__axis {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--muted); margin-top: 2px;
    font-variant-numeric: tabular-nums;
  }

  /* — Schedule pills — */
  .srs-done__schedule {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    margin: 14px auto 0; max-width: 520px;
  }
  .srs-done__schedule .srs-pill {
    background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px;
    padding: 5px 11px; font-size: 12px; color: #064e3b;
    display: inline-flex; gap: 6px; align-items: center;
  }
  .srs-done__schedule .srs-pill b { color: var(--accent); font-weight: 700; }

  /* — Teaser of step 4 (план) — */
  .srs-teaser {
    margin: 16px auto 0; max-width: 520px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 12px 14px;
  }
  .srs-teaser__row { display: flex; align-items: center; gap: 10px; }
  .srs-teaser__ic {
    font-size: 22px; line-height: 1;
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #fef3c7; flex: 0 0 auto;
  }
  .srs-teaser__copy { flex: 1 1 auto; min-width: 0; }
  .srs-teaser__title { font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--text); }
  .srs-teaser__sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
  .srs-teaser__days { display: flex; gap: 8px; margin-top: 12px; overflow: hidden; }
  .srs-teaser__day {
    flex: 1 1 0; min-width: 0;
    background: #f9fafb; border: 1px dashed #e5e7eb; border-radius: 10px;
    padding: 10px 10px 12px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .srs-teaser__day b {
    font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: #047857;
    font-variant-numeric: tabular-nums; line-height: 1;
  }
  .srs-teaser__day span { font-size: 11px; color: var(--muted); }
  .srs-teaser__skel {
    display: block; height: 6px; border-radius: 4px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 40%, #e5e7eb 80%);
    background-size: 200% 100%;
    animation: srsSkelShimmer 1.6s linear infinite;
  }
  .srs-teaser__skel:nth-child(3) { width: 80%; margin-top: 4px; }
  .srs-teaser__skel:nth-child(4) { width: 55%; }
  @keyframes srsSkelShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  .srs-teaser__more {
    flex: 0 0 auto; align-self: stretch;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 0 12px; border-radius: 10px;
    background: #ecfdf5; color: #047857; font-weight: 700; font-size: 14px;
    border: 1px dashed #a7f3d0;
    font-family: inherit; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
  }
  .srs-teaser__more:hover,
  .srs-teaser__more:focus-visible {
    background: #d1fae5; border-color: #6ee7b7; outline: none;
  }
  .srs-teaser__more:active { transform: scale(.97); }
  .srs-teaser__more-num { letter-spacing: -.02em; }
  .srs-teaser__more-arr {
    display: inline-block; font-size: 14px; line-height: 1;
    transition: transform .2s cubic-bezier(.4,.0,.2,1);
    animation: srsTeaserArrNudge 2.6s ease-in-out 1.8s infinite;
  }
  .srs-teaser__more:hover .srs-teaser__more-arr { transform: translateX(3px); }
  @keyframes srsTeaserArrNudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(3px); }
  }

  /* — Inline-промо «приз за нажатие» — */
  .srs-promo {
    margin: 14px auto 0; max-width: 520px;
    background: linear-gradient(135deg, #fff7ed 0%, #fefce8 100%);
    border: 1px solid #fcd34d; border-radius: 14px;
    padding: 10px 14px;
  }
  .srs-promo__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
  }
  .srs-promo__lbl { font-size: 12.5px; font-weight: 600; color: #92400e; letter-spacing: -.005em; }
  .srs-promo__pct {
    display: inline-flex; align-items: baseline; gap: 6px;
    font-variant-numeric: tabular-nums;
  }
  .srs-promo__pct b { font-size: 18px; font-weight: 800; color: #b45309; }
  .srs-promo__pct .srs-promo__sep { color: #d97706; opacity: .7; font-size: 14px; }
  .srs-promo__nxt { color: #047857 !important; }
  .srs-promo__bar {
    height: 6px; background: #fde68a; border-radius: 4px; overflow: hidden; margin-top: 6px;
    position: relative;
  }
  .srs-promo__fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
    width: 0%;
    transition: width 1.2s cubic-bezier(.4,.0,.2,1);
  }
  .srs-promo__hint { font-size: 11.5px; color: #78350f; margin-top: 5px; opacity: .85; }

  /* — CTA — */
  .srs-done__cta { margin-top: 18px; text-align: center; }
  .srs-done__btn {
    box-shadow: 0 14px 32px -12px rgba(4,120,87,.55);
    animation: srsCtaPulse 2.4s ease-in-out 1.6s infinite;
  }
  @keyframes srsCtaPulse {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
  }
  .srs-done__cta-sub {
    margin: 8px 0 0; font-size: 12px; color: var(--muted);
  }

  @media (max-width: 560px) {
    .srs-done { padding: 20px 14px 18px; }
    .srs-done__big { padding: 12px 16px 14px; gap: 8px; }
    .srs-done__big b { font-size: 36px; }
    .srs-done__big-sub { font-size: 12px; max-width: 130px; }
    .srs-teaser__days { gap: 6px; }
    .srs-teaser__day { padding: 8px 8px 10px; }
    .srs-teaser__day b { font-size: 16px; }
    .srs-teaser__more { padding: 0 8px; font-size: 13px; }
  }

  @media (max-width: 560px) {
    .srs-card__inner { min-height: 440px; }
    .srs-card__phrase { font-size: 15.5px; padding: 14px 14px; max-height: 280px; }
    .srs-card__answer { font-size: 20px; padding: 14px 14px; }
    .srs-grade__btns { grid-template-columns: 1fr; }
  }

  /* ═══ Voice-call modal (AI-тьютор звонит) ═══ */
  .vcall-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
    animation: vcallFadeIn .25s ease;
  }
  .vcall-overlay.show { display: flex; }
  @keyframes vcallFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .vcall {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 26px;
    padding: 32px 28px 28px;
    width: 100%; max-width: 380px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
    text-align: center;
    animation: vcallSlideIn .35s cubic-bezier(.2,.7,.2,1);
  }
  @keyframes vcallSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
  }
  .vcall__top {
    font-size: 12.5px; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
    margin-bottom: 14px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .vcall__top b { color: #fff; font-variant-numeric: tabular-nums; }
  .vcall__live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239,68,68,.6);
    animation: livePulse 1.4s ease-out infinite;
  }
  @keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  }
  .vcall__avatar-wrap {
    position: relative; width: 132px; height: 132px;
    margin: 0 auto 12px;
  }
  .vcall__avatar-wrap--small { width: 88px; height: 88px; }
  .vcall__avatar {
    position: relative; z-index: 2;
    width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 36px; font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 14px 40px -10px rgba(20,184,166,.55);
  }
  .vcall__avatar--small { font-size: 26px; }
  .vcall__avatar-letter { line-height: 1; }
  .vcall__avatar-pulse {
    position: absolute; inset: -6px; border-radius: 50%;
    background: rgba(20,184,166,.35);
    animation: avatarPulse 1.8s ease-out infinite;
  }
  .vcall__avatar-pulse--2 { animation-delay: .6s; }
  @keyframes avatarPulse {
    0%   { transform: scale(.9); opacity: .8; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
  }
  /* Активная волна при говорении (4 «диоды») */
  .vcall__avatar-wave {
    position: absolute; left: 50%; bottom: 6px;
    transform: translateX(-50%);
    display: none; align-items: flex-end; gap: 3px;
    height: 14px;
  }
  .vcall__avatar-wave.on { display: flex; }
  .vcall__avatar-wave i {
    display: block; width: 3px; background: #fff; border-radius: 2px;
    animation: waveBar 0.85s ease-in-out infinite;
  }
  .vcall__avatar-wave i:nth-child(1) { animation-delay: 0s; }
  .vcall__avatar-wave i:nth-child(2) { animation-delay: .15s; }
  .vcall__avatar-wave i:nth-child(3) { animation-delay: .30s; }
  .vcall__avatar-wave i:nth-child(4) { animation-delay: .45s; }
  @keyframes waveBar {
    0%, 100% { height: 4px;  opacity: .6; }
    50%      { height: 14px; opacity: 1; }
  }
  .vcall__name { font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
  .vcall__name--small { font-size: 16px; margin-bottom: 12px; }
  .vcall__sub { font-size: 13.5px; color: #cbd5e1; margin-bottom: 10px; }
  .vcall__hint {
    font-size: 12.5px; color: #94a3b8; line-height: 1.4;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; padding: 8px 12px;
    margin: 14px 0 22px;
  }
  .vcall__actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-top: 14px;
  }
  .vcall__btn {
    appearance: none; -webkit-appearance: none;
    border: 0; border-radius: 14px;
    padding: 14px 10px; cursor: pointer; font: inherit;
    color: #fff; font-weight: 600; font-size: 14.5px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: transform .15s, box-shadow .15s, filter .15s;
  }
  .vcall__btn-ic { font-size: 18px; line-height: 1; }
  .vcall__btn-lbl { letter-spacing: .01em; }
  .vcall__btn:hover { transform: translateY(-1px); }
  .vcall__btn:active { transform: translateY(1px); }
  .vcall__btn--decline {
    background: rgba(255,255,255,.08); color: #e2e8f0;
    border: 1px solid rgba(255,255,255,.12);
  }
  .vcall__btn--decline:hover { background: rgba(255,255,255,.12); }
  .vcall__btn--accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 12px 30px -10px rgba(16,185,129,.6);
    animation: acceptPulse 1.8s ease-in-out infinite;
  }
  @keyframes acceptPulse {
    0%, 100% { box-shadow: 0 12px 30px -10px rgba(16,185,129,.6); }
    50%      { box-shadow: 0 12px 38px -8px  rgba(16,185,129,.85); }
  }
  .vcall__btn--accept:hover { filter: brightness(1.06); }

  /* Active call */
  .vcall__transcript {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 12px 14px;
    margin-bottom: 12px; min-height: 80px; max-height: 220px;
    overflow-y: auto; text-align: left;
    font-size: 14px; line-height: 1.5;
    scrollbar-width: thin;
  }
  .vcall__msg { margin: 6px 0; padding: 8px 12px; border-radius: 12px; max-width: 92%; }
  .vcall__msg--bot {
    background: rgba(20,184,166,.18);
    border: 1px solid rgba(20,184,166,.35);
    color: #e0fdf6;
  }
  .vcall__msg--user {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    margin-left: auto; color: #f1f5f9;
  }
  .vcall__status {
    font-size: 12.5px; color: #94a3b8; min-height: 18px;
    margin-bottom: 12px;
  }
  .vcall__status.thinking::after {
    content: '…'; display: inline-block; animation: dotsBlink 1.2s infinite;
    margin-left: 2px;
  }
  @keyframes dotsBlink {
    0%, 20%  { opacity: .25; }
    50%      { opacity: 1; }
    80%, 100%{ opacity: .25; }
  }
  .vcall__input-row {
    display: grid; grid-template-columns: 44px 1fr auto; gap: 8px;
    align-items: center;
  }
  .vcall__mic {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #f04e23 0%, #d83d13 100%);
    border: 0; color: #fff; font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px -8px rgba(240,78,35,.6);
    transition: transform .12s, filter .15s, box-shadow .15s;
  }
  .vcall__mic:hover { filter: brightness(1.08); }
  .vcall__mic:active { transform: scale(.95); }
  .vcall__mic.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: micPulse 1.1s ease-out infinite;
  }
  @keyframes micPulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
    70%  { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  }
  .vcall__mic.disabled { opacity: .4; pointer-events: none; }
  .vcall__input-row input {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; padding: 11px 14px;
    color: #fff; font: inherit; font-size: 14px; outline: none;
    min-width: 0;
  }
  .vcall__input-row input::placeholder { color: #64748b; }
  .vcall__input-row input:focus { border-color: #14b8a6; }
  .vcall__send {
    appearance: none; -webkit-appearance: none;
    background: #14b8a6; color: #fff; border: 0;
    border-radius: 12px; padding: 11px 16px;
    cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
  }
  .vcall__send:hover { background: #0d9488; }
  .vcall__send:disabled { opacity: .5; cursor: not-allowed; }
  .vcall__hangup {
    appearance: none; -webkit-appearance: none;
    margin-top: 14px;
    background: rgba(239,68,68,.15); color: #fca5a5;
    border: 1px solid rgba(239,68,68,.35);
    border-radius: 999px; padding: 10px 22px;
    cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 500;
  }
  .vcall__hangup:hover { background: rgba(239,68,68,.25); color: #fff; }

  /* Регистрация прямо в окне звонка — три кнопки под транскриптом */
  .vcall__reg {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
  }
  .vcall__reg-lbl {
    font-size: 11.5px; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .08em;
    font-weight: 600; margin-bottom: 8px; text-align: left;
  }
  .vcall__reg-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  }
  .vcall__reg-btn {
    appearance: none; -webkit-appearance: none;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #fff; font: inherit; font-size: 13px; font-weight: 600;
    border-radius: 12px; padding: 9px 6px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    cursor: pointer;
    transition: transform .12s, filter .15s, background .15s, border-color .15s;
  }
  .vcall__reg-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
  .vcall__reg-btn:active { transform: translateY(1px); }
  .vcall__reg-btn[disabled],
  .vcall__reg-btn.is-disabled {
    opacity: .45; cursor: not-allowed; pointer-events: none;
  }
  .vcall__reg-btn.is-pending {
    background: rgba(20,184,166,.18);
    border-color: rgba(20,184,166,.55);
  }
  .vcall__reg-ic {
    width: 24px; height: 24px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; letter-spacing: .02em;
  }
  .vcall__reg-btn--tg .vcall__reg-ic {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    color: #fff;
  }
  .vcall__reg-btn--google .vcall__reg-ic {
    background: #fff; color: #4285f4;
  }
  .vcall__reg-btn--vk .vcall__reg-ic {
    background: #0077ff; color: #fff;
  }
  .vcall__reg-txt { font-size: 12.5px; line-height: 1; }

  @media (max-width: 480px) {
    .vcall { padding: 24px 20px 22px; }
    .vcall__avatar-wrap { width: 108px; height: 108px; }
    .vcall__avatar { font-size: 30px; }
    .vcall__transcript { max-height: 28vh; }
    .vcall__reg { padding: 8px 10px; }
    .vcall__reg-btn { padding: 8px 4px; font-size: 12px; }
    .vcall__reg-ic { width: 22px; height: 22px; font-size: 10px; }
  }

  /* ═══ Stage 3.6 — personalized 7-day plan + skill tree ═══ */
  .plan-hero { margin: 0 0 14px; }
  .plan-hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 999px;
    padding: 5px 12px 5px 10px; font-size: 12.5px; font-weight: 600;
    margin-bottom: 8px;
    background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
    transition: background .25s, color .25s, border-color .25s;
  }
  .plan-hero__badge.done {
    background: #ecfdf5; color: #047857; border-color: #a7f3d0;
  }
  .plan-hero__badge-spin {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid rgba(29,78,216,.25);
    border-top-color: #1d4ed8;
    animation: badgeSpin .8s linear infinite;
    position: relative;
  }
  .plan-hero__badge.done .plan-hero__badge-spin {
    border: 0; background: #10b981;
    animation: badgePop .35s cubic-bezier(.2,.7,.2,1);
  }
  .plan-hero__badge.done .plan-hero__badge-spin::after {
    content: '✓'; position: absolute; inset: 0;
    color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  @keyframes badgeSpin { to { transform: rotate(360deg); } }
  @keyframes badgePop  { from { transform: scale(.4); } to { transform: scale(1); } }
  .plan-hero__title { font-size: 26px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.015em; }
  .plan-hero__sub { color: var(--muted); font-size: 14.5px; margin: 0; }

  /* Thinking ticker — пока идёт LLM-генерация */
  .plan-thinking {
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
    border: 1px solid #bae6fd; border-radius: 14px;
    padding: 14px 18px; margin: 14px 0 18px;
    transition: opacity .35s, transform .35s;
  }
  .plan-thinking.hidden { display: none; }
  .plan-thinking.gone { opacity: 0; transform: translateY(-4px); pointer-events: none; }
  .plan-thinking__steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 8px;
  }
  .plan-thinking__steps li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; line-height: 1.4;
    color: var(--muted);
    opacity: .5; transform: translateY(2px);
    transition: opacity .35s, transform .35s, color .35s;
  }
  .plan-thinking__steps li.active {
    opacity: 1; color: var(--text); font-weight: 500; transform: translateY(0);
  }
  .plan-thinking__steps li.done { opacity: .9; color: var(--text); }
  .plan-thinking__ic {
    flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
    background: #e0f2fe; border: 1.5px solid #bae6fd;
    position: relative;
    transition: background .25s, border-color .25s, box-shadow .25s;
  }
  .plan-thinking__steps li.active .plan-thinking__ic {
    background: #fff; border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.15);
  }
  .plan-thinking__steps li.active .plan-thinking__ic::before {
    content: ''; position: absolute; inset: 3px; border-radius: 50%;
    background: #1d4ed8; animation: thinkPulse .9s ease-in-out infinite;
  }
  @keyframes thinkPulse {
    0%, 100% { transform: scale(.7); opacity: .6; }
    50%      { transform: scale(1);  opacity: 1;  }
  }
  .plan-thinking__steps li.done .plan-thinking__ic { background: #10b981; border-color: #10b981; }
  .plan-thinking__steps li.done .plan-thinking__ic::after {
    content: '✓'; position: absolute; inset: 0;
    color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }

  /* SKELETON: skill-tree branches */
  .skill-tree--skeleton {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-color: #e2e8f0;
  }
  .skill-tree--skeleton .skill-tree__title { color: #94a3b8; }
  .skill-tree--skeleton.hidden { display: none; }
  .skill-skel {
    display: grid; grid-template-columns: 36px 1fr 64px; align-items: center; gap: 12px;
    padding: 4px 0;
  }
  .skill-skel__ic   { width: 36px; height: 36px; border-radius: 10px; }
  .skill-skel__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .skill-skel__name { width: 50%; height: 12px; border-radius: 4px; }
  .skill-skel__bar  { width: 100%; height: 10px; border-radius: 999px; }
  .skill-skel__num  { width: 56px; height: 14px; border-radius: 4px; }
  .skill-skel__ic, .skill-skel__name, .skill-skel__bar, .skill-skel__num,
  .plan-skel__num, .plan-skel__title, .plan-skel__line {
    background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
    background-size: 200% 100%;
    animation: skelShimmer 1.5s ease-in-out infinite;
  }
  @keyframes skelShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* SKELETON: days */
  .plan-days-skeleton { display: grid; gap: 10px; margin: 8px 0 0; }
  .plan-days-skeleton.hidden { display: none; }
  .plan-skel {
    display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: stretch;
    background: var(--surface); border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 14px 16px;
  }
  .plan-skel__num   { width: 48px; height: 48px; border-radius: 12px; }
  .plan-skel__body  { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
  .plan-skel__title { width: 60%;  height: 14px; border-radius: 4px; }
  .plan-skel__line  { width: 100%; height: 11px; border-radius: 4px; }
  .plan-skel__line--short { width: 75%; }

  /* Skill tree visualization */
  .skill-tree {
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
    border: 1px solid #99f6e4; border-radius: 16px;
    padding: 18px 20px; margin: 18px 0 22px;
  }
  .skill-tree__title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14.5px; font-weight: 700; color: #064e3b;
    margin-bottom: 14px; flex-wrap: wrap;
  }
  .skill-tree__title-ic { font-size: 18px; }
  .skill-tree__legend {
    margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--muted); font-weight: 500;
    flex-wrap: wrap;
  }
  .skill-tree__legend-dot {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block; vertical-align: middle; margin-right: 4px;
  }
  .skill-tree__legend-dot--before { background: #cbd5e1; }
  .skill-tree__legend-dot--after  { background: #10b981; }
  .skill-tree__branches { display: grid; gap: 10px; }
  .skill-branch {
    display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
    opacity: 0; transform: translateY(8px);
    animation: branchIn .5s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .skill-branch:nth-child(1) { animation-delay: .05s; }
  .skill-branch:nth-child(2) { animation-delay: .15s; }
  .skill-branch:nth-child(3) { animation-delay: .25s; }
  .skill-branch:nth-child(4) { animation-delay: .35s; }
  .skill-branch:nth-child(5) { animation-delay: .45s; }
  .skill-branch:nth-child(6) { animation-delay: .55s; }
  @keyframes branchIn { to { opacity: 1; transform: translateY(0); } }
  .skill-branch__ic {
    width: 36px; height: 36px; border-radius: 10px;
    background: #fff; border: 1px solid #99f6e4;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
  }
  .skill-branch__body { min-width: 0; }
  .skill-branch__name {
    font-size: 13.5px; font-weight: 600; color: var(--text);
    margin-bottom: 4px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .skill-branch__bar {
    position: relative; height: 10px;
    background: #e2e8f0; border-radius: 999px; overflow: hidden;
  }
  .skill-branch__bar-before {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: #cbd5e1; transition: width .4s ease-out;
  }
  .skill-branch__bar-after {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #14b8a6 0%, #10b981 100%);
    width: 0%; transition: width 1.2s cubic-bezier(.2,.7,.2,1);
    box-shadow: 0 0 12px rgba(16,185,129,.45);
  }
  .skill-branch__bar-after.fill { /* width задаётся inline через JS */ }
  .skill-branch__bar-after::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: barShimmer 2.2s ease-in-out 1s infinite;
  }
  @keyframes barShimmer { to { transform: translateX(100%); } }
  .skill-branch__delta {
    font-size: 13px; font-weight: 700; color: #047857;
    font-variant-numeric: tabular-nums;
    min-width: 56px; text-align: right;
  }
  .skill-branch__delta .arrow { color: var(--muted); margin: 0 4px; font-weight: 500; }

  /* Days — vertical-timeline с цветовой прогрессией.
     Линия идёт сквозь центр кружков-номерков и видна только в зазорах между ними.
     Между карточками — мини-шеврон в цвете текущего дня: визуальный «дальше». */
  .plan-days {
    position: relative;
    display: grid; gap: 22px;
    padding-left: 8px;
  }
  .plan-days::before {
    content: ''; position: absolute;
    left: 52px; top: 15px; bottom: 15px; width: 2px;
    background: #e2e8f0; border-radius: 2px;
    z-index: 0;
  }
  .plan-days::after {
    content: ''; position: absolute;
    left: 52px; top: 15px; width: 2px; height: 0;
    background: linear-gradient(180deg, #14b8a6 0%, #f59e0b 100%);
    border-radius: 2px;
    transition: height 1.2s cubic-bezier(.2,.7,.2,1);
    z-index: 1;
  }
  .plan-days.filled::after { height: calc(100% - 30px); }

  .plan-day {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px; align-items: stretch;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px 16px;
    opacity: 0; transform: translateX(20px);
    transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1),
                border-color .18s, box-shadow .18s;
    z-index: 2;
  }
  .plan-day.shown { opacity: 1; transform: translateX(0); }
  /* Шеврон-стрелочка между карточками (кроме последней) — в цвете текущего дня. */
  .plan-day:not(:last-child)::before {
    content: ''; position: absolute;
    left: 39px; bottom: -15px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--accent-day-text, #94a3b8);
    filter: drop-shadow(0 1px 1px rgba(15,23,42,.06));
    z-index: 3;
    opacity: 0; transform: translateY(-4px);
    transition: opacity .35s cubic-bezier(.2,.7,.2,1) .12s,
                transform .35s cubic-bezier(.2,.7,.2,1) .12s;
  }
  .plan-day.shown:not(:last-child)::before { opacity: 1; transform: translateY(0); }
  .plan-day:hover {
    border-color: var(--accent-day);
    box-shadow: 0 8px 24px -16px var(--accent-day-glow, rgba(13,148,136,.4));
  }
  .plan-day__num {
    position: relative;
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--accent-day, linear-gradient(135deg, #14b8a6 0%, #0d9488 100%));
    color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-weight: 700; line-height: 1;
    box-shadow: 0 6px 16px -8px var(--accent-day-glow, rgba(13,148,136,.5));
    z-index: 2;
  }
  .plan-day__num::before {
    content: ''; position: absolute; inset: -4px;
    border-radius: 16px; background: var(--accent-day-ring, rgba(20,184,166,.18));
    z-index: -1;
    opacity: 0; transform: scale(.85);
    animation: dayNumRing .6s cubic-bezier(.2,.7,.2,1) .1s forwards;
  }
  @keyframes dayNumRing { to { opacity: 1; transform: scale(1); } }
  .plan-day__num b { font-size: 22px; letter-spacing: -.02em; }
  .plan-day__num span { font-size: 10px; opacity: .85; margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }
  .plan-day__body { min-width: 0; }
  .plan-day__title {
    font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
    margin: 0 0 4px; color: var(--text);
  }
  .plan-day__why {
    font-size: 13.5px; line-height: 1.5; color: var(--muted);
    margin: 0;
  }
  .plan-day__why b { color: #0f766e; font-weight: 600; }
  .plan-day__meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    flex: 0 0 auto;
  }
  .plan-day__duration {
    font-size: 12px; color: var(--muted); white-space: nowrap;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .plan-day__skill {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--accent-day-soft, #ecfdf5);
    color: var(--accent-day-text, #047857);
    border: 1px solid var(--accent-day-soft-border, #a7f3d0);
    border-radius: 999px;
    padding: 3px 10px; font-size: 11.5px; font-weight: 600;
    white-space: nowrap;
  }
  .plan-day__skill .arrow { color: var(--accent-day-text, #059669); }

  /* Цветовая прогрессия: день 1 (старт) — teal → день 7 (цель) — янтарь.
     Каждый день имеет свой набор CSS-переменных, который наследуется внутрь .plan-day__num и chip. */
  .plan-day--d1 { --accent-day: linear-gradient(135deg, #2dd4bf, #0d9488); --accent-day-glow: rgba(13,148,136,.45); --accent-day-ring: rgba(45,212,191,.15); --accent-day-soft: #ecfdf5; --accent-day-soft-border: #a7f3d0; --accent-day-text: #047857; }
  .plan-day--d2 { --accent-day: linear-gradient(135deg, #34d399, #059669); --accent-day-glow: rgba(5,150,105,.45);   --accent-day-ring: rgba(52,211,153,.15); --accent-day-soft: #ecfdf5; --accent-day-soft-border: #a7f3d0; --accent-day-text: #047857; }
  .plan-day--d3 { --accent-day: linear-gradient(135deg, #84cc16, #65a30d); --accent-day-glow: rgba(101,163,13,.45);  --accent-day-ring: rgba(132,204,22,.15); --accent-day-soft: #f7fee7; --accent-day-soft-border: #d9f99d; --accent-day-text: #4d7c0f; }
  .plan-day--d4 { --accent-day: linear-gradient(135deg, #facc15, #ca8a04); --accent-day-glow: rgba(202,138,4,.45);   --accent-day-ring: rgba(250,204,21,.18); --accent-day-soft: #fefce8; --accent-day-soft-border: #fde68a; --accent-day-text: #854d0e; }
  .plan-day--d5 { --accent-day: linear-gradient(135deg, #fb923c, #ea580c); --accent-day-glow: rgba(234,88,12,.45);   --accent-day-ring: rgba(251,146,60,.18); --accent-day-soft: #fff7ed; --accent-day-soft-border: #fed7aa; --accent-day-text: #9a3412; }
  .plan-day--d6 { --accent-day: linear-gradient(135deg, #f97316, #c2410c); --accent-day-glow: rgba(194,65,12,.5);    --accent-day-ring: rgba(249,115,22,.18); --accent-day-soft: #fff7ed; --accent-day-soft-border: #fed7aa; --accent-day-text: #9a3412; }
  .plan-day--d7 { --accent-day: linear-gradient(135deg, #f43f5e, #be123c); --accent-day-glow: rgba(190,18,60,.5);    --accent-day-ring: rgba(244,63,94,.18); --accent-day-soft: #fff1f2; --accent-day-soft-border: #fecdd3; --accent-day-text: #9f1239; }
  .plan-day--d7 .plan-day__title::after { content: ' 🏁'; }

  @media (max-width: 560px) {
    .plan-day { grid-template-columns: 48px 1fr; }
    .plan-day__num { width: 48px; height: 48px; }
    .plan-day__num b { font-size: 18px; }
    .plan-day__meta { grid-column: 2; flex-direction: row; align-items: center; gap: 10px; }
    .plan-days::before { left: 48px; }
    .plan-days::after  { left: 48px; }
    .plan-day:not(:last-child)::before { left: 35px; }
  }

  .plan-cta { margin-top: 22px; text-align: center; }
  .plan-cta .btn { padding: 14px 28px; font-size: 15px; }
  .plan-cta__note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

  /* Lightness summary — «мало времени → большой буст» под списком дней */
  .plan-light {
    margin: 20px 0 0;
    background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
    border: 1px solid #f3d9c4; border-radius: 16px;
    padding: 18px 20px;
  }
  .plan-light__head {
    display: flex; align-items: center; gap: 8px;
    font-size: 14.5px; font-weight: 700; color: #4a1d09;
    margin-bottom: 14px;
  }
  .plan-light__ic { font-size: 18px; }
  .plan-light__row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  }
  .plan-light__stat {
    background: var(--surface); border: 1px solid #f1e2d4; border-radius: 12px;
    padding: 14px 12px; text-align: center;
  }
  .plan-light__stat--accent {
    background: linear-gradient(180deg, #fff2ea 0%, #ffe1d0 100%);
    border-color: #f4b994;
  }
  .plan-light__num {
    font-size: 22px; font-weight: 700; color: var(--text);
    letter-spacing: -.01em; line-height: 1.15;
  }
  .plan-light__stat--accent .plan-light__num { color: var(--accent); font-size: 26px; }
  .plan-light__lbl {
    margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.35;
  }
  .plan-light__note {
    margin: 14px 0 0; text-align: center;
    font-size: 13.5px; color: #5b2a17; font-weight: 500;
  }
  @media (max-width: 560px) {
    .plan-light__row { grid-template-columns: 1fr; }
    .plan-light__num { font-size: 20px; }
    .plan-light__stat--accent .plan-light__num { font-size: 24px; }
  }

  /* Mini-plan inside register hero (после регистрации виден тот же план)  */
  .reg-mini-plan {
    margin-top: 14px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
  }
  .reg-mini-plan__title {
    font-size: 12px; color: var(--muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
  }
  .reg-mini-plan__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
  .reg-mini-plan__row {
    display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
    font-size: 13px; line-height: 1.4;
  }
  .reg-mini-plan__day {
    width: 24px; height: 24px; border-radius: 7px;
    background: #f0fdfa; color: #0f766e;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
  }
  .reg-mini-plan__title-txt { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Stage 4 — register (reworked: hero + single primary CTA + collapsible alternatives) */
  .reg-hero {
    background: linear-gradient(180deg, #fff 0%, #f5fbfa 100%);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 26px 26px 22px; margin: 0 0 16px;
    position: relative;
  }
  .reg-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ecfdf5; color: #059669;
    border: 1px solid #a7f3d0; border-radius: 999px;
    padding: 5px 12px 5px 8px; font-size: 12.5px; font-weight: 600;
    letter-spacing: .01em; margin-bottom: 14px;
  }
  .reg-hero__check {
    width: 16px; height: 16px; border-radius: 50%;
    background: #10b981; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
  }
  .reg-hero__title { font-size: 26px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.015em; }
  .reg-hero__sub { font-size: 15.5px; color: var(--text); margin: 0 0 16px; opacity: .82; }
  .reg-hero__bullets {
    list-style: none; padding: 0; margin: 0 0 14px;
    display: grid; gap: 8px;
  }
  .reg-hero__bullets li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14.5px; color: var(--text);
  }
  .reg-hero__b-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: #fff; border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; flex: 0 0 28px;
  }
  .reg-hero__live { margin: 6px 0 0; }

  .reg-primary-card {
    background: var(--surface);
    border: 2px solid var(--tg); border-radius: 16px;
    padding: 22px; margin: 0 0 14px;
    box-shadow: 0 10px 30px -16px rgba(38,165,228,.55);
  }
  .reg-primary-card__head {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px;
  }
  .reg-primary-card__icn {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  }
  .reg-primary-card__icn.tg { background: var(--tg); }
  .reg-primary-card__copy h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
  .reg-primary-card__copy p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
  .reg-primary-card__cta {
    display: block; width: 100%; text-align: center;
    background: var(--tg); color: #fff; padding: 15px 22px;
    font-size: 16px; font-weight: 600;
  }
  .reg-primary-card__cta:hover { background: #1a8fc4; text-decoration: none; }

  .reg-alt {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; margin: 0 0 18px;
    overflow: hidden;
  }
  .reg-alt__summary {
    list-style: none; cursor: pointer;
    padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
    font-size: 14.5px; font-weight: 500; color: var(--text);
    transition: background .15s;
  }
  .reg-alt__summary::-webkit-details-marker { display: none; }
  .reg-alt__summary:hover { background: #fafaf8; }
  .reg-alt__chev { color: var(--muted); transition: transform .2s; font-size: 12px; }
  .reg-alt[open] .reg-alt__chev { transform: rotate(180deg); }
  .reg-alt__grid { padding: 4px 18px 18px; display: grid; gap: 10px; }
  .reg-alt__row {
    display: grid; grid-template-columns: 36px 1fr auto;
    align-items: center; gap: 12px;
    padding: 12px 0; border-top: 1px solid var(--border);
  }
  .reg-alt__row--email {
    grid-template-columns: 36px 1fr; align-items: flex-start;
  }
  .reg-alt__icn {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
  }
  .reg-alt__icn.email { background: var(--accent); }
  .reg-alt__icn.tg { background: var(--tg); }
  .reg-alt__icn.vk { background: var(--vk); }
  .reg-alt__icn.google {
    background: #fff; color: #3c4043; border: 1px solid #dadce0;
    font-family: 'Product Sans', Arial, sans-serif;
  }
  .reg-alt__title { font-size: 14.5px; font-weight: 600; }
  .reg-alt__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .reg-alt__btn { padding: 9px 16px; font-size: 13.5px; }
  .reg-alt__email-row {
    display: flex; gap: 8px; margin-top: 10px;
  }
  .reg-alt__email-row input[type=email] {
    flex: 1; min-width: 0;
    padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
    font: inherit; font-size: 14px; outline: none;
  }
  .reg-alt__email-row input[type=email]:focus { border-color: var(--accent); }
  .reg-alt__email-row .btn { padding: 10px 16px; font-size: 13.5px; }
  .reg-alt__email-msg { font-size: 13px; margin-top: 8px; }
  .reg-alt__email-msg.ok { color: var(--ok); }
  .reg-alt__email-msg.err { color: var(--err); }

  .ok-msg  { color: var(--ok);  font-size: 13px; }
  .err-msg { color: var(--err); font-size: 13px; }

  /* ═══ Sell blocks под регистрацией ═══ */
  .sell-block { margin: 36px 0 0; }
  .sell-block__title {
    font-size: 22px; line-height: 1.25; letter-spacing: -.015em;
    margin: 0 0 8px; font-weight: 700;
  }
  .sell-block__lead { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

  .sell-features {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .sell-feat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px;
    transition: border-color .15s, transform .12s, box-shadow .15s;
  }
  .sell-feat:hover {
    border-color: #0d9488; transform: translateY(-1px);
    box-shadow: 0 6px 22px -16px rgba(13,148,136,.6);
  }
  .sell-feat__ic {
    width: 36px; height: 36px; border-radius: 10px;
    background: #f0fdfa; color: #0d9488;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 10px;
  }
  .sell-feat__title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
  .sell-feat__sub  { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

  .sell-compare {
    display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  }
  .sell-compare__col {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 18px;
  }
  .sell-compare__col--bad { border-color: #fecaca; background: #fff7f5; }
  .sell-compare__col--good { border-color: #6ee7b7; background: #f0fdf4; }
  .sell-compare__head {
    font-size: 13px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; margin-bottom: 10px;
  }
  .sell-compare__col--bad .sell-compare__head  { color: #b91c1c; }
  .sell-compare__col--good .sell-compare__head { color: #047857; }
  .sell-compare ul { list-style: none; padding: 0; margin: 0; }
  .sell-compare li {
    position: relative; padding: 6px 0 6px 22px;
    font-size: 13.5px; line-height: 1.5;
  }
  .sell-compare__col--bad li::before  {
    content: '✕'; position: absolute; left: 0; top: 6px;
    color: #b91c1c; font-weight: 700;
  }
  .sell-compare__col--good li::before {
    content: '✓'; position: absolute; left: 0; top: 6px;
    color: #047857; font-weight: 700;
  }
  @media (max-width: 560px) {
    .sell-compare { grid-template-columns: 1fr; }
  }

  .sell-urgency {
    margin-top: 32px;
    background: linear-gradient(135deg, #fff4ef 0%, #ffe4d3 100%);
    border: 1px solid #ffd8c9; border-radius: 16px;
    padding: 20px 22px;
  }
  .sell-urgency__head {
    display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  }
  .sell-urgency__ic {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
  }
  .sell-urgency__title { font-weight: 700; font-size: 15.5px; }
  .sell-urgency__sub { font-size: 13.5px; color: var(--accent); font-weight: 600; }
  .sell-urgency__clock {
    display: flex; gap: 10px; justify-content: flex-start;
  }
  .sell-urgency__cell {
    background: #fff; border: 1px solid #ffd8c9; border-radius: 10px;
    padding: 10px 14px; min-width: 64px; text-align: center;
  }
  .sell-urgency__cell b {
    display: block; font-size: 22px; line-height: 1; color: var(--accent);
    font-variant-numeric: tabular-nums;
  }
  .sell-urgency__cell span {
    display: block; font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: .05em; margin-top: 3px;
  }
  .sell-urgency__note {
    margin: 12px 0 0; font-size: 13px; color: var(--text);
  }

  .sell-block--guarantee { margin-top: 30px; }
  .sell-guarantee {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px 20px;
    display: flex; align-items: center; gap: 16px;
  }
  .sell-guarantee__ic {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
    background: #ecfdf5; color: #059669;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
  }
  .sell-guarantee__title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
  .sell-guarantee__sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
  @media (max-width: 560px) {
    .sell-guarantee { flex-direction: column; align-items: flex-start; }
  }

  .sell-faq { display: grid; gap: 8px; }
  .sell-faq__item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 0;
    overflow: hidden;
  }
  .sell-faq__item > summary {
    list-style: none; cursor: pointer;
    padding: 14px 16px; font-size: 14.5px; font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
    transition: background .15s;
  }
  .sell-faq__item > summary::-webkit-details-marker { display: none; }
  .sell-faq__item > summary::after {
    content: '+'; font-size: 18px; color: var(--muted);
    transition: transform .2s;
  }
  .sell-faq__item[open] > summary::after { content: '−'; }
  .sell-faq__item > summary:hover { background: #fafaf8; }
  .sell-faq__item > div {
    padding: 0 16px 14px; font-size: 13.5px; line-height: 1.55;
    color: var(--text);
  }

  .sell-final {
    margin-top: 36px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border: 1px solid #99f6e4; border-radius: 18px;
    padding: 28px 24px; text-align: center;
  }
  .sell-final__title {
    font-size: 22px; line-height: 1.25; letter-spacing: -.015em;
    margin: 0 0 8px; font-weight: 700;
  }
  .sell-final__sub { color: var(--text); opacity: .82; font-size: 14.5px; margin: 0 0 18px; }
  .sell-final__cta {
    display: inline-block; padding: 15px 32px;
    background: var(--tg); color: #fff;
    font-size: 16px; font-weight: 600; border-radius: 12px;
    box-shadow: 0 10px 30px -12px rgba(38,165,228,.55);
  }
  .sell-final__cta:hover { background: #1a8fc4; text-decoration: none; }
  .sell-final__alt { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

  .footer-note { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 28px; }

  @media (max-width: 560px) {
    h1 { font-size: 22px; }
    .container { padding: 18px 16px 60px; }
    .card, .ai-panel, .report-body, .reg-hero, .reg-primary-card { padding: 18px; }
    .reg-hero__title { font-size: 22px; }
    .reg-alt__row { grid-template-columns: 32px 1fr; }
    .reg-alt__row .reg-alt__btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  }

  /* Stage 3 — AI tutor locked sources upsell */
  .ai-msg.bot .ai-sources {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px dashed var(--border);
  }
  .ai-sources-title {
    font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); font-weight: 600; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
  }
  .ai-sources-title .lock { font-size: 12px; }
  .ai-source {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; margin: 6px 0;
    background: #fafaf8; border: 1px solid var(--border); border-radius: 10px;
    position: relative; overflow: hidden;
    cursor: pointer; transition: border-color .15s, background .15s;
  }
  .ai-source:hover { border-color: var(--accent); background: #fff4ef; }
  .ai-source__icn { font-size: 15px; flex: 0 0 18px; }
  .ai-source__title {
    flex: 1; font-size: 13.5px; color: var(--text);
    filter: blur(4px); user-select: none;
    transition: filter .15s;
  }
  .ai-source__type {
    font-size: 11px; color: var(--muted); text-transform: uppercase;
    letter-spacing: .04em; flex: 0 0 auto;
  }
  .ai-source__lock {
    font-size: 13px; color: var(--accent); flex: 0 0 auto; margin-left: 2px;
  }
  .ai-sources-hint {
    margin-top: 10px; padding: 10px 12px; background: #fff4ef;
    border: 1px solid #ffd8c9; border-radius: 10px;
    font-size: 12.5px; color: var(--text); line-height: 1.5;
  }
  .ai-sources-hint b { color: var(--accent); }

  /* Hide inline DSL markers accidentally rendered */
  .methodology-body .dsl-hidden { display: none; }

  /* Когда label повторял правильный ответ — заменяем его на нейтральный пропуск. */
  .blank-label--gap { color: var(--muted); letter-spacing: .1em; font-weight: 600; }

  /* Демо-превью методички: dropdown не показывает правильно/неправильно,
     просто мягко подсвечивает «заполнено». Без зелёного/красного. */
  .methodology-body .blank-widget.filled select {
    border-color: #0d9488; background: #f0fdfa; color: var(--text);
  }
  .slice-hint {
    margin-top: 16px; padding: 10px 12px;
    background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px;
    font-size: 13px; color: #064e3b; line-height: 1.5;
  }

  /* ═══ Live counter pill ═══ */
  .live-counter{
    display:flex; align-items:center; gap:10px;
    padding:10px 14px; border:1px solid var(--border); border-radius:999px;
    background:#fff; font-size:13.5px; color:var(--text);
    margin:0 auto 18px; width:fit-content;
    box-shadow:0 1px 2px rgba(0,0,0,.03);
  }
  .live-counter .live-dot{
    width:8px; height:8px; border-radius:50%; background:#10b981;
    box-shadow:0 0 0 0 rgba(16,185,129,.5);
    animation: live-pulse 1.8s ease-out infinite;
  }
  @keyframes live-pulse{
    0%  { box-shadow:0 0 0 0 rgba(16,185,129,.55); }
    70% { box-shadow:0 0 0 10px rgba(16,185,129,0); }
    100%{ box-shadow:0 0 0 0 rgba(16,185,129,0); }
  }
  .live-counter b{ color:#10b981; font-weight:700; }
  .live-counter .sep{ color:var(--muted); margin:0 4px; }

  /* ═══ Floating FOMO toasts ═══ */
  .fomo-stack{
    position:fixed; left:16px; bottom:16px; z-index:40;
    display:flex; flex-direction:column-reverse; gap:8px;
    pointer-events:none;
  }
  .fomo-toast{
    pointer-events:auto;
    background:#fff; color:var(--text);
    border:1px solid var(--border); border-left:3px solid #10b981;
    border-radius:10px; padding:10px 14px 10px 12px;
    font-size:13px; line-height:1.4;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    max-width:310px;
    transform: translateX(-120%); opacity:0;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  }
  .fomo-toast.in{ transform:translateX(0); opacity:1; }
  .fomo-toast .nick{ font-weight:600; color:#0d9488; }
  .fomo-toast .age{ color:var(--muted); font-size:11.5px; margin-top:2px; }
  @media (max-width:560px){
    .fomo-stack{ left:8px; right:8px; bottom:8px; }
    .fomo-toast{ max-width:100%; }
  }


  /* ═══ Subject-filtered testimonials ═══ */
  .testis{
    margin:24px 0 4px; display:grid; gap:12px;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  }
  .testi{
    background:#fff; border:1px solid var(--border); border-radius:12px;
    padding:14px 16px; font-size:13.5px; line-height:1.55;
  }
  .testi .txt{ color:var(--text); margin:0 0 10px; }
  .testi .who{ display:flex; align-items:center; gap:10px; }
  .testi .avatar{
    width:30px; height:30px; border-radius:50%;
    background:radial-gradient(circle at 30% 30%,#14b8a6,#0d9488);
    color:#fff; display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:13px;
  }
  .testi .meta{ font-size:12.5px; line-height:1.4; }
  .testi .meta .nm{ font-weight:600; color:var(--text); }
  .testi .meta .ds{ color:var(--muted); }
  .testi .meta .grade{ color:#10b981; font-weight:600; }
  .testis-title{ font-size:14px; color:var(--muted); margin:18px 0 6px; text-transform:uppercase; letter-spacing:.04em; }


  /* ═══ Growing-discount badge (sticky top-right на десктопе, внизу на мобиле) ═══
     Цель: геймификация — юзер видит, как скидка растёт по мере прохождения
     актов демо. 0 → 10 → 20 → 30%. Прогресс-бар + «pop»-анимация на инкремент. */
  .discount-badge{
    position:fixed; top:70px; right:18px; z-index:60;
    width:232px; padding:12px 14px 10px;
    background:linear-gradient(180deg,#ecfeff 0%, #ffffff 100%);
    border:1px solid #0d9488; border-radius:14px;
    box-shadow:0 10px 28px rgba(13,148,136,0.18), 0 2px 6px rgba(0,0,0,0.04);
    font-family:inherit;
    transform:translateY(-4px); opacity:0;
    animation:dbFadeIn 360ms cubic-bezier(.16,1,.3,1) forwards;
  }
  @keyframes dbFadeIn{ to { transform:translateY(0); opacity:1; } }

  .discount-badge__head{
    display:flex; align-items:baseline; justify-content:space-between;
    margin-bottom:8px;
  }
  .discount-badge__label{
    font-size:11.5px; letter-spacing:.05em; text-transform:uppercase;
    color:#0f766e; font-weight:600;
  }
  .discount-badge__percent{
    font-size:26px; font-weight:800; color:#0d9488;
    letter-spacing:-.02em; transition:color .25s ease;
    display:inline-block; transform-origin:center right;
    /* tabular-nums — чтобы count-up не «прыгал» по ширине */
    font-variant-numeric:tabular-nums;
    position:relative;
  }
  .discount-badge__percent.bump{
    animation:dbBump 900ms cubic-bezier(.16,1.4,.4,1);
    text-shadow:0 0 0 rgba(245,158,11,0);
  }
  @keyframes dbBump{
    0%   { transform:scale(1);    color:#0d9488; text-shadow:0 0 0 rgba(245,158,11,0); }
    20%  { transform:scale(1.55); color:#f59e0b; text-shadow:0 0 22px rgba(245,158,11,.55); }
    55%  { transform:scale(1.18); color:#f59e0b; text-shadow:0 0 14px rgba(245,158,11,.35); }
    100% { transform:scale(1);    color:#0d9488; text-shadow:0 0 0 rgba(245,158,11,0); }
  }

  .discount-badge__bar{
    position:relative; height:7px; border-radius:99px;
    background:#e6f4f3; overflow:hidden;
  }
  .discount-badge__bar-fill{
    position:absolute; inset:0 100% 0 0; /* width via right */
    background:linear-gradient(90deg,#14b8a6,#0d9488);
    border-radius:99px;
    transition:right .9s cubic-bezier(.22,1,.36,1);
  }
  /* Бегущий блик по bar-fill на каждом приросте. */
  .discount-badge__bar-fill::after{
    content:''; position:absolute; top:0; bottom:0; left:-40%; width:40%;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
    transform:skewX(-18deg); opacity:0; pointer-events:none;
  }
  .discount-badge__bar-fill.shimmer::after{
    animation:dbShimmer 1100ms cubic-bezier(.22,1,.36,1) 220ms;
  }
  @keyframes dbShimmer{
    0%   { opacity:0; left:-40%; }
    30%  { opacity:1; }
    100% { opacity:0; left:120%; }
  }
  .discount-badge__bar-tick{
    position:absolute; top:-2px; width:2px; height:11px;
    background:rgba(13,148,136,0.35); border-radius:1px;
    pointer-events:none;
  }
  .discount-badge__hint{
    margin-top:7px; font-size:11.5px; color:#475569; line-height:1.35;
  }

  /* Fly-away «+10%» на смену tier'а */
  .discount-pop{
    position:fixed; z-index:70;
    font-weight:800; font-size:40px; color:#f59e0b;
    pointer-events:none; opacity:0;
    text-shadow:0 2px 12px rgba(245,158,11,0.35);
  }
  .discount-pop.show{
    animation:dbPop 1200ms cubic-bezier(.16,1,.3,1) forwards;
  }
  @keyframes dbPop{
    0%   { opacity:0; transform:translate(-50%,-50%) scale(.6) rotate(-4deg); }
    30%  { opacity:1; transform:translate(-50%,-80%) scale(1.25) rotate(0); }
    100% { opacity:0; transform:translate(-50%,-220%) scale(.85) rotate(3deg); }
  }

  /* Финал: достигнут максимум (30%) — бейдж переходит в «золотой» режим
     + одноразовый halo-pulse как celebration. */
  .discount-badge.maxed{
    background:linear-gradient(180deg,#fffbeb 0%, #ffffff 100%);
    border-color:#f59e0b;
    box-shadow:0 12px 32px rgba(245,158,11,.28), 0 2px 6px rgba(0,0,0,.05);
  }
  .discount-badge.maxed .discount-badge__label{ color:#b45309; }
  .discount-badge.maxed .discount-badge__percent{ color:#d97706; }
  .discount-badge.maxed .discount-badge__bar-fill{
    background:linear-gradient(90deg,#fbbf24,#f59e0b);
  }
  .discount-badge.celebrate::before{
    content:''; position:absolute; inset:-6px; border-radius:18px;
    border:2px solid rgba(245,158,11,.55); pointer-events:none;
    animation:dbHalo 1100ms cubic-bezier(.16,1,.3,1);
  }
  @keyframes dbHalo{
    0%   { transform:scale(.92); opacity:0; }
    30%  { transform:scale(1);   opacity:1; }
    100% { transform:scale(1.25); opacity:0; }
  }

  @media (max-width:720px){
    .discount-badge{
      top:auto; bottom:12px; right:12px; left:12px; width:auto;
    }
  }
