/* Компоненты мини-аппа. Цвета, шрифты, обводки и тени - только переменные из skin-*.css,
   своих цветов здесь нет (кроме темы титульного слайда --th-*, её задаёт app.js). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg) radial-gradient(var(--bg-dots) 1.2px, transparent 1.4px) 0 0 / 18px 18px;
  color: var(--ink); font: 16px/1.4 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c-pink); outline-offset: 2px; }
main { padding: 0 16px 112px; max-width: 520px; margin: 0 auto; }
body.has-cta main { padding-bottom: 96px; }

/* наклейка: обводка + жёсткая тень; при нажатии «вдавливается» */
.st { border: var(--bw) solid var(--edge); box-shadow: var(--sh); border-radius: var(--r); transition: transform .12s ease, box-shadow .12s ease; }
button.st:active, a.st:active, .press:active { transform: translate(var(--press), var(--press)); box-shadow: 1px 1px 0 var(--edge); }
button:disabled { cursor: default; }

/* ---------------------------------------------------------------- шапка */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 16px; max-width: 520px; margin: 0 auto; background: var(--bg); }
.logo { display: flex; align-items: center; gap: 8px; font: 800 13.5px/1 var(--font-head); min-width: 0; letter-spacing: -.2px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo i { width: 34px; height: 34px; display: grid; place-items: center; background: var(--c-yellow); color: var(--on);
  border: var(--bw) solid var(--edge); border-radius: 10px; font-style: normal; font-size: 16px; transform: rotate(-6deg); }
.logo b { color: var(--c-pink); }
.coins { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 5px; min-height: 42px; background: var(--paper);
  font: 800 14px/1 var(--font-head); color: var(--ink); text-decoration: none; border-radius: 999px; white-space: nowrap; }
.coins small { font: 600 12px var(--font-body); color: var(--ink2); margin-left: 4px; }
.coins.zero small { color: var(--on); }
.coins i { width: 28px; height: 28px; border-radius: 50%; background: var(--c-yellow); border: 2px solid var(--edge);
  display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--on); }
.coins.zero { background: var(--c-yellow); color: var(--on); }

/* ---------------------------------------------------------------- нижние вкладки */
.tabs { position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 6;
  max-width: 488px; margin: 0 auto; display: flex; gap: 4px; padding: 5px; background: var(--tabs-bg);
  border: var(--bw) solid var(--edge); border-radius: 999px; box-shadow: var(--sh-sm); }
.tabs a { flex: auto; text-align: center; color: var(--tabs-ink); opacity: .8; text-decoration: none; font: 600 13.5px/1 var(--font-body); white-space: nowrap;
  padding: 13px 8px; border-radius: 999px; }
.tabs a[aria-current="true"] { background: var(--c-yellow); color: var(--on); opacity: 1; font-weight: 700; }
body.has-cta .tabs { display: none; }

/* ---------------------------------------------------------------- общие */
h1, h2, h3 { margin: 0; }
h2 { font: 800 17px/1.15 var(--font-head); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; letter-spacing: -.3px; }
h2 .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 12px; flex: none; }
.hint { margin: 8px 2px 0; font-size: 13.5px; color: var(--ink2); }
.hint:empty { display: none; }
.screen-head { margin: 8px 0 18px; }
.screen-head.with-mascot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 92px; margin-bottom: 14px; }
.screen-head.with-mascot .mascot { width: 104px; flex: none; transform: rotate(3deg); margin-bottom: -6px; }
.screen-title { font: 800 26px/1.05 var(--font-head); letter-spacing: -.8px; }
.pop { animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.pop:nth-child(2) { animation-delay: .05s; } .pop:nth-child(3) { animation-delay: .1s; }
.pop:nth-child(4) { animation-delay: .15s; } .pop:nth-child(5) { animation-delay: .2s; } .pop:nth-child(6) { animation-delay: .25s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.empty { text-align: center; padding: 40px 12px; color: var(--ink2); }
.empty .mascot { width: 120px; margin: 0 auto 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px;
  background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; border-radius: var(--r); }
.btn.primary { background: var(--c-yellow); color: var(--on); }

/* ---------------------------------------------------------------- персонаж */
.mascot { position: relative; }
/* картинка с прозрачным фоном → наклейка: светлая кайма по контуру и жёсткая тень */
.mascot img { display: block; width: 100%; height: auto; transform-origin: 50% 100%;
  filter: drop-shadow(2px 0 0 var(--mascot-rim)) drop-shadow(-2px 0 0 var(--mascot-rim)) drop-shadow(0 2px 0 var(--mascot-rim))
          drop-shadow(0 -2px 0 var(--mascot-rim)) drop-shadow(3px 3px 0 var(--mascot-shadow)); }
.mascot.work img { animation: nod 1.6s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-2px); } }
.bubble { background: var(--paper); font: 600 13px/1.25 var(--font-body); padding: 8px 11px; border-radius: 14px 14px 4px 14px; box-shadow: var(--sh-sm); }

/* ---------------------------------------------------------------- главная */
.intro { position: relative; padding-right: 124px; min-height: 146px; margin: 6px 0 16px; }
.intro p { margin: 0 0 6px; font-weight: 600; color: var(--ink2); }
.intro h1 { font: 800 32px/1.04 var(--font-head); letter-spacing: -1px; }
.intro h1 em { font-style: normal; background: var(--c-pink); color: var(--on); padding: 0 8px; border-radius: 10px; display: inline-block;
  transform: rotate(-2deg); border: var(--bw) solid var(--edge); margin-top: 4px; }
.intro .mascot { position: absolute; right: -2px; top: -6px; width: 128px; transform: rotate(4deg); }
.intro .bubble { position: absolute; right: 96px; top: 110px; white-space: nowrap; transform: rotate(-3deg); }

.active-job { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; background: var(--c-mint); color: var(--on); text-decoration: none; }
.active-job b { display: block; font: 800 14px/1.2 var(--font-head); }
.active-job span { font-size: 13.5px; }
.active-job .spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--on); border-right-color: transparent; animation: rot 1s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

.hero { position: relative; display: block; width: 100%; text-align: left; color: var(--on); padding: 18px; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.hero h3 { font: 800 26px/1 var(--font-head); margin: 0 0 8px; letter-spacing: -.6px; }
.hero p { margin: 0; font-size: 15px; max-width: 66%; font-weight: 500; }
.burst { display: inline-block; margin-top: 12px; background: var(--c-pink); color: var(--on);
  font: 800 11.5px/1.2 var(--font-head); padding: 7px 11px; border: var(--bw) solid var(--edge); border-radius: 10px; box-shadow: var(--sh-sm);
  transform: rotate(-2deg); animation: wobble 3.2s ease-in-out infinite; }
.burst span { display: block; }
/* наклейка покачивается целиком, вместе с текстом - ничего не «плывёт» */
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(1.5deg) scale(1.04); } }
.strip { display: flex; gap: 8px; margin: 16px 0 14px; }
.strip img { width: 33%; aspect-ratio: 16/9; object-fit: cover; border: var(--bw) solid var(--on); border-radius: 8px; background: var(--paper); }
.strip img:nth-child(2) { transform: rotate(-3deg) translateY(4px); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { background: var(--on); color: var(--c-yellow); font: 800 14px/1 var(--font-head); padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.tag small { font: 500 12px var(--font-body); color: #fff; opacity: .8; }
.tag s { opacity: .6; font-weight: 600; margin-right: 4px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--on); color: #fff; display: grid; place-items: center; font-size: 24px; flex: none; }
.sale { display: inline-block; margin-top: 10px; background: var(--paper); color: var(--ink); border: 2px solid var(--on); border-radius: 8px; padding: 3px 8px; font-size: 12.5px; font-weight: 700; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.soon { position: relative; text-align: left; color: var(--on); padding: 14px; min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .07) 0 7px, transparent 7px 15px); }
.soon.wide { grid-column: span 2; min-height: 96px; padding-right: 76px; }
.soon svg { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; }
.soon.wide svg { top: 50%; transform: translateY(-50%); left: auto; right: 18px; width: 46px; height: 46px; }
.soon b { font: 800 14px/1.1 var(--font-head); letter-spacing: -.3px; }
.soon em { font-style: normal; font-size: 13px; font-weight: 500; opacity: .85; line-height: 1.2; }
.ribbon { position: absolute; top: 14px; right: -30px; background: var(--on); color: #fff; font: 800 10px/1 var(--font-head); letter-spacing: 1px; padding: 6px 34px; transform: rotate(35deg); }
.soon.wide .ribbon { display: none; }
.chip-soon { display: inline-block; align-self: flex-start; background: var(--on); color: #fff; font: 800 10px/1 var(--font-head); letter-spacing: 1px; padding: 5px 8px; border-radius: 6px; }
.soon .chip-soon { display: none; margin-bottom: 4px; }
.soon.wide .chip-soon { display: inline-block; }
.soon .wait { position: absolute; top: 12px; left: 58px; font-size: 11.5px; font-weight: 700; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 2px 6px; border: 2px solid var(--on); }

.last { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--paper); color: var(--ink); text-decoration: none; }
.last img, .last .ph { width: 92px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 2px solid var(--edge); flex: none; }
.last .ph { display: grid; place-items: center; font: 800 11px var(--font-head); background: var(--c-yellow); color: var(--on); }
.last b { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
.st-badge { font-size: 12.5px; font-weight: 700; color: var(--on); background: var(--c-mint); padding: 2px 8px; border-radius: 6px; display: inline-block; margin-top: 4px; }
.st-badge.fail { background: var(--c-coral); }
.st-badge.run { background: var(--c-yellow); }
.st-badge.look { background: var(--c-pink); }
.st-badge.pro-badge { background: var(--c-yellow); margin: 4px 0 0; display: table; }

/* ---------------------------------------------------------------- форма */
.preview { position: relative; padding: 10px; background: var(--paper); border-radius: 20px; }
.preview .label { position: absolute; top: -12px; left: 16px; z-index: 1; background: var(--c-mint); color: var(--on); font: 800 10px/1 var(--font-head);
  letter-spacing: 1px; padding: 6px 10px; border-radius: 8px; border: 2px solid var(--edge); transform: rotate(-3deg); }
.slide { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; padding: 5.5% 6% 5%;
  background: var(--th-bg, #1B2A44); color: var(--th-text, #fff); display: grid; grid-template-rows: auto 1fr auto auto;
  font-family: var(--th-font, Georgia, serif); transition: background-color .35s ease, color .35s ease; }
.slide::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; background: var(--th-accent, #C9A45C); border-radius: 0 3px 3px 0; }
.s-kicker { font: 700 9.5px/1.2 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--th-accent, #C9A45C); min-height: 1.2em; }
.s-topic { align-self: center; font-weight: var(--th-weight, 400); font-size: clamp(19px, 6vw, 26px); line-height: 1.12;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-topic.placeholder { color: var(--th-muted, #B9C2D3); }
.s-meta { font: 11px/1.35 Arial, sans-serif; }
.s-meta div:empty { display: none; }
.s-meta div + div { color: var(--th-muted, #B9C2D3); }
.s-meta .placeholder { color: var(--th-muted, #B9C2D3); font-style: italic; }
.s-foot { font: 10.5px Arial, sans-serif; color: var(--th-muted, #B9C2D3); margin-top: 4px; }

.field { display: block; width: 100%; background: var(--paper); color: var(--ink); border: var(--bw) solid var(--edge); border-radius: 14px;
  padding: 12px 14px; font-size: 16px; min-height: 50px; outline: none; resize: none; }
.field:focus { box-shadow: var(--sh); }
.field.topic { font: 600 18px/1.3 var(--font-body); }
.field::placeholder { color: var(--ink2); opacity: .9; }
.field.invalid { border-color: var(--danger); box-shadow: 3px 3px 0 var(--danger); }
.chips + .field { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: var(--bw) solid var(--edge); background: var(--paper); color: var(--ink); padding: 9px 14px; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.chips button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-ink); box-shadow: 3px 3px 0 var(--c-pink); }
.grades { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grades button { aspect-ratio: 1.15; border: var(--bw) solid var(--edge); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 0; font: 800 17px/1 var(--font-head); }
.grades button[aria-pressed="true"] { background: var(--c-yellow); color: var(--on); box-shadow: var(--sh); transform: translate(-2px, -2px); }
.grade-box { padding: 12px; background: var(--paper); border: var(--bw) solid var(--edge); border-radius: 14px; }
.grade-head { font-weight: 700; margin-bottom: 10px; }
.grade-head small { font-weight: 500; font-size: 13px; color: var(--ink2); margin-left: 6px; }
.grade-letter { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--ink2); }
.grade-letter .field { width: 60px; min-height: 44px; text-align: center; padding: 8px; font-weight: 700; }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; background: var(--paper); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .box { width: 30px; height: 30px; flex: none; border: var(--bw) solid var(--edge); border-radius: 9px; background: var(--paper); display: grid; place-items: center; }
.toggle input:checked + .box { background: var(--c-mint); }
.toggle input:checked + .box::after { content: "✓"; color: var(--on); font-weight: 800; }
.toggle input:focus-visible + .box { outline: 3px solid var(--c-pink); outline-offset: 2px; }
.toggle b { display: block; font: 800 14px/1.2 var(--font-head); }
.toggle b + span { font-size: 13px; color: var(--ink2); }
.seg { display: flex; padding: 4px; gap: 4px; background: var(--paper); border-radius: 16px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--ink); min-height: 44px; border-radius: 11px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-ink); }
.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.engines button { position: relative; overflow: hidden; text-align: left; padding: 14px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); color: var(--ink); min-height: 92px; }
.engines button b { font: 800 14.5px/1.1 var(--font-head); }
.engines button span { font-size: 13px; color: var(--ink2); line-height: 1.25; }
.engines button[aria-pressed="true"] { background: var(--c-mint); color: var(--on); }
.engines button[aria-pressed="true"] span { color: var(--on); opacity: .8; }
.engines button.soonv { background-image: repeating-linear-gradient(135deg, var(--bg-dots) 0 7px, transparent 7px 15px); }
.engines .chip-soon { margin-bottom: 2px; }
.stepper { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--paper); border-radius: var(--r); }
.stepper button { width: 48px; height: 48px; border-radius: 14px; background: var(--c-yellow); color: var(--on); font: 800 22px/1 var(--font-head); padding: 0; flex: none; }
.stepper button:disabled { opacity: .4; transform: none; box-shadow: var(--sh); }
.stepper output { font: 800 28px/1 var(--font-head); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.deck { display: grid; grid-template-columns: repeat(8, 11px); gap: 4px 3px; margin-left: auto; }
.deck i { width: 11px; height: 8px; border-radius: 2px; border: 1.5px solid var(--ink); opacity: .3; transition: background .2s, opacity .2s; }
.deck i.on { background: var(--ink); opacity: 1; }
.deck i.t { background: var(--c-pink); border-color: var(--c-pink); opacity: 1; }
.sl-range { margin: 8px 2px 0; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.themes button { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; text-align: center; color: var(--ink); }
.themes .mini { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; border: var(--bw) solid var(--edge); margin-bottom: 6px; font-size: 18px; transition: transform .12s, box-shadow .12s; position: relative; overflow: hidden; }
.themes .mini::after { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 4px; background: var(--a); }
.themes .mini.auto { background: conic-gradient(#1B2A44 0 33%, #2E6B4F 0 66%, #0E1726 0); color: #fff; font: 800 12px var(--font-head); }
.themes .mini.auto::after { display: none; }
.themes button[aria-pressed="true"] .mini { box-shadow: var(--sh); transform: translate(-2px, -2px); outline: 3px solid var(--c-pink); outline-offset: 3px; }
.stack { display: grid; gap: 10px; }
.author-row { display: flex; gap: 10px; }
.author-row .field { flex: 1; min-width: 0; }
.gswitch { position: relative; display: flex; flex: none; padding: 4px; background: var(--paper); border-radius: 16px; }
.gswitch button { position: relative; z-index: 1; flex: 1; min-width: 56px; min-height: 44px; border: 0; background: none; color: var(--ink);
  border-radius: 11px; font-weight: 600; transition: color .25s; }
.gswitch button[aria-pressed="true"] { color: var(--chip-on-ink); }
.gswitch .knob { position: absolute; z-index: 0; top: calc(50% - 5px); left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 6px;
  background: var(--chip-on-bg); opacity: .45; transition: left .3s cubic-bezier(.3, 1.3, .5, 1), top .3s, width .3s cubic-bezier(.3, 1.3, .5, 1), height .3s, opacity .2s; }
.gswitch[data-v="m"] .knob, .gswitch[data-v="f"] .knob { top: 4px; width: calc(50% - 4px); height: calc(100% - 8px); border-radius: 11px; opacity: 1; }
.gswitch[data-v="m"] .knob { left: 4px; }
.gswitch[data-v="f"] .knob { left: 50%; }
.optional-note { margin: -4px 2px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.title-line { margin: 12px 2px 0; padding: 10px 12px; border-radius: 12px; border: 2px dashed var(--bg-dots); font-size: 13.5px; line-height: 1.35; }
.form-lead { margin-top: 0; }
.speech { display: grid; gap: 12px; }
.speech button { position: relative; text-align: left; padding: 14px; background: var(--paper); color: var(--ink); display: grid; gap: 3px; min-height: 74px; }
.speech b { font: 800 14.5px/1.15 var(--font-head); padding-right: 100px; min-height: 30px; }
.speech span { font-size: 13px; color: var(--ink2); line-height: 1.3; }
.speech button[aria-pressed="true"] { background: var(--c-mint); color: var(--on); }
.speech button[aria-pressed="true"] span { color: var(--on); opacity: .8; }
.sp-tag { position: absolute; right: 12px; top: 11px; transform: rotate(5deg); font-style: normal; color: var(--on);
  font: 800 11px/1 var(--font-head); padding: 7px 8px; border-radius: 9px; border: 2px solid var(--edge); }
.free-tag { background: var(--c-yellow); font-size: 9.5px; }
.plus-tag { background: var(--c-coral); font-size: 15px; }
.price-box .lines { font-size: 12.5px; color: var(--ink2); display: block; margin-top: 3px; }
.price-box { margin-top: 28px; padding: 14px 16px; background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-box b { font: 800 18px/1.1 var(--font-head); display: block; }
.price-box span { font-size: 13.5px; color: var(--ink2); }
.price-box s { color: var(--ink2); font-weight: 600; margin-right: 4px; }
.price-box em { font-style: normal; display: inline-block; margin-top: 4px; background: var(--c-pink); color: var(--on); font-weight: 700; font-size: 12.5px; padding: 2px 7px; border-radius: 6px; }
.price-box .bal { text-align: right; }
.spacer { height: 16px; }

/* ---------------------------------------------------------------- главная кнопка (не в Telegram) */
.cta { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 7; max-width: 488px; margin: 0 auto;
  min-height: 58px; border-radius: var(--r); background: var(--cta-bg); color: var(--cta-ink); font: 700 16.5px/1.15 var(--font-body);
  border: var(--bw) solid var(--edge); box-shadow: 4px 4px 0 var(--cta-shadow); padding: 0 16px; }
.cta:active { transform: translate(var(--press), var(--press)); box-shadow: 1px 1px 0 var(--cta-shadow); }
.cta:disabled { opacity: .6; }

/* ---------------------------------------------------------------- заказ */
.job { padding-top: 6px; }
.job-wait { position: relative; display: flex; align-items: flex-end; gap: 6px; margin: 4px 0 10px; }
.job-wait .mascot { width: 128px; flex: none; }
.job-wait .bubble { margin-bottom: 60px; transform: rotate(-3deg); }
.job-title { font: 800 21px/1.2 var(--font-head); letter-spacing: -.4px; margin-top: 8px; }
.job-sub { margin: 6px 0 0; color: var(--ink2); font-size: 14px; }
.stages { list-style: none; margin: 18px 0 0; padding: 8px 14px; counter-reset: st; background: var(--paper); }
.stages:empty { display: none; }
.stages li { counter-increment: st; position: relative; padding: 11px 0 11px 40px; color: var(--ink2); font-weight: 500; }
.stages li + li { border-top: 2px dashed var(--bg-dots); }
.stages li::before { content: counter(st); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 800 12px var(--font-head); border: 2px solid var(--edge); background: var(--paper); color: var(--ink); }
.stages li.done { color: var(--ink); }
.stages li.done::before { content: "✓"; background: var(--c-mint); color: var(--on); }
.stages li.now { color: var(--ink); font-weight: 700; }
.stages li.now::before { background: var(--c-yellow); color: var(--on); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.fail { margin-top: 18px; padding: 14px; background: var(--c-coral); color: var(--on); font-weight: 600; display: flex; align-items: center; gap: 12px; }
.fail-mascot { width: 76px; flex: none; }
.done-top { position: relative; text-align: center; padding: 10px 0 4px; }
.done-mascot { width: 128px; margin: 0 auto -18px; z-index: 0; }
.done-mascot + .done-badge { position: relative; z-index: 1; }
.done-badge { display: inline-block; font: 800 44px/1 var(--font-head); background: var(--c-yellow); color: var(--on); padding: 8px 18px 10px; border-radius: 18px;
  border: var(--bw) solid var(--edge); box-shadow: var(--sh-lg); transform: rotate(-3deg); animation: drop .6s cubic-bezier(.3, 1.6, .5, 1) both; letter-spacing: -1px; }
@keyframes drop { from { transform: translateY(-40px) rotate(-12deg); opacity: 0; } }
.job-title, .job-sub, .checks { position: relative; z-index: 1; }
.confetti { z-index: 0; position: absolute; left: -16px; right: -16px; top: -24px; height: 280px; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 11px; height: 11px; border: 2px solid var(--edge); animation: rain linear infinite; }
@keyframes rain {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate(var(--sway), 150px) rotate(calc(var(--spin) / 2)); }
  85% { opacity: 1; }
  100% { transform: translate(0, 300px) rotate(var(--spin)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .confetti i { animation: none; display: none; } }
.job.is-done .job-title, .job.is-done .job-sub { text-align: center; }
.checks { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.checks span { font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 2px solid var(--edge); background: var(--paper); }
.carousel { display: flex; gap: 12px; overflow-x: auto; margin: 18px -16px 0; padding: 4px 16px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel:empty { display: none; }
.carousel-wrap:empty { display: none; }
.carousel-box { position: relative; }
.carousel figure { cursor: zoom-in; }
.carousel.dragging { scroll-snap-type: none; cursor: grabbing; }
.carousel.dragging figure { cursor: grabbing; }
.car-btn { position: absolute; top: calc(50% - 8px); transform: translateY(-50%); width: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink); font: 800 24px/1 var(--font-head); display: grid; place-items: center; z-index: 2; }
.car-btn.prev { left: -6px; }
.car-btn.next { right: -6px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 12, .94); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 16px; animation: pop .18s ease-out; }
.viewer img { max-width: 100%; max-height: 78vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.vw-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: none; color: #fff; font-size: 18px; }
.vw-nav { display: flex; align-items: center; gap: 18px; color: #fff; font: 800 15px var(--font-head); }
.vw-nav button { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: none; color: #fff; font: 800 26px/1 var(--font-head); }
.carousel figure { margin: 0; flex: none; width: 82%; scroll-snap-align: center; position: relative; }
.carousel img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; border: var(--bw) solid var(--edge); box-shadow: var(--sh); background: var(--paper); }
.carousel figcaption { position: absolute; right: 10px; bottom: 10px; font: 800 11px var(--font-head); padding: 3px 7px; border-radius: 7px; background: var(--paper); color: var(--ink); border: 2px solid var(--edge); }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.dl button { text-align: left; padding: 14px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; color: var(--on); position: relative; }
.dl .dl-chat { grid-column: span 2; min-height: 54px; background: var(--paper); color: var(--ink); text-align: center; display: block; font-weight: 700; font-size: 15px; }
.dl b { font: 800 21px/1 var(--font-head); }
.dl span { font-size: 13px; font-weight: 600; }
.dl .down { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--on); color: #fff; display: grid; place-items: center; font-size: 17px; font-style: normal; }
.job > .hint { margin-top: 14px; }
.review-badge { display: inline-block; font: 800 30px/1 var(--font-head); background: var(--c-pink); color: var(--on); padding: 8px 16px 10px; border-radius: 16px;
  border: var(--bw) solid var(--edge); box-shadow: var(--sh-lg); transform: rotate(-2deg); letter-spacing: -.5px; }
.review { margin-top: 6px; padding: 14px; background: var(--paper); }
.review p { margin: 0; font-size: 14.5px; line-height: 1.4; }
.review .review-timer { margin-top: 8px; font-size: 13.5px; color: var(--ink2); }
.review .review-err { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--danger); }
.review-ask { width: 100%; margin-top: 12px; background: var(--c-blue); color: var(--on); }
.review-form { margin-top: 12px; }
.review-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.review-row .hint { margin: 0; }
.review-cancel { background: none; border: 0; padding: 8px 2px; font-weight: 700; color: var(--ink2); text-decoration: underline; cursor: pointer; }
.changed { margin-top: 14px; padding: 12px 14px; background: var(--c-mint); color: var(--on); font-size: 14px; line-height: 1.4; }
.changed b { display: block; font: 800 14px/1.2 var(--font-head); margin-bottom: 4px; }
.active-job.review-job { background: var(--c-pink); }
.active-job .eye { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--on); flex: none; display: grid; place-items: center; font: 800 14px/1 var(--font-head); }

/* ---------------------------------------------------------------- мои работы */
.jobs { display: grid; gap: 12px; margin-top: 4px; }

/* ---------------------------------------------------------------- баланс */
.wallet { position: relative; padding: 18px; background: var(--c-yellow); color: var(--on); border-radius: var(--r-lg); box-shadow: var(--sh-lg); margin-top: 6px; }
.wallet small { font-weight: 600; font-size: 14px; }
.wallet b { display: block; font: 800 44px/1 var(--font-head); letter-spacing: -1.5px; margin: 6px 0 10px; }
.wallet b span { font-size: 18px; letter-spacing: -.3px; margin-left: 8px; }
.wallet p { margin: 0; font-size: 14px; font-weight: 500; max-width: 80%; }
.wallet .mascot { position: absolute; right: 8px; top: -14px; width: 92px; transform: rotate(5deg); }
.pay-method { margin-bottom: 14px; }
.packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.packs button { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; color: var(--on); text-align: left; min-height: 84px; }
.packs .p-title { font: 800 18px/1.1 var(--font-head); letter-spacing: -.4px; }
.packs .p-per { font-size: 13px; font-weight: 600; margin-top: 4px; opacity: .85; }
.packs .p-sale { display: inline-block; margin-top: 6px; background: var(--paper); color: var(--ink); border: 2px solid var(--on); border-radius: 7px; padding: 2px 7px; font-size: 12px; font-weight: 700; }
.packs .p-price { background: var(--on); color: #fff; font: 800 15px/1 var(--font-head); padding: 10px 12px; border-radius: 999px; white-space: nowrap; flex: none; }
.packs .p-price s { opacity: .55; font-weight: 600; margin-right: 4px; }
.packs .best-tag { position: absolute; top: -12px; right: 18px; background: var(--paper); color: var(--ink); font: 800 10px/1 var(--font-head); letter-spacing: .8px; padding: 5px 8px; border-radius: 7px; border: 2px solid var(--edge); transform: rotate(4deg); }
.ledger { list-style: none; margin: 0; padding: 4px 14px; background: var(--paper); }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; font-size: 15px; font-weight: 600; }
.ledger li + li { border-top: 2px dashed var(--bg-dots); }
.ledger .when { font-size: 12.5px; color: var(--ink2); font-weight: 500; margin-top: 2px; }
.ledger b { font: 800 15px var(--font-head); white-space: nowrap; }
.ledger .plus { color: var(--ok); }
.ledger .empty-row { color: var(--ink2); justify-content: center; font-weight: 500; }

/* ---------------------------------------------------------------- ещё */
.channel { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; background: var(--c-blue); color: var(--on); border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.channel svg { width: 40px; height: 40px; flex: none; }
.channel > span:not(.arrow) { flex: 1; min-width: 0; }
.channel b { display: block; font: 800 16px/1.15 var(--font-head); letter-spacing: -.3px; }
.channel b + span { font-size: 13.5px; font-weight: 500; }
.channel .arrow { width: 44px; height: 44px; font-size: 20px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.socials button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; background: var(--paper); color: var(--ink); font-weight: 700; }
.socials svg { width: 22px; height: 22px; }
.faq { background: var(--paper); padding: 2px 14px; }
.faq details + details { border-top: 2px dashed var(--bg-dots); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; font-weight: 700; font-size: 15px; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--edge); font: 800 15px/1 var(--font-head); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--c-yellow); color: var(--on); }
.faq p { margin: 0 0 14px; font-size: 14.5px; color: var(--ink2); line-height: 1.45; }
.setting-head { font-weight: 700; margin: 0 2px 10px; }
.setting .seg button { font-size: 14px; }
.support { width: 100%; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; }
.support svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- окно «скоро» */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-end; opacity: 0; transition: opacity .2s; }
.sheet.open { opacity: 1; }
.sheet-card { position: relative; width: 100%; max-width: 520px; margin: 0 auto calc(10px + env(safe-area-inset-bottom)); padding: 22px 18px 18px;
  background: var(--c-lilac); color: var(--on); border-radius: 26px; border: var(--bw) solid var(--edge); box-shadow: var(--sh-lg);
  transform: translateY(40px) rotate(2deg); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); margin-left: 10px; margin-right: 10px; }
.sheet.open .sheet-card { transform: none; }
.sheet h3 { font: 800 26px/1.05 var(--font-head); margin: 8px 0 10px; letter-spacing: -.6px; padding-right: 96px; }
.sheet-mascot { position: absolute; right: 56px; top: -54px; width: 96px; transform: rotate(6deg); }
.sheet p { margin: 0 0 18px; font-weight: 500; }
.sheet-notify { width: 100%; min-height: 54px; border-radius: 16px; background: var(--on); color: var(--c-yellow); font: 800 14px/1.1 var(--font-head); border: 0; padding: 0 12px; }
.sheet-notify:disabled { background: var(--c-mint); color: var(--on); border: var(--bw) solid var(--on); }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--on); background: #fff; color: var(--on); font-size: 18px; }

/* ---------------------------------------------------------------- всплывашка */
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 30; transform: translate(-50%, 20px); opacity: 0; max-width: calc(100% - 32px);
  background: var(--cta-bg); color: var(--cta-ink); padding: 11px 16px; border-radius: 14px; border: var(--bw) solid var(--edge);
  font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- этап Г: стили с образцами, план, банк, класс */
.themes { grid-template-columns: 1fr 1fr; gap: 12px; }
.themes .mini { aspect-ratio: 16/9; font-size: 13px; }
.themes .mini::after { display: none; }
.themes .mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.themes .mini.auto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center; }
.themes .mini.auto small { font: 600 11px/1.2 var(--font-body); opacity: .9; }

.plain-link { display: block; margin: 14px auto 0; background: none; border: 0; padding: 10px 4px; font-weight: 700; font-size: 14.5px; color: var(--ink2); text-decoration: underline; }
.plain-link.danger { color: var(--danger); }
.plan-hint { margin-top: 14px; }
.plan-wait { justify-content: center; margin-top: 30px; }
.plan-wait + .hint { text-align: center; }
.plan-topic { margin: 6px 0 0; font-weight: 600; color: var(--ink2); font-size: 14.5px; }
.plan, .plan-first { list-style: none; margin: 0; padding: 4px 12px; background: var(--paper); }
.plan-first { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 14px 0 10px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.plan li + li { border-top: 2px dashed var(--bg-dots); }
.plan-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font-head); background: var(--c-yellow); color: var(--on); border: 2px solid var(--edge); margin-top: 4px; }
.plan-body { flex: 1; min-width: 0; }
.plan-title { display: block; width: 100%; border: 0; border-bottom: 2px solid transparent; background: none; padding: 4px 0; font: 700 15.5px/1.3 var(--font-body);
  color: var(--ink); outline: none; resize: none; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.plan-title:focus { border-bottom-color: var(--c-pink); }
.plan-body small { display: block; font-size: 13px; color: var(--ink2); line-height: 1.3; }
.plan-x { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 2px solid var(--edge); background: var(--paper); color: var(--ink); font-size: 14px; padding: 0; }
.plan-x:disabled { opacity: .3; }
.plan-add { display: flex; gap: 10px; margin-top: 12px; }
.plan-add .field { flex: 1; min-width: 0; }
.plan-add button { width: 50px; flex: none; background: var(--c-yellow); color: var(--on); font: 800 22px/1 var(--font-head); padding: 0; }
.plan-q { padding: 12px; background: var(--paper); margin-bottom: 10px; }
.plan-q p { margin: 0 0 10px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.plan-q .seg { box-shadow: none; }
.q-hint { margin: -6px 2px 12px; }

.bank-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; background: var(--c-blue); color: var(--on); text-decoration: none; border-radius: var(--r-lg); }
.bank-strip b { display: block; font: 800 17px/1.1 var(--font-head); letter-spacing: -.3px; }
.bank-strip span span { font-size: 13.5px; font-weight: 600; }
.bank-strip .arrow { width: 44px; height: 44px; font-size: 20px; }
.bank-intro { display: grid; gap: 4px; padding: 14px; background: var(--c-blue); color: var(--on); margin-bottom: 14px; }
.bank-intro > b { font: 800 16px/1.15 var(--font-head); }
.bank-intro > span { font-size: 14px; font-weight: 500; }
.bank-prices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bank-prices span { background: var(--paper); color: var(--ink); border: 2px solid var(--on); border-radius: 8px; padding: 3px 8px; font-size: 13px; }
.bank-list { display: grid; gap: 12px; margin-top: 14px; }
.bank-mine-box { display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 14px; background: var(--paper); }
.bank-mine-box summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
.bank-mine-box summary::-webkit-details-marker { display: none; }
.bank-mine-box summary b { font: 800 15px/1.2 var(--font-head); }
.bank-mine-box summary b::after { content: " ▾"; }
.bank-mine-box[open] summary b::after { content: " ▴"; }
.bank-mine-box summary span { font-size: 13px; opacity: .75; }
.bank-card .hint { margin: 2px 0 0; font-size: 12.5px; }
.bank-offer { margin-top: 14px; padding: 14px; background: var(--c-lilac); color: var(--on); display: grid; gap: 6px; }
.bank-offer > b { font: 800 15px/1.2 var(--font-head); }
.bank-offer > span { font-size: 14px; line-height: 1.35; }
.bank-offer small { font-size: 12.5px; opacity: .8; }
.bank-reward { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.bank-reward button { min-height: 58px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13.5px; padding: 8px; }
.bank-reward button b { display: block; font: 800 20px/1 var(--font-head); color: var(--ink); }

.more-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.more-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 96px; color: var(--on); text-decoration: none; justify-content: flex-end; }
.more-card b { font: 800 15px/1.1 var(--font-head); }
.more-card span { font-size: 13px; font-weight: 500; line-height: 1.25; }
.class-why, .class-card { display: grid; gap: 4px; padding: 14px; background: var(--c-mint); color: var(--on); }
.class-why b, .class-card b { font: 800 17px/1.15 var(--font-head); }
.class-why span, .class-card span { font-size: 14px; font-weight: 500; line-height: 1.35; }
.class-card small { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.empty .class-card { text-align: left; margin-top: 10px; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.ledger .st-badge { margin: 0 0 0 8px; }
.invite-card b span { font-size: 15px; }
.tabs a { font-size: 12.5px; padding: 13px 4px; }

/* стили оформления: «?» с описанием */
.theme-item { position: relative; }
.theme-item > button { width: 100%; }
.th-q { position: absolute; top: 6px; right: 6px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); border: 2px solid var(--edge); font: 800 13px/1 var(--font-head); cursor: help; }
.th-tip { display: none; position: absolute; top: 34px; left: 4px; right: 4px; z-index: 3; padding: 8px 10px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 500; line-height: 1.3; box-shadow: var(--sh); }
.theme-item.tip .th-tip { display: block; }
@media (hover: hover) { .th-q:hover + .th-tip { display: block; } }

/* план: слайды из ответов и свои, выбор «больше слайдов или заменить» */
.plan li.from-q .plan-n, .plan li.added .plan-n { background: var(--c-mint); }
.plan-tag { color: var(--ink2); font-weight: 600; }
.plan-choice { display: grid; gap: 10px; padding: 14px; margin: 12px 0; background: var(--c-yellow); color: var(--on); }
.plan-choice > b { font: 800 15px/1.2 var(--font-head); }
.plan-choice > span { font-size: 14px; line-height: 1.35; }
.plan-swap { display: flex; gap: 8px; }
.plan-swap .field { flex: 1; min-width: 0; }
.plan-choice .plain-link { color: var(--on); }
.plan-count b { color: var(--ink); }
.plan-notes { display: grid; gap: 6px; padding: 12px 14px; margin-top: 10px; background: var(--paper); }
.plan-notes b { font-size: 14px; }
.plan-notes ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.35; }
.plan-q small { display: block; margin: -4px 0 8px; }

/* готовая работа: шаг 2 */
.bank-pick { display: flex; gap: 12px; align-items: center; padding: 10px; margin: 6px 0 18px; background: var(--paper); }
.bank-pick img { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 2px solid var(--edge); flex: none; }
.bank-pick b { display: block; font-size: 15px; line-height: 1.25; }

/* главная: помощь и класс */
.home-help { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.help-card { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--paper); color: var(--ink); text-decoration: none; }
.help-card b { display: block; font: 800 14px/1.15 var(--font-head); }
.help-ic svg { width: 22px; height: 22px; }
.home-help { margin-top: 0; }
.home-help + .class-home, .bank-strip + .hero, .class-home + .hero { margin-top: 16px; }
.help-card small { font-size: 12.5px; color: var(--ink2); }
.help-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c-yellow); color: var(--on);
  border: 2px solid var(--edge); font: 800 15px/1 var(--font-head); }
.class-home { display: grid; gap: 12px; margin-top: 16px; padding: 16px; background: var(--c-mint); color: var(--on); border-radius: var(--r-lg); }
.class-home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--on); text-decoration: none; }
.class-home-top small { display: block; font: 800 11px/1 var(--font-head); letter-spacing: .5px; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.class-home-top b { display: block; font: 800 19px/1.1 var(--font-head); letter-spacing: -.3px; margin-bottom: 4px; }
.class-home-top span span { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.class-home-top .arrow { flex: none; width: 44px; height: 44px; font-size: 20px; }
.class-home .btn { background: var(--paper); color: var(--ink); text-align: center; text-decoration: none; }

/* знакомство */
.welcome { padding-top: 4px; }
.wl-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.wl-top .plain-link { margin: 0; width: auto; }
.wl-dots { display: flex; gap: 6px; }
.wl-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--ink); opacity: .2; transition: width .25s, opacity .25s; }
.wl-dots i.on { width: 24px; opacity: 1; background: var(--c-pink); }
.wl-page { text-align: left; }
.wl-mascot { width: 150px; margin: 4px auto 6px; }
.wl-page .screen-title { text-align: center; margin-bottom: 12px; }
.wl-lead { font-size: 15.5px; line-height: 1.45; margin: 0 0 14px; }
.wl-points, .wl-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wl-points li { padding: 12px 14px; border-radius: var(--r); background: var(--paper); border: var(--bw) solid var(--edge); font-weight: 600; }
.wl-more li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--paper); border: var(--bw) solid var(--edge); }
.wl-more b { font: 800 15px/1.2 var(--font-head); }
.wl-more span { font-size: 14px; line-height: 1.35; color: var(--ink2); }
.wl-prices { list-style: none; margin: 0 0 14px; padding: 4px 14px; background: var(--paper); }
.wl-prices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; font-size: 14.5px; }
.wl-prices li + li { border-top: 2px dashed var(--bg-dots); }
.wl-prices b { font: 800 16px var(--font-head); white-space: nowrap; }
.wl-gift { padding: 12px 14px; background: var(--c-yellow); color: var(--on); font-weight: 700; text-align: center; }
.wl-back { margin-top: 14px; }
.how { list-style: none; margin: 0; padding: 4px 14px; background: var(--paper); }
.how li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.how li + li { border-top: 2px dashed var(--bg-dots); }
.how-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--on);
  border: 2px solid var(--edge); font: 800 15px/1 var(--font-head); }
.how b { display: block; font: 800 15.5px/1.2 var(--font-head); margin-bottom: 3px; }
.how span { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.how-link { margin-bottom: 16px; min-height: 0; }

/* плитка работы, которую уже можно заказать */
.soon.work { background-image: none; }
.work-star { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 6px;
  background: var(--c-pink); color: var(--on); border: 2px solid var(--on); border-radius: 999px; font: 800 10.5px/1 var(--font-head);
  letter-spacing: .3px; text-transform: uppercase; transform: rotate(6deg); }
.work-star i { font-style: normal; font-size: 13px; color: var(--c-yellow); -webkit-text-stroke: 1px var(--on); animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(1.3) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .work-star i { animation: none; } }
.work-price { align-self: flex-start; margin-top: 4px; background: var(--on); color: var(--c-yellow); font: 800 12px/1 var(--font-head); padding: 6px 9px; border-radius: 999px; }
.work-price s { opacity: .6; margin-right: 4px; }
.screen-head + .hero { margin-bottom: 20px; }
.soon:not(.wide) { padding-top: 64px; }
.soon b { overflow-wrap: anywhere; hyphens: auto; }
.hero p { max-width: none; font-size: 16px; font-weight: 600; }
.hero .strip { margin-bottom: 0; }

/* тестовый режим (service/testmode.py) */
.test-banner { display: none; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; border: 2px dashed var(--ink); background: var(--c-yellow);
  color: var(--on); font-size: 13px; font-weight: 700; text-align: center; }
body.test-mode .test-banner { display: block; }

/* продвинутый движок: ведущие и текст в цене */
.speakers-box { margin-top: 14px; }
.speakers { grid-template-columns: repeat(4, 1fr); }
.speech-included { display: grid; gap: 4px; padding: 14px; background: var(--c-mint); color: var(--on); margin: 0; }
.speech-included b { font: 800 15px/1.2 var(--font-head); }
.speech-included span { font-size: 13.5px; }
.speakers button { aspect-ratio: 2; }

/* ---------------------------------------------------------------- сайт: главная без входа, вход, документы */
.site-link { margin-top: 14px; background: var(--c-mint); }
.docs-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 22px 2px 4px; font-size: 13.5px; }
.docs-list a { color: var(--ink2); }
.logout { display: block; margin: 18px auto 0; }
.terms { display: grid; gap: 10px; margin: 14px 0 4px; }
.terms-check { margin-top: 0; }
.terms-check a { color: inherit; }
.landing-mode main { padding-bottom: 32px; }
.site-hero { position: relative; padding: 8px 0 10px; }
.site-hero h1 { font: 800 28px/1.08 var(--font-head); letter-spacing: -.8px; margin: 4px 104px 12px 0; min-height: 120px; }
.site-hero h1 em { font-style: normal; background: var(--c-pink); color: var(--on); padding: 0 8px; border-radius: 10px; display: inline-block; transform: rotate(-1.5deg); }
.site-hero .hero-mascot { position: absolute; right: -4px; top: 0; width: 110px; transform: rotate(4deg); }
.site-hero .wl-points { display: grid; gap: 6px; padding: 0; list-style: none; }
.site-hero .wl-points li { font-weight: 600; }
.hint a { color: inherit; }
.site-hero .btn { margin-top: 14px; }
.pack-static { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; color: var(--on); min-height: 76px; }
.pack-static .p-title { font: 800 18px/1.1 var(--font-head); letter-spacing: -.4px; }
.pack-static .p-per { font-size: 13px; font-weight: 600; margin-top: 4px; opacity: .85; }
.pack-static .p-price { background: var(--on); color: #fff; font: 800 15px/1 var(--font-head); padding: 10px 12px; border-radius: 999px; white-space: nowrap; flex: none; }
.pack-static .p-price s { opacity: .55; font-weight: 600; margin-right: 4px; }
.pack-static .best-tag { position: absolute; top: -12px; right: 18px; background: var(--paper); color: var(--ink); font: 800 10px/1 var(--font-head); letter-spacing: .8px; padding: 5px 8px; border-radius: 7px; border: 2px solid var(--edge); transform: rotate(4deg); }
.login-box { margin-top: 26px; padding: 16px; background: var(--paper); }
.login-box h2 { margin-top: 0; }
.tg-widget { margin: 14px 0 4px; min-height: 40px; }
.login-box .tg-widget:not([hidden]) + .login-wait { display: none; }
.site-footer { margin-top: 30px; padding-top: 12px; border-top: 2px dashed var(--bg-dots); font-size: 13px; color: var(--ink2); }
.site-footer p { margin: 4px 2px; }
.site-footer a { color: inherit; }
.packs button[disabled] { opacity: .55; cursor: default; }
@media (min-width: 760px) { .site-mode main { max-width: 720px; margin-left: auto; margin-right: auto; } }
