:root {
  --bg: #F1F0EC;
  --ink: #121214;
  --ink-soft: #121214b3;
  --line: #12121426;
  --surface: #FFFFFF;
  --on-surface: #121214;
  --panel: #FFFFFF73;
  --radius-card: 32px;
  --radius-chip: 999px;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", "Helvetica Neue", sans-serif;
  --gap: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #242428;
    --on-surface: #F1F0EC;
    --line: #F1F0EC26;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--on-surface);
  font: 16px/1.45 var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.stage {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Верх: название и полоски прогресса, как в сторис */
.top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.brand { font: 700 14px/1 var(--display); letter-spacing: .02em; }
.progress { display: flex; gap: 6px; }
.progress.many { gap: 3px; }
.progress span {
  flex: 1; height: 5px; border-radius: 3px; background: var(--line);
  transition: background .3s;
}
.progress span.done { background: var(--on-surface); }
.progress span.now { background: var(--on-surface); opacity: .45; }

/* Колода: стрелки по бокам на широком экране */
.deck {
  flex: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 16px;
  align-items: start;
}
.nav {
  position: sticky; top: 40vh;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--line); background: transparent;
  display: grid; place-items: center;
}
.nav:hover:not(:disabled) { border-color: var(--on-surface); }
.nav:disabled { opacity: .25; cursor: default; }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.slot { min-width: 0; }

/* Карточка профессии */
.card {
  background: var(--c);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 22px;
}
.card-head { display: flex; flex-direction: column; gap: 14px; }
.glyph {
  width: 72px; height: 72px; border-radius: 22px;
  background: var(--ink); display: grid; place-items: center;
}
.glyph svg { width: 40px; height: 40px; fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.glyph svg .fill { fill: var(--c); stroke: none; }
.card h1 {
  font: 800 clamp(28px, 5.4vw, 42px)/1.02 var(--display);
  margin: 0; letter-spacing: -.02em; hyphens: auto;
}
.hook { font-size: 19px; line-height: 1.35; margin: 0; max-width: 34ch; font-weight: 500; }

/* Шкалы */
.scales {
  background: var(--panel);
  border-radius: 22px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.people { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--ink); }
.dots i.on { background: var(--ink); }

.pole { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.pole .l { text-align: right; }
.track { position: relative; width: 132px; height: 22px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--ink); opacity: .35; }
.track b {
  position: absolute; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); transform: translateX(-50%);
}
.pole .weak { opacity: .45; }

/* Кайф и тяжело */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair div { background: var(--panel); border-radius: 22px; padding: 16px 18px; }
.pair p { margin: 8px 0 0; font-size: 16px; line-height: 1.35; font-weight: 500; }
.pair .label::before { display: inline-block; width: 1.2em; font-size: 16px; }
.pair .joy .label::before { content: "+"; }
.pair .hard .label::before { content: "−"; }

/* Подойдёт, если… */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span {
  border: 2px solid var(--ink); border-radius: var(--radius-chip);
  padding: 7px 14px; font-size: 15px; font-weight: 500;
}
.chips.solid span { background: var(--ink); color: var(--c); border-color: var(--ink); }

/* Как это выглядит на деле */
.more { border-top: 2px solid #12121426; padding-top: 6px; }
.more summary {
  list-style: none; cursor: pointer; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  font: 700 15px/1.2 var(--display);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 26px; font-weight: 500; transition: transform .25s; }
.more[open] summary::after { transform: rotate(45deg); }
.more p { margin: 0 0 12px; font-size: 17px; line-height: 1.5; max-width: 62ch; }

/* Реакции */
.react {
  position: sticky; bottom: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  max-width: calc(100% - 144px); width: 100%; margin: 0 auto;
}
.r {
  min-height: 56px; border-radius: 18px;
  border: 2px solid var(--on-surface); background: var(--surface);
  font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s, background .2s, color .2s;
}
.r:active { transform: scale(.97); }
.r-mark { font: 800 18px/1 var(--display); }
.r[aria-pressed="true"] { background: var(--on-surface); color: var(--bg); }
.r-yes:hover { background: var(--on-surface); color: var(--bg); }

/* Итог */
.summary { background: var(--surface); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.summary h1 { font: 800 clamp(28px, 5vw, 38px)/1.05 var(--display); margin: 0; letter-spacing: -.02em; }
.summary .lead { margin: 0; font-size: 18px; }
.group h2 { font: 700 14px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.group li { border-radius: var(--radius-chip); padding: 10px 16px; font-weight: 600; color: var(--ink); background: var(--c); }
.group .none { opacity: .55; font-size: 15px; }
.again { align-self: flex-start; min-height: 48px; padding: 0 22px; border-radius: 16px; border: 2px solid var(--on-surface); background: transparent; font-weight: 600; }

/* Движение: карточка въезжает с той стороны, куда листаешь */
.enter-next { animation: in-next .35s cubic-bezier(.2,.8,.2,1); }
.enter-prev { animation: in-prev .35s cubic-bezier(.2,.8,.2,1); }
@keyframes in-next { from { opacity: 0; transform: translateX(40px) rotate(1.5deg); } }
@keyframes in-prev { from { opacity: 0; transform: translateX(-40px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) {
  .enter-next, .enter-prev { animation: none; }
  * { transition: none !important; }
}

/* Телефон: стрелки прячем, листают свайпом */
@media (max-width: 640px) {
  .deck { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .react { max-width: 100%; gap: 8px; }
  .r { font-size: 15px; flex-direction: column; gap: 2px; min-height: 60px; }
  .card { padding: 22px 20px 18px; gap: 18px; }
  .pair { grid-template-columns: 1fr; }
  .track { width: 96px; }
  .pole { font-size: 14px; gap: 10px; }
  .dots i { width: 18px; height: 18px; }
}

[hidden] { display: none !important; }

/* Компьютер: карточка в две колонки, чтобы всё главное было видно без прокрутки */
@media (min-width: 1000px) {
  .stage { max-width: 1160px; }
  .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head pair" "scales fit" "scales school" "more more";
    column-gap: 28px; row-gap: 20px;
    align-items: start;
  }
  .card-head { grid-area: head; }
  .scales { grid-area: scales; }
  .pair { grid-area: pair; grid-template-columns: 1fr; align-self: end; }
  .card > .fit { grid-area: fit; }
  .card > .school { grid-area: school; }
  .more { grid-area: more; }
  .card h1 { font-size: 40px; }
}
@media (min-width: 641px) { .top { padding-inline: 72px; } }
body { overflow-x: clip; }

/* ---------- Экраны опроса, оценок и результата ---------- */
.panel {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.panel h1 { font: 800 clamp(26px, 4.6vw, 40px)/1.05 var(--display); margin: 0; letter-spacing: -.02em; }
.panel .lead { margin: 0; font-size: 18px; line-height: 1.45; max-width: 60ch; }
.panel .note { margin: 0; font-size: 15px; opacity: .7; max-width: 60ch; }
.count { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  border: 2px solid var(--on-surface); background: transparent;
  font-weight: 600; font-size: 16px;
}
.btn.primary { background: var(--on-surface); color: var(--bg); }
.btn:disabled { opacity: .3; cursor: default; }

/* Начало */
.steps { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; border: 2px solid var(--line); border-radius: 22px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.steps li::before { content: counter(step); font: 800 28px/1 var(--display); margin-bottom: 6px; }
.steps b { font-size: 16px; }
.steps span { font-size: 14px; opacity: .65; }

/* Вопросы: один на экран, ответы подписаны */
.hint { margin: 0; font-size: 16px; opacity: .75; max-width: 60ch; }
.ask-lead { margin: 0 0 -12px; font-size: 17px; opacity: .75; }
/* Все вопросы лежат в одной ячейке, видим только текущий: высота — по самому длинному, шкала не прыгает */
.q-stack { display: grid; }
.q-stack > .q-one { grid-area: 1 / 1; margin: 0; font: 800 clamp(24px, 3.6vw, 34px)/1.15 var(--display); letter-spacing: -.02em; max-width: 26ch; }
.q-stack > p.q-one { visibility: hidden; }
.scale { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 8px 0; }
.pole-l, .pole-r { font-size: 14px; font-weight: 600; }
.pole-l { text-align: right; }
.dots-row { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 48px; height: 48px; border: 0; background: transparent; padding: 0;
  display: grid; place-items: center;
}
.dot::before {
  content: ""; display: block; border-radius: 50%;
  border: 2.5px solid var(--on-surface); transition: background .15s, transform .15s;
}
.d1::before, .d5::before { width: 44px; height: 44px; }
.d2::before, .d4::before { width: 34px; height: 34px; }
.d3::before { width: 26px; height: 26px; }
.dot:hover::before { transform: scale(1.08); }
.dot[aria-checked="true"]::before { background: var(--on-surface); }

/* Оценки */
.grade-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.grade-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 2px solid var(--line); font-size: 17px; font-weight: 500;
}
.seg { display: flex; gap: 6px; }
.g {
  width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid var(--line); background: transparent; font-weight: 700; font-size: 17px;
}
.g:hover { border-color: var(--on-surface); }
.g[aria-checked="true"] { background: var(--on-surface); color: var(--bg); border-color: var(--on-surface); }

/* Результат: полоски по шести типам */
.bars { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 70px; align-items: center; gap: 14px; }
.bar-name { font-size: 16px; font-weight: 500; opacity: .6; }
.bar-row.lead-type .bar-name { font-weight: 700; opacity: 1; }
.bar-track { height: 22px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; background: var(--c); border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--ink); min-width: 4px;
}
.bar-val { font: 700 18px/1 var(--display); }
.bar-val small { font: 500 12px var(--text); opacity: .6; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.type-card { background: var(--c); color: var(--ink); border-radius: 22px; padding: 18px 20px; }
.type-card h2 { font: 800 20px/1.1 var(--display); margin: 0 0 8px; }
.type-card p { margin: 0; font-size: 16px; line-height: 1.4; }
.attrib { margin: 8px 0 0; font-size: 11px; line-height: 1.4; opacity: .5; }

/* Карточка: типы профессии, совпадение, оценки */
.codes { display: flex; flex-wrap: wrap; gap: 6px; }
.type-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border-radius: var(--radius-chip); padding: 5px 12px 5px 6px;
  font-size: 14px; font-weight: 600;
}
.type-chip::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--t); box-shadow: 0 0 0 2px var(--ink); }
.match { margin: 0; font-size: 15px; }
.plaque { margin-top: 12px; background: var(--panel); border-radius: 18px; padding: 12px 16px; }
.plaque p { margin: 6px 0 0; font-size: 15px; line-height: 1.4; }

@media (max-width: 640px) {
  .panel { padding: 22px 18px; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .scale { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .dots-row { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
  .pole-l { text-align: left; }
  .pole-r { text-align: right; }
  .dot { width: 44px; height: 44px; }
  .d1::before, .d5::before { width: 40px; height: 40px; }
  .bar-row { grid-template-columns: 1fr 60px; row-gap: 4px; }
  .bar-name { grid-column: 1 / -1; }
  .grade-list li { flex-direction: column; align-items: flex-start; }
  .actions .btn { flex: 1 1 100%; }
}
.slot { grid-column: 2; grid-row: 1; }
.nav-prev { grid-column: 1; grid-row: 1; }
.nav-next { grid-column: 3; grid-row: 1; }
@media (max-width: 640px) { .slot { grid-column: 1; } }
.steps li { border: 0; color: var(--ink); }
.steps li:nth-child(1) { background: #7B96FF; }
.steps li:nth-child(2) { background: #FFD43B; }
.steps li:nth-child(3) { background: #FF6B96; }
.steps span { opacity: .75; }
@media (max-width: 640px) {
  .steps li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
  .steps li::before { margin: 0; font-size: 22px; }
  .steps span { flex-basis: 100%; margin-left: 32px; margin-top: -4px; }
}
.bar-val { white-space: nowrap; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr 76px; } }
.code-note { margin: -4px 0 0; font-size: 13px; opacity: .7; }

/* ---------- Симуляция профессии ---------- */
.btn.try { align-self: flex-start; background: var(--ink); color: var(--c); border-color: var(--ink); }
.sim .lead { font-size: 17px; }
.sim-bar {
  position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 2;
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px 18px;
  background: var(--on-surface); color: var(--bg);
  border-radius: 18px; padding: 12px 18px;
}
.sim-bar .clock { font: 800 18px/1 var(--display); }
.sim-bar .views { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; display: inline-block; }
.sim-bar .pole { font-size: 14px; }
.sim-bar .track::before, .sim-bar .track b { background: var(--bg); }

.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.chat > li { animation: pop .3s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.msg p { margin: 4px 0 0; font-size: 16px; line-height: 1.4; }
.msg b { font-size: 14px; }
.msg small { margin-left: 6px; font-size: 13px; opacity: .6; }
.msg > div { background: var(--bg); border-radius: 4px 18px 18px 18px; padding: 10px 14px; }
.ava {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--a); color: var(--ink); display: grid; place-items: center;
  font: 800 15px/1 var(--display);
}
.msg.me { align-self: flex-end; background: var(--on-surface); color: var(--bg); border-radius: 18px 4px 18px 18px; padding: 10px 14px; max-width: 80%; }
.msg.me p { margin: 0; }
.msg.post .label { opacity: .7; }
.msg.post p { margin-top: 6px; }
.pick { align-self: flex-end; max-width: 80%; font-size: 14px; font-weight: 600; text-align: right; opacity: .75; }
.pick span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.note-line { align-self: center; font-size: 14px; font-style: italic; opacity: .65; text-align: center; }
.video { background: var(--bg); border-radius: 18px; padding: 12px; max-width: 88%; }
.video .screen {
  background: #121214; color: #F1F0EC; border-radius: 12px; padding: 18px;
  min-height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.video .screen .play { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; color: #F1F0EC; }
.video .screen p { margin: 0; font-size: 15px; }
.video b { display: block; margin-top: 10px; font-size: 14px; }
.video > p { margin: 4px 0 0; font-size: 15px; }

.sim-controls { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--line); padding-top: 18px; }
.ask { margin: 0; font: 700 18px/1.25 var(--display); }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices.row { flex-direction: row; flex-wrap: wrap; }
.btn.choice { text-align: left; padding: 14px 18px; height: auto; line-height: 1.35; }
.btn.choice:hover { background: var(--on-surface); color: var(--bg); }
.draft { background: var(--bg); border-radius: 18px; padding: 12px 16px; }
.draft p { margin: 6px 0 0; font-size: 16px; }
.typing { display: flex; gap: 6px; padding: 8px 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-surface); opacity: .35; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .9; } }

.sim-end { display: flex; flex-direction: column; gap: 16px; }
.sim-end h2 { margin: 0; font: 800 26px/1.1 var(--display); }
.sim-end > p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 62ch; }
.sim-skills ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sim-skills li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.sim-skills .dots i { border-color: var(--on-surface); }
.sim-skills .dots i.on { background: var(--on-surface); }
.btn.r-sim { display: inline-flex; align-items: center; gap: 8px; }
.btn.r-sim[aria-pressed="true"] { background: var(--on-surface); color: var(--bg); }

@media (max-width: 640px) {
  .sim-bar { grid-template-columns: auto 1fr; padding: 10px 14px; }
  .sim-bar .pole { grid-column: 1 / -1; }
  .msg, .video { max-width: 100%; }
  .choices.row .btn { flex: 1 1 30%; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .chat > li, .typing i { animation: none; } }
.sim-end { scroll-margin-top: 110px; }
.sim-bar-slot { position: sticky; top: calc(20px + env(safe-area-inset-top, 0px)); z-index: 2; }
.sim-bar { position: static; }
.sim-skills ul { max-width: 460px; }

/* Карусель: вертикальная прокрутка — браузеру, горизонтальный жест — карточке */
.slot { touch-action: pan-y; }
.slot > .card { will-change: transform; }
.swipe-hint { display: none; }
@media (max-width: 640px) {
  body.in-deck:not(.swiped) .swipe-hint {
    display: block; margin: -4px 0 0; text-align: center;
    font-size: 13px; font-weight: 600; opacity: .55;
  }
}
.boot { margin: 40px 0; text-align: center; font-weight: 600; opacity: .6; }
.msg time { display: block; margin-top: 4px; font-size: 11px; opacity: .45; }
.msg.me { position: relative; padding-bottom: 18px; }
.msg.me time { position: absolute; right: 30px; bottom: 5px; margin: 0; opacity: .6; }
.ticks { position: absolute; right: 12px; bottom: 4px; font-size: 11px; opacity: .6; }
.scene, .doc { background: var(--bg); border-radius: 18px; padding: 12px 16px; max-width: 88%; }
.scene p, .doc p { margin: 6px 0 0; font-size: 16px; line-height: 1.4; }
.shot { max-width: 88%; }
.shot .frame { background: #121214; color: #F1F0EC; border-radius: 12px; padding: 22px 18px; font-size: 15px; line-height: 1.4; }
.shot p { margin: 6px 0 0; font-size: 14px; opacity: .7; }
.try-now { background: var(--bg); border-radius: 22px; padding: 16px 18px; }
.try-now ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.try-now li { font-size: 16px; line-height: 1.4; }
.sim-bar.no-counter { grid-template-columns: auto 1fr; }

.sim-head { display: flex; flex-direction: column; gap: 20px; }
.sim-intro { display: flex; flex-direction: column; gap: 12px; }
/* Длинные слова в названии («возвращаются») переносятся, а не вылезают за край */
.sim-intro h1 { hyphens: auto; overflow-wrap: break-word; }
.poster { line-height: 0; }
/* Компьютер: картинка слева крупно, название и завязка справа */
@media (min-width: 900px) {
  .sim-head.has-cover {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-areas: "poster intro"; column-gap: 32px; align-items: center;
  }
  .sim-head.has-cover .poster { grid-area: poster; }
  .sim-head.has-cover .sim-intro { grid-area: intro; }
  .sim-head.has-cover .lead { font-size: 19px; }
  .sim-head.has-cover h1 { font-size: 34px; }
}
.poster img { width: 100%; height: auto; display: block; border-radius: 22px; border: 2px solid var(--on-surface); }

/* «Попробовать профессию» — в правом верхнем углу карточки, с пульсацией */
.card { position: relative; }
.btn.try {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  min-height: 56px; padding: 8px 18px 8px 10px; border-radius: 18px;
  background: var(--ink); color: var(--c); border-color: var(--ink);
  display: flex; align-items: center; gap: 10px; text-align: left;
  animation: call 2.4s ease-out infinite;
}
.btn.try b { display: block; font: 700 16px/1.1 var(--display); }
.btn.try small { display: block; font-size: 12px; opacity: .75; }
.btn.try:hover { animation: none; transform: scale(1.03); }
.try-play {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c); display: grid; place-items: center;
}
.try-play::after {
  content: ""; border-left: 12px solid var(--ink);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px;
}
@keyframes call {
  0% { box-shadow: 0 0 0 0 #12121466; }
  70% { box-shadow: 0 0 0 14px #12121400; }
  100% { box-shadow: 0 0 0 0 #12121400; }
}
@media (prefers-reduced-motion: reduce) { .btn.try { animation: none; } }
@media (max-width: 640px) {
  .btn.try {
    top: 14px; right: 14px; padding: 8px 12px 8px 8px; min-height: 52px;
    max-width: 56%; gap: 8px;
  }
  .btn.try b { font-size: 14px; line-height: 1.15; }
  .btn.try small { font-size: 11px; }
  .try-play { width: 28px; height: 28px; }
  .try-play::after { border-left-width: 10px; border-top-width: 7px; border-bottom-width: 7px; }
}

/* Компьютер: кнопка пробника — своей строкой, карточки одной высоты */
@media (min-width: 1000px) {
  .card {
    grid-template-areas: "try try" "head pair" "scales fit" "scales school" "more more";
    grid-template-rows: auto auto auto 1fr auto;
    min-height: 820px;
  }
  .btn.try { position: static; grid-area: try; justify-self: end; margin-bottom: -4px; }
  .more { align-self: end; }
}

/* ---------- Путь взросления ---------- */
.path-teaser {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  border: 2px solid var(--on-surface); border-radius: 22px; padding: 16px 18px;
  background: #FFD43B; color: var(--ink);
}
.path-teaser b { font: 800 18px/1.2 var(--display); }
.path-teaser span { font-size: 15px; }
.week { margin: 0; font-size: 16px; }
.path-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.path-day {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; background: transparent;
}
.path-day b { display: block; font-weight: 600; }
.path-day small { display: block; font-size: 14px; opacity: .7; }
.path-day:disabled { opacity: .45; cursor: default; }
.path-day.is-open { border-color: var(--on-surface); }
.path-n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 800 16px/1 var(--display); background: var(--c, #FFD43B); color: var(--ink); border: 2px solid var(--ink);
}
.path-day.is-done .path-n { background: var(--on-surface); color: var(--bg); border-color: var(--on-surface); }
.mission-card { --c: #FFD43B; }
.day .skill-line, .day .traits { margin: 0; font-size: 15px; }
.day .skill-line { display: inline-block; align-self: flex-start; background: var(--c); color: var(--ink); border-radius: var(--radius-chip); padding: 6px 14px; }
.day .scene { margin: 0; font-size: 18px; line-height: 1.5; max-width: 62ch; }
.picked { align-self: flex-end; max-width: 85%; background: var(--on-surface); color: var(--bg); border-radius: 18px 4px 18px 18px; padding: 10px 14px; }
.picked span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.picked p { margin: 4px 0 0; }
.outcome { margin: 0; font-size: 17px; line-height: 1.5; max-width: 62ch; }
.gain { margin: 0; font: 800 17px/1.2 var(--display); }
.rule { border: 2px solid var(--on-surface); border-left: 10px solid var(--c, #FFD43B); border-radius: 18px; padding: 14px 16px; }
.rule span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.rule b { display: block; margin-top: 4px; font: 800 20px/1.2 var(--display); }
.rule p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
.others summary { cursor: pointer; font-weight: 600; }
.others ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.recall { margin: 0; background: var(--line); border-radius: 18px; padding: 12px 16px; }
.own { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.own small { font-weight: 400; opacity: .65; }
.own textarea {
  font: 16px/1.4 var(--text); color: inherit; background: transparent;
  border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; resize: vertical;
}
.own textarea:focus { outline: none; border-color: var(--on-surface); }
.skills, .traits-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.skills small { opacity: .7; }
.skill-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.skills .bar-fill { --c: #FFD43B; }
.profile h2 { margin: 8px 0 0; font: 800 20px/1.2 var(--display); }
.mission-opt small { opacity: .7; }
.skills .bar-track { display: block; }
.btn.mission-opt { font-weight: 400; }
.btn.mission-opt b { font-weight: 700; }
.like .ask { margin-bottom: 10px; }


/* Маршрут навыка */
.path h2.step-title { margin: 8px 0 -4px; font: 800 18px/1.2 var(--display); }
.versus { display: grid; gap: 10px; }
@media (min-width: 700px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus > div { border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.versus > div.pro { border-color: var(--on-surface); }
.versus span, .loop .label, .own-line .label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.versus p { margin: 6px 0 0; line-height: 1.45; }
.versus .then { opacity: .75; }
.talk { display: flex; flex-direction: column; gap: 10px; }
.talk .say { margin: 0; font-size: 17px; line-height: 1.5; }
.talk .reply { align-self: flex-start; max-width: 85%; margin: 0; background: var(--line); border-radius: 4px 18px 18px 18px; padding: 10px 14px; }
.talk .note { margin: 0; }
.own-line, .loop { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--on-surface); border-radius: 18px; padding: 14px 16px; }
.own-line p, .loop p { margin: 0; line-height: 1.5; }
.loop { background: var(--c, #FFD43B); color: var(--ink); border-color: var(--ink); }
.loop .btn { align-self: flex-start; }
.btn.check { display: flex; align-items: center; gap: 10px; }
.btn.check .r-mark { flex: none; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 6px; display: grid; place-items: center; }
.day h2 { margin: 0; font: 800 22px/1.2 var(--display); }

/* Маршрут подростка: трекер на главной и подсказки на карточках */
.path-day.is-locked { opacity: .45; }
.journey-track .path-day { cursor: default; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.btn.link, .link { background: none; border: 0; padding: 0; min-height: 0; font: inherit; font-size: 15px; color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .75; cursor: pointer; }
.link:hover { opacity: 1; }
.journey-cta { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--ink); border-radius: 18px; padding: 14px 16px; background: #FFD43B; color: var(--ink); }
.journey-cta.is-done { background: transparent; color: inherit; border-color: var(--on-surface); }
.journey-cta .label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.journey-cta p { margin: 0; line-height: 1.45; }
.journey-cta .btn { align-self: flex-start; }
@media (min-width: 1000px) {
  .card.has-cta { grid-template-areas: "cta cta" "head pair" "scales fit" "scales school" "more more"; }
  .card .journey-cta { grid-area: cta; }
}

/* Важность навыка: маленькие кружки */
.dots.sm { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots.sm i { width: 11px; height: 11px; border-width: 2px; border-color: var(--on-surface); }
.dots.sm i.on { background: var(--on-surface); }
.imp { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.imp .label { margin: 0; }
.imp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.imp-list li { display: grid; grid-template-columns: minmax(0, 220px) auto auto; justify-content: start; align-items: center; gap: 12px; }
.imp-list small { color: var(--muted, inherit); opacity: .75; }
.imp-row .dots.sm { margin: 0 2px; }

.more-skills { margin-top: 12px; }
.more-skills > summary { list-style: none; display: inline-flex; cursor: pointer; }
.more-skills > summary::-webkit-details-marker { display: none; }
.more-skills[open] > summary { margin-bottom: 12px; }

/* Вход по коду и отзыв (свой сервер) */
.login { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.login input { flex: 1 1 200px; min-height: 56px; font: 600 22px/1 "Golos Text", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid var(--on-surface); border-radius: 18px; padding: 0 16px; background: var(--surface); color: var(--on-surface); }
.fb-form { display: flex; flex-direction: column; gap: 8px; }
.fb-form textarea, .fb-select { font: inherit; border: 2px solid var(--on-surface); border-radius: 18px; padding: 10px 14px; background: var(--surface); color: var(--on-surface); }
.fb-scale label { cursor: pointer; }
.fb-scale input { position: absolute; opacity: 0; pointer-events: none; }
.fb-scale label:has(input:checked) { background: var(--on-surface); color: var(--bg); }

/* ---------- Регистрация и вход (account.js, 27.09.2026) ---------- */
.reg form { display: flex; flex-direction: column; gap: 14px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.reg-field small { font-weight: 400; font-size: 13px; opacity: .7; }
.reg-field input, .reg-date select { font: 500 17px/1.2 var(--text); border: 2px solid var(--on-surface); border-radius: 14px; padding: 12px 14px; background: var(--surface); color: var(--on-surface); width: 100%; }
.reg-date { display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: 8px; }
.reg-why { background: #FFD43B; color: #121214; border: 2px solid #121214; border-radius: 18px; padding: 14px 16px; font-size: 14px; }
.reg-why b { font: 700 14px/1.2 var(--display); }
.reg-why ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.reg-sees { border: 2px solid var(--on-surface); border-radius: 16px; background: var(--surface); }
.reg-sees summary { cursor: pointer; padding: 12px 14px; font-weight: 700; display: flex; justify-content: space-between; list-style: none; }
.reg-sees summary::after { content: "Открыть ▾"; font-size: 13px; font-weight: 600; opacity: .7; }
.reg-sees[open] summary::after { content: "Свернуть ▴"; }
.reg-sees table { width: calc(100% - 28px); margin: 0 14px 14px; border-collapse: collapse; font-size: 13.5px; }
.reg-sees td, .reg-sees th { padding: 6px 4px; border-top: 1px solid var(--line); text-align: left; }
.reg-sees td + td, .reg-sees th + th { text-align: center; width: 48px; font-weight: 700; }
.reg-kid { border: 2px solid var(--on-surface); border-radius: 16px; padding: 12px 14px; background: var(--surface); font-size: 15px; }
.reg-kid p { margin: 4px 0 0; }
.reg-check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; font-weight: 500; }
.reg-check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--on-surface); }
.reg-check small { display: block; font-size: 13px; opacity: .7; margin-top: 4px; }
.reg-check a, .reg .note a { color: inherit; }
.reg-next { margin: 0; font-weight: 600; font-size: 14.5px; border-left: 4px solid var(--on-surface); padding: 2px 0 2px 10px; }
.reg-err { color: #B5391F; font-weight: 600; opacity: 1; }
.reg-mail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.reg-mail b { font-size: 17px; border: 2px dashed var(--on-surface); border-radius: 12px; padding: 8px 12px; }
.links .link, .note .link { margin-left: 0; }

/* Установка на телефон (account.js + install-guide.js) */
.inst-card { background: #FFD43B; color: #121214; border: 2px solid #121214; border-radius: 20px; padding: 16px 18px; display: grid; gap: 8px; margin-bottom: 18px; }
.inst-card b { font: 800 18px/1.15 var(--display); }
.inst-card p { margin: 0; font-size: 15px; }
.inst-card .btn.ghost { color: #121214; border-color: #121214; }
.inst-step { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 20px; align-items: center; }
.inst-pic .ig-pic { width: 100%; max-width: 220px; height: auto; display: block; }
.inst-text p { margin: 0 0 8px; font-size: 17px; line-height: 1.45; }
.inst-n { display: block; font: 700 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-bottom: 10px; }
.inst-dots { display: flex; gap: 6px; margin: 4px 0 0; }
.inst-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .2; }
.inst-dots i.on { opacity: 1; width: 22px; border-radius: 4px; }
.inst-tabs { display: flex; gap: 8px; margin: 4px 0 8px; }
.inst-url { font-weight: 600; word-break: break-all; }
@media (max-width: 560px) { .inst-step { grid-template-columns: 1fr; justify-items: center; text-align: left; } .inst-pic .ig-pic { max-width: 200px; } }
.reg-sees .note { margin: 0 14px 14px; }

/* ===== Новая основа (этап 1, 27.09.2026): макет docs/2026-09-27_экраны-подростка_макет.html ===== */
:root { --lav: #CFA8FF; --st1: #F3EBFF; --st2: #DEC8FF; --st3: #B889F2; --dir-r: #35E0A0; --dir-i: #7B96FF; --dir-a: #FF6B96; --dir-s: #FFA04D; --dir-e: #F0442C; --dir-c: #FFD43B; }
.ico { width: 1em; height: 1em; flex: none; }
.bar { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { font: 800 20px/1 var(--display); letter-spacing: -.02em; }
.brand-logo span { color: #F0442C; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--on-surface); background: var(--surface); display: grid; place-items: center; font-size: 22px; padding: 0; }
.stage { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bg); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px max(8px, calc((100vw - 760px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px)); }
.tabbar button { background: none; border: 0; display: grid; justify-items: center; gap: 3px; padding: 6px 0; font: 600 11px/1 var(--text); color: color-mix(in srgb, var(--on-surface) 50%, transparent); }
.tabbar button .ico { font-size: 26px; }
.tabbar button[aria-current="page"] { color: var(--on-surface); font-weight: 700; }
body.in-sim .tabbar { display: none; }
/* первый экран */
.home h1 { font-size: clamp(30px, 8vw, 44px); line-height: 1.02; }
.pill { align-self: flex-start; justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--on-surface); border-radius: 999px; padding: 5px 11px; font: 600 12.5px/1 var(--text); background: var(--surface); }
.brandpill b { color: #F0442C; font-weight: 600; }
.doors { display: grid; gap: 10px; }
.door { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; border: 2px solid var(--on-surface); border-radius: 26px; padding: 15px 14px; background: var(--surface); color: var(--on-surface); }
.door b { display: block; font: 800 17px/1.12 var(--display); }
.door small { display: block; margin-top: 4px; font: 600 13px/1.25 var(--text); opacity: .8; }
.door > .ico { font-size: 22px; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--on-surface); color: var(--bg); box-sizing: border-box; }
.door .n { width: 30px; height: 30px; border-radius: 50%; background: var(--on-surface); color: var(--bg); display: grid; place-items: center; font: 800 14px/1 var(--display); }
.door:not(:has(.n)) { grid-template-columns: 1fr auto; }
.door.rainbow { background: linear-gradient(90deg, var(--dir-r) 0 16.66%, var(--dir-i) 0 33.33%, var(--dir-a) 0 50%, var(--dir-s) 0 66.66%, var(--dir-e) 0 83.33%, var(--dir-c) 0) top / 100% 8px no-repeat, var(--surface); padding-top: 21px; }
.door.skills { background: var(--lav); color: #121214; border-color: #121214; }
.door.skills > .ico { background: #121214; color: #F1F0EC; }
.tile-go { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left; background: var(--on-surface); color: var(--bg); border: 0; border-radius: 22px; padding: 13px 16px; }
.tile-go .t { font: 600 11px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.tile-go b { font: 700 15px/1.2 var(--text); grid-column: 1; }
.tile-go .ico { grid-column: 2; grid-row: 1 / 3; font-size: 22px; }
.ticker { background: var(--on-surface); color: var(--bg); border-radius: 999px; overflow: hidden; white-space: nowrap; padding: 10px 0; font: 700 12.5px/1 var(--display); }
.ticker span { display: inline-block; animation: tick 22s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; } }
/* настройки и копилка */
.set { display: grid; background: var(--surface); border: 2px solid var(--on-surface); border-radius: 22px; overflow: hidden; }
.set button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 16px; border: 0; border-top: 2px solid var(--line); background: none; text-align: left; font: 600 15px/1.2 var(--text); }
.set button:first-child { border-top: 0; }
.set small { font-weight: 500; opacity: .6; }
.set .ico { font-size: 18px; opacity: .6; }
.kop .feed { display: grid; gap: 8px; }
.kop .entry { background: var(--surface); border: 2px solid var(--on-surface); border-radius: 20px; padding: 12px 14px; font-weight: 600; }
.kop .entry p { margin: 0; }
.react { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.panel.home, .panel.kop, .panel.settings { background: none; padding: 4px 0 8px; }

/* ===== Этап 2: раздел «Профессии» ===== */
.panel.new { background: none; padding: 4px 0 8px; gap: 16px; }
.panel.new h1 { font-size: clamp(26px, 7vw, 38px); }
.panel.new .lead { font-size: 16px; }
.note.center { text-align: center; }
.link { background: none; border: 0; padding: 0; font: 600 15px/1.2 var(--text); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.btn .ico { font-size: 20px; margin-left: 8px; vertical-align: -4px; }
.btn.primary { display: inline-flex; align-items: center; justify-content: center; }
/* опрос */
.q-card { background: var(--surface); border: 2px solid var(--on-surface); border-radius: 26px; padding: 18px; display: grid; gap: 14px; }
.q-card .ask-lead { margin: 0; font-size: 14px; opacity: .7; }
.q-card .q-one { margin: 0; font: 800 clamp(20px, 5.4vw, 26px)/1.15 var(--display); }
.scale-row { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 6px; font: 600 11.5px/1.15 var(--text); }
.scale-row > span:last-child { text-align: right; }
.scale-row .dots-row { display: flex; justify-content: space-between; }
.scale-row .dot { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--on-surface); background: var(--surface); padding: 0; }
.scale-row .dot[aria-checked="true"] { background: var(--on-surface); box-shadow: inset 0 0 0 5px var(--surface); }
/* результат */
.dtag { display: inline-flex; align-items: center; align-self: flex-start; justify-self: start; border: 2.5px solid var(--d); background: color-mix(in srgb, var(--d) 22%, #fff); color: #121214; border-radius: 999px; padding: 4px 11px; font: 700 12.5px/1 var(--text); width: fit-content; }
.dlist { display: grid; gap: 7px; }
.drow { background: var(--surface); border: 2px solid var(--on-surface); border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.drow p { grid-column: 1 / -1; margin: 0; font-size: 13px; opacity: .8; }
.dbar { height: 11px; border: 2px solid var(--on-surface); border-radius: 999px; background: var(--bg); overflow: hidden; }
.dbar i { display: block; height: 100%; }
/* карточка профессии и листалка */
.pcard { display: grid; text-align: left; background: var(--surface); color: var(--on-surface); border: 2px solid var(--on-surface); border-radius: 26px; overflow: hidden; padding: 0; width: 100%; }
.pcard img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--on-surface); }
.pcard .bigicon { display: grid; place-items: center; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--d) 35%, #fff); border-bottom: 2px solid var(--on-surface); font-size: 72px; color: #121214; }
.pcard .body { display: grid; gap: 7px; padding: 13px 15px 15px; }
.pcard .body > b { font: 800 24px/1.05 var(--display); }
.pcard .body > small { font-size: 14px; font-weight: 600; }
.pcard dl { margin: 2px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 13.5px; }
.pcard dt { font: 600 11px/1.6 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.pcard dd { margin: 0; }
.pcard .mk { justify-self: start; font: 600 12px/1 var(--text); font-style: normal; border: 2px solid var(--on-surface); border-radius: 999px; padding: 5px 9px; }
.deck3 { position: relative; margin: 6px 8px 4px; }
.deck3 .pcard { position: relative; z-index: 2; }
.deck3 .back1, .deck3 .back2 { position: absolute; inset: 0; border: 2px solid var(--on-surface); border-radius: 26px; background: var(--surface); }
.deck3 .back1 { transform: rotate(3deg) translate(6px, 4px); z-index: 1; }
.deck3 .back2 { transform: rotate(-3deg) translate(-6px, 6px); z-index: 0; }
.deckctl { display: flex; align-items: center; justify-content: center; gap: 18px; font: 700 15px/1 var(--display); }
.deckctl .round:disabled { opacity: .3; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 2px solid var(--on-surface); border-radius: 999px; padding: 7px 12px; font: 600 13px/1 var(--text); background: var(--surface); }
.filters button.on { background: var(--on-surface); color: var(--bg); }
.prows { display: grid; gap: 6px; }
.prow { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--on-surface); border-radius: 16px; padding: 10px 12px; background: color-mix(in srgb, var(--d) 45%, #fff); color: #121214; font: 600 14.5px/1.15 var(--text); }
.prow em { margin-left: auto; font: 600 11.5px/1 var(--text); font-style: normal; border: 2px solid #121214; border-radius: 999px; padding: 4px 8px; background: #fff; white-space: nowrap; }
.lv { display: grid; grid-template-columns: 1fr repeat(5, 16px); gap: 8px 5px; align-items: center; font: 600 13px/1.15 var(--text); background: var(--surface); border: 2px solid var(--on-surface); border-radius: 18px; padding: 12px 14px; }
.lv i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-surface); }
.lv i.on { background: var(--on-surface); }
.marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.marks button { display: grid; justify-items: center; gap: 3px; border: 2px solid var(--on-surface); border-radius: 16px; padding: 10px 2px; font: 600 12.5px/1 var(--text); background: var(--surface); }
.marks button b { font: 800 18px/1 var(--display); }
.marks button.on { background: var(--on-surface); color: var(--bg); }
/* после пробника */
.sim-end.new { display: grid; gap: 14px; }
.need { background: var(--surface); border: 2px solid var(--on-surface); border-radius: 22px; padding: 13px 15px; display: grid; gap: 6px; }
.need b { font: 800 15px/1.15 var(--display); }
.need p, .need ul { margin: 0; font-size: 14px; }
.refl { background: var(--surface); border: 2px solid var(--on-surface); border-radius: 22px; padding: 13px 14px; display: grid; gap: 9px; }
.refl > b { font: 800 16px/1.2 var(--display); }
.starts { display: flex; flex-wrap: wrap; gap: 6px; }
.starts button { border: 2px dashed var(--on-surface); border-radius: 999px; padding: 7px 11px; font: 600 12.5px/1 var(--text); background: transparent; }
.own.mic { position: relative; }
.own.mic textarea { width: 100%; border: 2px dashed var(--on-surface); border-radius: 16px; padding: 11px 50px 11px 13px; font: 500 15px/1.35 var(--text); background: var(--bg); color: var(--on-surface); resize: vertical; }
.micb { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--on-surface); color: var(--bg); display: grid; place-items: center; font-size: 18px; padding: 0; }
.mictip { margin: -2px 0 0 !important; }
.sim.ended .sim-bar, .sim.ended .sim-bar-slot > * { position: static !important; }
.panel.sim.new .count { text-transform: none; letter-spacing: 0; opacity: 1; }

/* ===== Этап 3: раздел «Навыки» (лавандовый) ===== */
.note.strong { font-weight: 700; opacity: 1; }
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 2px solid var(--on-surface); border-radius: 16px; padding: 6px; }
.stairs span { height: 44px; display: grid; place-content: center; text-align: center; font: 700 12px/1.05 var(--text); color: #121214; clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%, 14% 50%); margin-right: -6px; padding: 0 6px 0 10px; }
.stairs span:first-child { clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%); padding-left: 4px; }
.stairs small { display: block; font: 500 10px/1.1 var(--text); opacity: .8; }
.s1 { background: var(--st1); } .s2 { background: var(--st2); } .s3 { background: var(--st3); } .s4 { background: #121214; color: #F1F0EC !important; }
.stairs span.on { box-shadow: inset 0 0 0 3px #121214; }
.slist { display: grid; gap: 7px; }
.slist button { display: grid; gap: 5px; text-align: left; background: var(--surface); border: 2px solid var(--on-surface); border-radius: 16px; padding: 11px 13px; }
.slist b { font: 700 15px/1.15 var(--text); }
.slist .prog { font-size: 12px; opacity: .7; }
.need2 { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font: 600 12px/1.2 var(--text); }
.need2 .dtag { font-size: 11px; padding: 3px 8px; }
.skpick { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; text-align: left; background: var(--surface); border: 2px solid var(--on-surface); border-radius: 18px; padding: 11px 13px; }
.skpick > i { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--on-surface); }
.skpick.on { box-shadow: inset 0 0 0 2px var(--on-surface); }
.skpick.on > i { background: var(--on-surface); box-shadow: inset 0 0 0 4px var(--surface); }
.skpick b { display: block; font: 700 14.5px/1.15 var(--text); }
.skpick small { display: block; font-size: 12px; opacity: .75; }
.skpick small.need2 { opacity: 1; }
.pb { display: block; height: 8px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--on-surface); overflow: hidden; margin-top: 5px; }
.pb i { display: block; height: 100%; background: var(--st3); }
.counter { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--on-surface); border-radius: 18px; padding: 8px 8px 8px 14px; font: 700 14px/1 var(--text); }
.counter .btn { margin-left: auto; min-height: 44px; }
.btn:disabled { opacity: .35; }
.plan-list { display: grid; gap: 8px; }
.pl { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; align-items: center; background: var(--surface); border: 2px solid var(--on-surface); border-radius: 18px; padding: 11px 13px; }
.pl em { grid-row: 1 / 4; width: 30px; height: 30px; border-radius: 50%; background: var(--on-surface); color: var(--bg); display: grid; place-items: center; font: 800 14px/1 var(--display); font-style: normal; }
.pl b { font: 700 14.5px/1.15 var(--text); } .pl small { font-size: 12px; opacity: .7; } .pl .pb { grid-column: 2; }
.rsteps { display: grid; gap: 6px; }
.rsteps .grp { justify-self: start; border: 2px solid #121214; border-radius: 999px; padding: 5px 11px; font: 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; color: #121214; }
.rsteps .st { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 2px solid var(--on-surface); border-radius: 14px; padding: 8px 10px; font: 600 13.5px/1.2 var(--text); color: var(--on-surface); }
.rsteps .st b { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--on-surface); display: grid; place-items: center; font: 800 11px/1 var(--display); flex: none; background: var(--surface); }
.rsteps .st.done.s1 b { background: var(--st1); } .rsteps .st.done.s2 b { background: var(--st2); } .rsteps .st.done.s3 b { background: var(--st3); } .rsteps .st.done.s4 b { background: #121214; color: #F1F0EC; }
.rsteps .st.now.s1 { background: var(--st1); } .rsteps .st.now.s2 { background: var(--st2); } .rsteps .st.now.s3 { background: var(--st3); } .rsteps .st.now.s4 { background: #121214; color: #F1F0EC; }
.rsteps .st.now { color: #121214; }
.rsteps .st.lock { opacity: .5; border-style: dashed; }
.rsteps .st.s4:not(.now) { color: var(--on-surface) !important; }
.pill.s1, .pill.s2, .pill.s3 { color: #121214; border-color: #121214; } .pill.s4 { border-color: #121214; }
.res4 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.res4 button { border: 2px solid var(--on-surface); border-radius: 14px; padding: 11px 6px; font: 600 13px/1.1 var(--text); background: var(--surface); }
.res4 button.on, .starts button.on { background: var(--on-surface); color: var(--bg); border-style: solid; }
.need.task { background: var(--st1); color: #121214; border-color: #121214; }
.done-box { display: grid; gap: 12px; }
.big-num { margin: 0; font: 800 64px/.9 var(--display); letter-spacing: -.03em; }
.set.small span { display: flex; justify-content: space-between; padding: 11px 14px; border-top: 2px solid var(--line); font-weight: 600; }
.set.small span:first-child { border-top: 0; }
.panel.day { background: none; padding: 4px 0 8px; }
.lhead { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.panel.day .skill-line { background: var(--st1); border: 2px solid var(--on-surface); border-radius: 14px; padding: 8px 12px; font-size: 14px; }
.panel.day .scene { background: var(--surface); border: 2px solid var(--on-surface); border-radius: 18px; padding: 12px 14px; font-size: 16px; max-width: none; }
.panel.day .versus > div { background: var(--surface); }
.panel.day .versus > div.pro { background: var(--st1); color: #121214; }
.panel.day .rule { border: 2px solid var(--on-surface); background: var(--st1); color: #121214; }
.panel.day .gain { font-size: 15px; }

/* ---------- Этап 4: Копилка опыта и «Мой прогресс» ---------- */
.seg2 { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--on-surface); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg2 button { border: 0; background: none; border-radius: 999px; padding: 9px 6px; font: 700 13.5px/1.1 var(--text); color: var(--on-surface); }
.seg2 button.on { background: var(--on-surface); color: var(--bg); }
.secs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.secs button { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; background: var(--surface); border: 2px solid var(--on-surface); border-radius: 14px; padding: 9px 11px; font: 600 13px/1.2 var(--text); color: var(--on-surface); }
.secs button em { font: 800 13px/1 var(--display); font-style: normal; }
.secs button.on { background: var(--on-surface); color: var(--bg); }
.kop .feed { display: grid; gap: 8px; }
.ent { background: var(--surface); border: 2px solid var(--on-surface); border-radius: 20px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.ent q { font: 600 15px/1.35 var(--text); quotes: "«" "»"; }
.ent .own { justify-self: stretch; }
.ent .a { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; }
.ent .a span { opacity: .7; }
.ent .a button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; font: 600 13px/1 var(--text); color: var(--on-surface); text-decoration: underline; text-underline-offset: 3px; }
.ent .a button .ico { width: 15px; height: 15px; }
.pill.lav { background: var(--st1); color: #121214; border-color: #121214; }
.tile { display: grid; gap: 8px; background: var(--surface); border: 2px solid var(--on-surface); border-radius: 22px; padding: 14px 16px; }
.tile .t, .refl .t { font: 600 11px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.tile.ink { background: #121214; color: #F1F0EC; border-color: #121214; }
.tile.ink b { font: 800 19px/1.15 var(--display); }
.tile.ink .note { color: #F1F0EC; opacity: .8; margin: 0; }
.pb.inv { background: #121214; border-color: #F1F0EC; }
.btn.lav { background: var(--lav); color: #121214; border-color: var(--lav); }
.btn.ghost.inv { color: #F1F0EC; border-color: #F1F0EC; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.acts button { border: 2px solid var(--on-surface); background: var(--surface); border-radius: 999px; padding: 7px 12px; font: 600 13px/1 var(--text); color: var(--on-surface); }
.set .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 16px; border-top: 2px solid var(--line); font: 600 15px/1.2 var(--text); }
.settings .reg-sees { margin-top: 4px; }
/* Регистрация и установка — в новой основе: молочный фон без белой панели, лавандовые плашки навыков */
.panel.intro, .panel.reg { background: none; border: 0; box-shadow: none; padding-inline: 0; }
.reg-why { background: var(--st1); }
.reg-sees td + td, .reg-sees th + th { text-align: left; width: auto; font-weight: 400; } .reg-sees th { font-weight: 700; }
button.pl { text-align: left; color: var(--on-surface); font: inherit; width: 100%; }
.pl:not(:has(em)) { grid-template-columns: 1fr; }
.note.warn-lav { background: var(--st1); color: #121214; border: 2px solid var(--on-surface); border-radius: 14px; padding: 10px 12px; opacity: 1; font-weight: 600; }
.skpick:disabled { opacity: 1; cursor: default; }
.full-note { display: grid; gap: 8px; background: var(--st1); color: #121214; border: 2px solid #121214; border-radius: 20px; padding: 14px 16px; }
.full-note b { font: 800 16px/1.2 var(--display); }
.full-note p { margin: 0; font-size: 14.5px; }
.full-note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.full-note li { display: flex; justify-content: space-between; gap: 10px; background: #FFFFFF; border: 2px solid #121214; border-radius: 12px; padding: 7px 10px; font-weight: 600; font-size: 14px; }
.full-note li small { font-weight: 500; opacity: .7; white-space: nowrap; }

/* Установка на телефон — все шаги списком, один шаг — одно действие (30.09.2026) */
.ig-list { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 12px; }
.ig-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: #FFFFFF; color: #121214; border: 2px solid #121214; border-radius: 18px; padding: 14px; }
.ig-num { width: 40px; height: 40px; border-radius: 50%; background: #121214; color: #FFFFFF; display: grid; place-items: center; font: 800 18px/1 Unbounded, "Arial Black", sans-serif; }
.ig-body p { margin: 8px 0 0; font-size: 17px; line-height: 1.4; }
.ig-body p.ig-note { font-size: 14px; opacity: .7; }
.ig-picbox { margin-top: 10px; }
.ig-picbox .ig-pic { width: 100%; max-width: 160px; height: auto; display: block; }
