/* /generator в языке страницы /guide: фиолетовая шапка, белое тело, Unbounded в заголовке. */

.asm {
  --asm-ink: #272439;
  --asm-quiet: #514868;
  --asm-line: #e0dbff;
  --asm-purple: #671ff6;
  --asm-paper: #ffffff;
  --asm-soft: #f7f5ff;
  background: #fff;
  color: var(--asm-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  caret-color: var(--asm-ink);
  scrollbar-color: #671ff6 #f4f1ff;
}
.asm ::selection { background: #d9ccff; color: var(--asm-ink); }
.asm button,
.asm input,
.asm textarea { font: inherit; color: inherit; }
.asm .btn-primary { color: #fff; background: var(--asm-purple); }
.asm .btn-primary:hover { color: #fff; background: #5e20d8; }
.asm button { cursor: pointer; }
.asm :focus-visible { outline: 2px solid var(--asm-purple); outline-offset: 3px; }
.asm a { color: var(--asm-purple); text-underline-offset: 3px; }
.asm h1,
.asm h2 { font-family: "Unbounded", "Manrope", sans-serif; letter-spacing: -0.03em; }

.asm-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.asm-hero {
  background: var(--asm-purple);
  color: #fff;
  border-radius: 30px;
  margin: 16px 16px 0;
  padding: 48px 0 28px;
  min-height: 0;
}
/* Заголовок для скринридера: цены и так говорят сами */
.asm-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.asm-crumbs { margin: 0 0 18px; font-weight: 700; }
.asm-crumbs a { color: #fff; }
.asm-hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  text-wrap: balance;
}
/* Заголовок и карандаш по центру шапки. Окно декора выше рисунка, чтобы уши не срезало. */
.asm-hero { position: relative; overflow: hidden; }
.asm-hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 0;
}
.asm-hero-text { max-width: 540px; }
.asm-decor {
  position: relative;
  flex: 0 0 auto;
  width: 500px;
  height: 240px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.asm-decor.is-ready { opacity: 1; }
/* viewBox 1600×1200. Окно с y≈408: уши целиком, ластик не срезан. */
#asm-lottie {
  position: absolute;
  width: 1176px;
  height: 882px;
  left: -345px;
  top: -300px;
}
.asm-lead {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.45;
}
.asm-hero-btn {
  display: inline-flex;
  margin-top: 22px;
  background: #fff;
  color: var(--asm-purple);
  border-radius: 9px;
  text-decoration: none;
  font-weight: 800;
}
.asm-hero-btn:hover { background: #f3eeff; color: #5e20d8; }
.asm-hero-note { margin: 14px 0 0; font-size: 14px; color: #e6dcff; }

.asm-body { padding: 40px 0 72px; }
.asm-body > section + section { margin-top: 56px; }
.asm h2 { margin: 0 0 18px; font-size: 28px; line-height: 1.2; font-weight: 800; }

/* Форма ~640px слева, образец файла и преимущества справа */
.asm-split {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.asm-split + section { margin-top: 56px; }
.asm-side { position: sticky; top: 24px; }
.asm-side h2 { font-size: 22px; margin-bottom: 6px; }
.asm-side-note { margin: 0 0 16px; color: var(--asm-quiet); }

/* Образец файла: три листа внахлёст, текст влево, без justify */
.asm-sheet { margin: 0; display: grid; gap: 10px; }
.asm-sheet-page {
  position: relative;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--asm-line);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(39, 36, 57, 0.08);
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  line-height: 1.5;
  color: #1f1b2e;
}
.asm-sheet-h { margin: 0 0 8px; font-weight: 700; text-align: center; font-size: 14px; }
.asm-sheet-p { margin: 0 0 6px; text-indent: 1.25em; text-align: left; }
.asm-sheet-num { position: absolute; right: 14px; bottom: 6px; font-size: 11px; color: var(--asm-quiet); }
.asm-toc,
.asm-refs { margin: 0; padding: 0; list-style: none; }
.asm-toc li { display: flex; align-items: baseline; gap: 4px; }
.asm-toc i { flex: 1; border-bottom: 1px dotted #9a93ad; transform: translateY(-3px); }
.asm-toc b { font-weight: 400; font-variant-numeric: tabular-nums; }
.asm-toc-sub { padding-left: 1.25em; }
.asm-refs { counter-reset: ref; }
.asm-refs li { counter-increment: ref; padding-left: 1.6em; text-indent: -1.6em; margin-bottom: 4px; overflow-wrap: anywhere; }
.asm-refs li::before { content: counter(ref) ". "; }

/* Преимущества: список с цветными иконками предметов, не карточки */
.asm .asm-why-title { margin-top: 32px; }
.asm-why { margin: 0; padding: 0; list-style: none; }
.asm-why li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--asm-line);
}
.asm-why svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ic) 12%, #fff);
  fill: none;
  stroke: var(--ic);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.asm-why strong { display: block; margin-bottom: 2px; font-size: 16px; }
.asm-why span,
.asm-fine,
.asm-hint,
.asm-quiet,
.asm-lead-ink { color: var(--asm-quiet); }
.asm-lead-ink { margin: 0 0 8px; }

/* Главный ход: прайс в фиолетовой шапке на месте поиска /guide.
   Цена набрана Unbounded крупно, клик выбирает тип и ведёт к форме. */
.asm-prices-block { position: relative; z-index: 1; margin-top: 48px; }
.asm-rail {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: safe center;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 28px 20px;
  scroll-padding-inline: 28px;
  scroll-snap-type: x mandatory;
}
/* .asm button { color: inherit } иначе имя типа белое на белой плитке */
.asm .asm-price {
  scroll-snap-align: start;
  flex: 0 0 196px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 16px 16px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--asm-ink);
  text-align: left;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms linear;
}
.asm-price span {
  font-weight: 800;
  line-height: 1.2;
  min-height: 2.4em;
}
.asm-price b {
  margin-top: 6px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--asm-purple);
  white-space: nowrap;
}
.asm-price small { color: var(--asm-quiet); font-size: 14px; }
.asm-price em { margin-top: 8px; font-style: normal; font-weight: 800; color: var(--asm-purple); }
.asm-price:hover { transform: translateY(-3px); }
.asm .asm-price.is-on { background: #272439; color: #fff; }
.asm .asm-price.is-on b,
.asm .asm-price.is-on em { color: #fff; }
.asm .asm-price.is-on small { color: #d6cff0; }
.asm-price:focus-visible { outline-color: #fff; }

.asm-form {
  padding: 28px;
  border: 1px solid var(--asm-line);
  border-radius: 20px;
  background: #fff;
}
/* Шкала из двух шагов генератора над формой */
.asm-form-title { margin: 0 0 12px; font-weight: 800; color: var(--asm-quiet); }
.asm-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 24px;
  padding: 0 0 20px;
  list-style: none;
  border-bottom: 1px solid var(--asm-line);
}
.asm-steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--asm-quiet); }
.asm-steps b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--asm-line);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 14px;
  transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms linear;
}
.asm-steps .is-now { color: var(--asm-ink); }
.asm-steps .is-now b { background: var(--asm-purple); border-color: transparent; color: #fff; }
.asm-steps .is-done b { background: var(--asm-soft); color: var(--asm-purple); }

/* Плашки по ширине своего текста, как предметы в каталоге: ничего не обрезается */
.asm-chips,
.asm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.asm-form .asm-lbl + .asm-chips,
.asm-form .asm-lbl + .asm-grid,
.asm-form .asm-lbl + .asm-stepper { margin-top: 10px; }
.asm-chips + .asm-stack { margin-top: 22px; }
.asm-chip,
.asm-sci {
  min-height: 48px;
  border: 1px solid var(--asm-line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  font-weight: 700;
  white-space: nowrap;
  transform-origin: left center;
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),
    background 160ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    color 160ms linear;
}
.asm-chip { display: flex; align-items: center; justify-content: center; padding: 0 16px; text-align: center; }
.asm-chip:hover { border-color: #b9a8f5; }
/* Один жест выбора: плашка чуть крупнее и приподнята, остальные спокойнее */
.asm-chip[aria-pressed="true"] {
  background: var(--asm-purple);
  color: #fff;
  border-color: transparent;
}
.asm-chips:has([aria-pressed="true"]) .asm-chip:not([aria-pressed="true"]) { background: var(--asm-soft); border-color: transparent; }
.asm-sci { border: 0; background: transparent; }
.asm-sci[aria-pressed="true"] .asm-sci-title { box-shadow: inset 0 0 0 2px #272439; }
.asm-sci-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--c, #fff);
  color: #fff;
  font-weight: 800;
  box-sizing: border-box;
}
.asm-sci-other .asm-sci-title {
  background: #fff;
  color: var(--asm-ink);
  border-color: var(--asm-line);
}
.asm-sci-title img { width: 20px; height: 20px; flex: 0 0 20px; }
.asm-stack { display: flex; flex-direction: column; gap: 22px; }
.asm-lbl { display: flex; flex-direction: column; gap: 10px; margin: 0; font-weight: 700; }
.asm textarea,
.asm input[type="email"],
.asm input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--asm-line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font-weight: 500;
  box-sizing: border-box;
}
.asm textarea { resize: vertical; min-height: 96px; }
.asm input::placeholder,
.asm textarea::placeholder { color: #6d6584; }
.asm textarea:focus,
.asm input:focus {
  outline: none;
  border-color: var(--asm-purple);
  box-shadow: 0 0 0 3px rgba(103, 31, 246, 0.15);
}
.asm-stepper {
  display: inline-grid;
  grid-template-columns: 48px auto 48px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--asm-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}
.asm-stepper button {
  height: 48px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}
.asm-stepper button:first-child { border-right: 1px solid var(--asm-line); }
.asm-stepper button:nth-child(3) { border-left: 1px solid var(--asm-line); }
/* #6d6584 на белом ≈ 5.4:1: знак виден и в неактивной кнопке */
.asm-stepper button { color: var(--asm-ink); }
.asm-stepper button:disabled { color: #6d6584; cursor: not-allowed; }
.asm-stepper b { padding: 0 16px; text-align: center; color: var(--asm-ink); font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.asm-volume { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: max-content; max-width: 100%; }
.asm-eta { margin: 0; font-weight: 800; color: #186ce9; }
.asm-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--asm-line);
  font-weight: 700;
}
.asm-switch span { flex: 1; }
.asm-switch b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.asm-switch input { width: 18px; height: 18px; accent-color: var(--asm-purple); }
.asm-fine,
.asm-hint { margin: 8px 0 0; }
.asm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--asm-line);
  background: #fff;
}
.asm-bar strong { display: block; font-size: 28px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.asm-bar span { color: var(--asm-quiet); font-size: 14px; }
.asm .asm-go,
.asm .asm-go:disabled,
.asm .asm-go span,
.asm .asm-go:disabled span {
  color: #fff;
}
.asm .asm-go,
.asm .asm-go:disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  background: var(--asm-purple);
  opacity: 1;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  font-weight: 800;
}
.asm .asm-go.is-bad,
.asm .asm-go.is-bad:disabled { background: #9f1239; }
.asm .asm-go.is-shake { animation: asm-nudge 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.asm-spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: asm-spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes asm-nudge {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
@keyframes asm-spin { to { transform: rotate(360deg); } }
.asm-quiet-btn {
  border: 0;
  background: var(--asm-soft);
  color: var(--asm-ink);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
}
.asm-quiet-btn:disabled { color: #6d6584; background: transparent; cursor: not-allowed; }
.asm-error { margin: 12px 0 0; color: #9f1239; font-weight: 700; }
.asm-text {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--asm-purple);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.asm-text:disabled { color: var(--asm-quiet); text-decoration: none; }
.asm-plan-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 8px; }
#asm-plan .asm-stack { gap: 28px; }
#asm-plan .asm-stack > div { display: flex; flex-direction: column; gap: 10px; }
.asm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.asm-row button,
.asm-chapter > button.asm-text { justify-self: start; }
.asm-chapter {
  margin: 0;
  min-inline-size: 0;
  padding: 16px;
  border: 1px solid var(--asm-line);
  border-radius: 16px;
  background: var(--asm-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asm-chapter .asm-lbl input { font-size: 17px; font-weight: 800; background: #fff; }
#asm-plan .asm-bar { position: sticky; bottom: 0; z-index: 2; padding-bottom: 12px; }

.asm-leaves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.asm-leaf {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.asm-leaf-mark {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--asm-quiet);
}
.asm-leaf.is-on .asm-leaf-mark { color: var(--asm-purple); }
.asm-paper {
  position: relative;
  flex: 1 1 auto;
  min-height: 420px;
  padding: 28px 26px 36px;
  background: #fff;
  border: 1px solid var(--asm-line);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(39, 36, 57, 0.08);
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.45;
  color: #1f1b2e;
}
.asm-leaf.is-on .asm-paper { box-shadow: 0 0 0 2px var(--asm-purple), 0 10px 24px rgba(39, 36, 57, 0.08); }
.asm-leaf.is-wait { cursor: default; }
.asm-leaf.is-wait .asm-paper { min-height: 180px; color: var(--asm-quiet); font-family: "Manrope", "Segoe UI", sans-serif; }
.asm-paper-kind { margin: 0; text-align: center; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.asm-paper-topic { margin: 10px 0 16px; text-align: center; font-family: "Times New Roman", Times, serif; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.asm-paper-h { margin: 14px 0 6px; text-align: center; font-weight: 700; }
.asm-paper p { margin: 0 0 6px; }
.asm-paper-tasks,
.asm-paper-toc { margin: 0; padding-left: 1.2em; }
.asm-paper-toc ol { margin: 2px 0 8px; padding-left: 1.2em; }
.asm-paper-end { color: #514868; }
.asm-paper-num { position: absolute; right: 16px; bottom: 8px; font-size: 12px; }
.asm-samples-lead { max-width: 68ch; margin: 0 0 16px; color: var(--asm-quiet); }
.asm-work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.asm-work-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--asm-line);
  border-radius: 100px;
  background: #fff;
  color: var(--asm-ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.asm-work-pill[aria-pressed="true"] {
  background: var(--asm-purple);
  border-color: var(--asm-purple);
  color: #fff;
}
.asm-work-scroller { display: flex; align-items: center; gap: 20px; }
.asm-file-rail {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.asm-work-track { display: flex; width: max-content; will-change: transform; }
.asm-work-set { display: flex; gap: 16px; padding-right: 16px; }
.asm a.asm-work,
.asm a.asm-work:hover {
  flex: 0 0 276px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 18px 18px 16px;
  border: 1px solid var(--asm-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(39, 36, 57, 0.06);
  color: var(--asm-ink);
  text-decoration: none;
}
.asm-work-top,
.asm-work-grid,
.asm-work-grid > span { display: flex; }
.asm-work-top { justify-content: space-between; gap: 8px; color: var(--asm-quiet); font-size: 13px; font-weight: 700; }
.asm-work-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.75em;
  margin: 14px 0 16px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.asm-work-grid { gap: 12px; align-items: flex-start; }
.asm-work-grid > span { flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.asm-work-k { color: var(--asm-quiet); font-size: 13px; }
.asm-work b { font-size: 22px; line-height: 1.2; color: var(--asm-purple); font-variant-numeric: tabular-nums; }
.asm-work-subject { font-weight: 700; }
.asm a.asm-work .asm-work-go,
.asm a.asm-work .asm-work-go:hover {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  background: var(--asm-purple);
  color: #fff;
}
.asm a.asm-work .asm-work-go:active { transform: none; }
.asm-work-next {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--asm-purple);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(103, 31, 246, 0.28);
}
.asm-work-next svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.asm-read { width: min(720px, calc(100% - 32px)); margin: 28px auto 72px; }
.asm .asm-read h1 {
  margin: 8px 0 18px;
  font-family: "Times New Roman", Times, serif;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 700;
  text-align: center;
}
.asm-read-back { margin: 0 0 16px; font-weight: 800; }
.asm-read-paper {
  min-height: 0;
  padding: 40px 44px 48px;
  font-size: 16px;
}
.asm-read-paper .asm-file-marks { display: block; margin-top: 28px; text-align: center; font-size: 14px; color: #514868; }
.asm-examples ul { margin: 0; padding: 0; list-style: none; }
.asm-examples li { max-width: 68ch; padding: 16px 0; border-top: 1px solid var(--asm-line); }
.asm-examples li:last-child { border-bottom: 1px solid var(--asm-line); }
.asm-examples strong { display: block; font-size: 18px; }
.asm-examples span,
.asm-examples p { margin: 4px 0 0; color: var(--asm-quiet); }
.asm-examples a { display: inline-block; margin-top: 16px; font-weight: 800; }

.asm-faq-list { border-top: 1px solid var(--asm-line); }
.asm-faq { border-bottom: 1px solid var(--asm-line); }
.asm-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.asm-faq summary::-webkit-details-marker { display: none; }
.asm-faq summary::marker { content: ""; }
.asm-plus {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--asm-soft);
}
.asm-plus::before,
.asm-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--asm-purple);
  border-radius: 1px;
}
.asm-plus::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.asm-plus::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.asm-faq[open] .asm-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.asm-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.asm-faq[open] .asm-faq-a { grid-template-rows: 1fr; }
.asm-faq-a p { overflow: hidden; max-width: 68ch; margin: 0; padding-bottom: 18px; color: var(--asm-quiet); }

@media (prefers-reduced-motion: reduce) {
  .asm-chip,
  .asm-sci,
  .asm-price,
  .asm-plus::after,
  .asm-faq-a,
  .asm-spin,
  .asm-go.is-shake { transition: none; animation: none; }
  .asm-decor { transition: opacity 200ms linear; transform: none; }
  .asm-price:hover { transform: none; }
  /* Без сдвига: остаётся только смена цвета */
  .asm-chip[aria-pressed="true"],
  .asm-sci[aria-pressed="true"] { transform: none; }
  .asm-chip,
  .asm-sci { transition: background 160ms linear, color 160ms linear; }
}

@media (max-width: 1080px) {
  .asm-split { grid-template-columns: 1fr; gap: 40px; }
  .asm-form { max-width: 640px; }
  .asm-side { position: static; max-width: 640px; }
  .asm-leaves { grid-template-columns: 1fr; }
}
.asm-split.is-focus,
.asm-split.is-focus .asm-form { display: block; max-width: none; }

@media (max-width: 900px) {
  .asm-hero-center { width: min(640px, calc(100% - 32px)); min-height: 0; }
  .asm-decor { display: none; }
  .asm-hero { margin: 8px; border-radius: 20px; padding: 32px 0 24px; min-height: 0; }
  .asm-prices-block { margin-top: 36px; }
  .asm-price:hover { transform: none; }
  .asm-form { padding: 18px; }
  .asm-bar,
  .asm-plan-head { flex-direction: column; align-items: stretch; }
  .asm .asm-go { width: 100%; }
  .asm-file-tabs { flex-wrap: wrap; }
}

/* Keep the generator's intrinsic form width inside the single-column layout. */
.asm:not(.asm-landing) #asm-form,
.asm:not(.asm-landing) #asm-plan { scroll-margin-top: 88px; }
@media (max-width: 1080px) {
  .asm:not(.asm-landing) .asm-split { grid-template-columns: minmax(0, 1fr); }
  .asm:not(.asm-landing) .asm-form,
  .asm:not(.asm-landing) .asm-side {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 640px;
    margin-inline: auto;
  }
  .asm:not(.asm-landing) .asm-form > div,
  .asm:not(.asm-landing) .asm-stack > *,
  .asm:not(.asm-landing) .asm-lbl { min-width: 0; }
  .asm:not(.asm-landing) #asm-plan .asm-leaf { min-height: 44px; }
  .asm:not(.asm-landing) .asm-leaf:not(.is-on) .asm-paper { display: none; }
}

@media (max-width: 1080px) and (pointer: coarse) {
  .asm:not(.asm-landing) .asm-text,
  .asm:not(.asm-landing) .asm-quiet-btn { min-height: 44px; }
}

@media (max-width: 600px) {
  .asm:not(.asm-landing) .asm-hero { padding: 24px 0 16px; }
  .asm:not(.asm-landing) .asm-hero-text { min-width: 0; }
  .asm:not(.asm-landing) .asm-crumbs { margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
  .asm:not(.asm-landing) .asm-hero h1 { font-size: clamp(26px, 7.2vw, 30px); line-height: 1.15; }
  .asm:not(.asm-landing) .asm-lead { margin-top: 14px; font-size: 16px; }
  .asm:not(.asm-landing) .asm-prices-block { margin-top: 22px; }
  .asm:not(.asm-landing) .asm-rail {
    box-sizing: border-box;
    gap: 10px;
    padding: 6px 16px 12px;
    scroll-padding-inline: 16px;
  }
  .asm:not(.asm-landing) .asm-price {
    box-sizing: border-box;
    flex-basis: 164px;
    padding: 14px;
    border-radius: 16px;
  }
  .asm:not(.asm-landing) .asm-price b { margin-top: 4px; font-size: 26px; }
  .asm:not(.asm-landing) .asm-price em { margin-top: 4px; }
  .asm:not(.asm-landing) .asm-body { padding-top: 24px; padding-bottom: 48px; }
  .asm:not(.asm-landing) .asm-body > section + section,
  .asm:not(.asm-landing) .asm-split + section { margin-top: 40px; }
  .asm:not(.asm-landing) .asm-form { padding: 16px; }
  .asm:not(.asm-landing) .asm-form h2 { font-size: clamp(22px, 5.8vw, 25px); line-height: 1.25; overflow-wrap: anywhere; }
  .asm:not(.asm-landing) .asm-steps { gap: 12px; margin-bottom: 20px; padding-bottom: 16px; }
  .asm:not(.asm-landing) .asm-steps li { min-width: 0; max-width: 100%; }
  .asm:not(.asm-landing) .asm-steps b { flex: 0 0 32px; }
  .asm:not(.asm-landing) .asm-steps span { min-width: 0; overflow-wrap: anywhere; }
  .asm:not(.asm-landing) .asm-chips,
  .asm:not(.asm-landing) .asm-grid { gap: 8px; }
  .asm:not(.asm-landing) .asm-chip,
  .asm:not(.asm-landing) .asm-sci { max-width: 100%; white-space: normal; }
  .asm:not(.asm-landing) .asm-chip { padding: 10px 12px; line-height: 1.35; }
  .asm:not(.asm-landing) .asm-sci-title { padding: 10px 12px; gap: 8px; line-height: 1.35; text-align: left; }
  .asm:not(.asm-landing) textarea,
  .asm:not(.asm-landing) input[type="text"],
  .asm:not(.asm-landing) input[type="email"] { min-width: 0; font-size: 16px; }
  .asm:not(.asm-landing) .asm-volume { width: 100%; min-width: 0; flex-direction: column; align-items: stretch; gap: 10px; }
  .asm:not(.asm-landing) .asm-stepper {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .asm:not(.asm-landing) .asm-stepper b { min-width: 0; padding: 8px 12px; font-size: 16px; line-height: 1.35; white-space: normal; }
  .asm:not(.asm-landing) .asm-switch { align-items: flex-start; }
  .asm:not(.asm-landing) .asm-switch input { flex: 0 0 20px; width: 20px; height: 20px; margin-block: 3px; }
  .asm:not(.asm-landing) .asm-switch span { min-width: 0; }
  .asm:not(.asm-landing) .asm-bar { gap: 14px; }
  .asm:not(.asm-landing) .asm-bar > div { min-width: 0; overflow-wrap: anywhere; }
  .asm:not(.asm-landing) .asm-go { box-sizing: border-box; min-height: 52px; padding: 12px 16px; font-size: 16px; }
  .asm:not(.asm-landing) .asm-go > span:not(.asm-spin) { min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
  .asm:not(.asm-landing) .asm-plan-head { gap: 4px; min-width: 0; }
  .asm:not(.asm-landing) .asm-plan-head h2 { margin-bottom: 4px; }
  .asm:not(.asm-landing) .asm-text,
  .asm:not(.asm-landing) .asm-quiet-btn { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .asm:not(.asm-landing) .asm-text { text-align: left; }
  .asm:not(.asm-landing) .asm-row { grid-template-columns: minmax(0, 1fr); }
  .asm:not(.asm-landing) .asm-chapter { padding: 12px; }
  .asm:not(.asm-landing) .asm-leaf,
  .asm:not(.asm-landing) .asm-paper { min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
  .asm:not(.asm-landing) .asm-paper { padding: 20px 16px 32px; }
  .asm:not(.asm-landing) .asm-fine,
  .asm:not(.asm-landing) .asm-error { overflow-wrap: anywhere; }
  .asm:not(.asm-landing) .asm-work-pill { min-height: 44px; }
}

/* Campaign pages follow /generator: vivid purple hero, white paper and catalog icons. */
.asm-landing { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.asm-landing .asm-crumbs { margin-bottom: 16px; color: #e6dcff; font-size: 13px; }
.asm-landing .asm-crumbs a { color: #fff; }
.asm-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(24px, 3.2vw, 42px);
  padding: clamp(26px, 3.2vw, 38px);
  margin: 20px 0 0;
  border-radius: 28px;
  background: var(--asm-purple);
  color: #fff;
}
.asm-landing-copy { max-width: 590px; }
.asm-landing h1 { max-width: 17ch; margin: 0; color: #fff; font-size: clamp(32px, 3.1vw, 42px); line-height: 1.14; text-wrap: balance; }
.asm-landing-lead { max-width: 48ch; margin: 13px 0 16px; color: #f0ebff; font-size: 16px; line-height: 1.5; }
.asm-landing-facts { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 0 0 18px; padding: 0; list-style: none; color: #fff; font-size: 12px; font-weight: 750; }
.asm-landing-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px; background: rgb(255 255 255 / 12%); }
.asm-landing-facts img { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.asm-landing-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 22px; border-radius: 11px; background: #fff; color: var(--asm-purple) !important;
  font-weight: 800; text-decoration: none; box-shadow: 0 5px 14px rgb(39 36 57 / 16%);
  transition: background 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}
.asm-landing-cta:hover { background: #f3eeff; box-shadow: 0 8px 18px rgb(39 36 57 / 22%); transform: translateY(-1px); }
.asm-landing-note { margin: 10px 0 0; color: #e6dcff; font-size: 12px; line-height: 1.45; }
.asm-preview { min-width: 0; }
.asm-preview-sheet { padding: 18px 20px; border: 1px solid #e0dbff; border-radius: 18px; background: #fff; color: var(--asm-ink); box-shadow: 0 10px 24px rgb(39 36 57 / 16%); animation: asm-paper-in 650ms cubic-bezier(.16, 1, .3, 1) both; }
.asm-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.asm-preview-heading > div:first-child { display: grid; gap: 7px; }
.asm-example-label { display: flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px; border-radius: 8px; background: var(--landing-tint); color: var(--landing-accent); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.asm-example-type { width: fit-content; padding: 4px 9px; border-radius: 999px; background: var(--landing-tint); color: var(--asm-ink); font-size: 11px; font-weight: 800; }
.asm-landing-mascot { position: relative; flex: 0 0 190px; width: 190px; height: 92px; overflow: hidden; opacity: 0; transition: opacity 500ms cubic-bezier(.16, 1, .3, 1); }
.asm-landing-mascot.is-ready { opacity: 1; }
#asm-landing-lottie { position: absolute; top: -114px; left: -131px; width: 447px; height: 335px; animation: asm-pencil-float 3.2s ease-in-out infinite; }
.asm-preview h2 { margin: 0 0 12px; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.4; }
.asm-preview-list { display: grid; gap: 6px; margin: 0; padding-left: 21px; color: var(--asm-ink); font-size: 13px; line-height: 1.42; }
.asm-preview-list li { padding-left: 3px; }
.asm-preview-list li::marker { color: var(--landing-accent); font-weight: 800; }
.asm-preview-doc { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--asm-line); }
.asm-preview-doc .asm-example-label { margin-bottom: 6px; }
.asm-preview-doc .asm-example-label img { width: 16px; height: 16px; }
.asm-preview-doc h3 { margin: 0; font-family: var(--font); font-size: 13px; font-weight: 800; line-height: 1.35; }
.asm-preview-doc p { margin: 6px 0 0; color: var(--asm-quiet); font-size: 12px; line-height: 1.45; }
.asm-preview-disclaimer { margin: 10px 0 0; color: var(--asm-quiet); font-size: 10px; line-height: 1.4; }
.asm-landing-section { padding: 38px 0; border-top: 1px solid var(--asm-line); }
.asm-landing-section > h2, .asm-landing-price h2, .asm-landing-final h2 { max-width: 780px; margin: 0 0 20px; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.25; text-wrap: balance; }
.asm-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 30px); margin: 0; padding: 0; list-style: none; }
.asm-process li { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 4px; }
.asm-process li > img { grid-row: 1 / span 2; box-sizing: border-box; width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: var(--landing-tint); object-fit: contain; }
.asm-process li > img { filter: none; }
.asm-process h3 { align-self: end; margin: 0; font-size: 15px; }
.asm-process p, .asm-result p { align-self: start; max-width: 44ch; margin: 0; color: var(--asm-quiet); font-size: 13px; line-height: 1.45; }
.asm-result .asm-result-lead { max-width: 68ch; margin: -8px 0 16px; color: var(--asm-ink); font-size: 15px; line-height: 1.55; }
.asm-result ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin: 0 0 12px; padding-left: 19px; font-size: 14px; line-height: 1.45; }
.asm-result li::marker { color: var(--landing-accent); }
.asm-landing-price { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 4px 0 38px; padding: 22px 26px; border: 1px solid var(--asm-line); border-radius: 18px; background: var(--asm-soft); color: var(--asm-ink); }
.asm-price-copy { max-width: 68ch; }
.asm-landing-price h2 { margin: 0 0 7px; color: var(--asm-ink); font-size: clamp(18px, 2vw, 23px); line-height: 1.3; }
.asm-landing-price p { margin: 0; color: var(--asm-quiet); font-size: 13px; line-height: 1.5; }
.asm-price-flow { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.asm-price-stage { display: grid; gap: 2px; min-width: 108px; padding: 10px 12px; border-radius: 12px; }
.asm-price-stage > span { font-size: 11px; font-weight: 750; line-height: 1.3; }
.asm-price-stage strong { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.asm-price-stage strong small { font-size: .55em; }
.asm-price-stage-free { border: 1px solid var(--asm-line); background: #fff; color: var(--asm-purple); }
.asm-price-stage-file { border: 1px solid var(--asm-purple); background: var(--asm-purple); color: #fff; }
.asm-price-arrow { color: var(--asm-purple); font-size: 22px; font-weight: 800; }
.asm-faq details { border-top: 1px solid var(--asm-line); }
.asm-faq details:last-child { border-bottom: 1px solid var(--asm-line); }
.asm-faq summary { padding: 14px 0; cursor: pointer; font-weight: 800; font-size: 14px; line-height: 1.45; }
.asm-faq details p { max-width: 70ch; margin: 0; padding: 0 0 15px; color: var(--asm-quiet); font-size: 13px; line-height: 1.5; }
.asm-landing-final { padding: 32px 24px; margin: 8px 0 44px; border-radius: 22px; background: var(--asm-purple); color: #fff; text-align: center; }
.asm-landing-final h2 { margin: 0 auto 8px; color: #fff; }
.asm-landing-final p { margin: 0 auto 18px; color: #f0ebff; font-size: 14px; line-height: 1.5; }
.asm-landing :focus-visible { outline-offset: 4px; }
@keyframes asm-paper-in { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes asm-pencil-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

@media (max-width: 820px) {
  .asm-landing { width: min(100% - 32px, 680px); }
  .asm-landing-hero { grid-template-columns: 1fr; gap: 24px; padding: clamp(24px, 5vw, 36px); }
  .asm-landing-copy { max-width: 620px; }
  .asm-preview { max-width: 620px; }
  .asm-process { grid-template-columns: 1fr; gap: 16px; }
  .asm-result ul { grid-template-columns: 1fr; gap: 8px; }
  .asm-landing-price { align-items: center; }
}
@media (max-width: 520px) {
  .asm-landing { width: calc(100% - 24px); }
  .asm-landing-hero { padding: 23px 17px; border-radius: 22px; }
  .asm-landing h1 { max-width: 16ch; font-size: clamp(29px, 8vw, 36px); }
  .asm-landing-lead { margin: 13px 0 15px; font-size: 15px; }
  .asm-landing-facts { gap: 8px 13px; font-size: 12px; }
  .asm-landing-cta { width: 100%; }
  .asm-preview-sheet { padding: 17px 15px; }
  .asm-landing-mascot { flex-basis: 110px; width: 110px; height: 62px; }
  #asm-landing-lottie { top: -143px; left: -131px; width: 447px; height: 335px; }
  .asm-landing-section { padding: 30px 0; }
  .asm-landing-section > h2 { margin-bottom: 15px; }
  .asm-landing-price { gap: 8px; padding: 17px; }
  .asm-landing-price { flex-direction: column; align-items: stretch; }
  .asm-price-flow { justify-content: start; }
  .asm-price-stage { min-width: 0; }
  .asm-price-stage strong { font-size: 25px; }
  .asm-landing-final { padding: 27px 18px; margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .asm-landing-cta,
  .asm-landing-mascot { transition: none; }
  .asm-preview-sheet,
  #asm-landing-lottie { animation: none; }
}
