/* Sparkling How-to — шаги (префикс hts__) */
.hts {
  --h-bg: var(--sp-bg, #00050B); --h-card: var(--sp-card, #111924); --h-text: var(--sp-text, #F8FCFF);
  --h-accent: var(--sp-accent, #009CFF); --h-accent-hi: var(--sp-accent-hi, #4FB3FF); --h-dots: var(--sp-accent, #009CFF); --h-bg-opacity: .35;
  --h-soft: color-mix(in srgb, var(--h-text) 72%, transparent);
  --h-muted: color-mix(in srgb, var(--h-text) 45%, transparent);
  --h-line: color-mix(in srgb, var(--h-text) 9%, transparent);
  --h-panel: color-mix(in srgb, var(--h-card) 70%, var(--h-bg));
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0; padding: 72px 20px; background: var(--h-bg); color: var(--h-text);
  font-family: var(--sp-font, Arial, Helvetica, sans-serif);
}
.hts *, .hts *::before, .hts *::after { box-sizing: border-box; }
.hts::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--h-dots) 22%, transparent) 1.1px, transparent 1.3px); background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(60% 50% at 50% 20%, #000 10%, transparent 75%); opacity: .45; }
.hts--nodots::before { display: none; }
.hts__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: var(--h-bg-opacity); pointer-events: none; }

/* защита от стилей темы */
.hts h2, .hts h3, .hts p, .hts ol, .hts ul, .hts li { text-transform: none; letter-spacing: normal; }
.hts ol, .hts ul { list-style: none; margin: 0; padding: 0; }
.hts li::before, .hts li::marker { content: none; }
.hts img { max-width: 100%; height: auto; border: 0; }

.hts__inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.hts--sticky .hts__side { position: sticky; top: 24px; }
.hts__tag { display: inline-block; padding: 8px 12px; border: 1px solid var(--h-line); border-radius: 8px; background: color-mix(in srgb, var(--h-card) 90%, transparent);
  font: 600 12px/1 var(--sp-mono, "Courier New", monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--h-text); }
.hts .hts__title { margin: 14px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; color: var(--h-text); }
.hts .hts__lead { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--h-soft); }

.hts .hts__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hts .hts__chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--h-panel); border: 1px solid var(--h-line); font-size: 13px; line-height: 1.2; color: var(--h-soft); }
.hts__chip b { color: var(--h-text); font-weight: 600; }

.hts__cta { margin-top: 26px; padding: 20px; border-radius: 20px; background: var(--h-panel); border: 1px solid var(--h-line); }
.hts .hts__cta-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--h-text); }
.hts .hts__cta-text { margin: 6px 0 14px; font-size: 14px; line-height: 1.5; color: var(--h-soft); }
.hts__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hts .hts__btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 12px; background: var(--h-accent); color: var(--h-bg);
  font: 700 14px/1.2 Arial, Helvetica, sans-serif; text-decoration: none; border: 1px solid transparent; transition: filter .2s; }
.hts .hts__btn:hover { filter: brightness(1.1); color: var(--h-bg); }
.hts .hts__btn--ghost { background: transparent; border-color: var(--h-line); color: var(--h-text); font-weight: 400; }
.hts .hts__btn--ghost:hover { border-color: color-mix(in srgb, var(--h-text) 25%, transparent); color: var(--h-text); }
.hts__btn:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }

/* шаги */
.hts .hts__list { position: relative; }
.hts .hts__list::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(var(--h-accent), color-mix(in srgb, var(--h-accent) 10%, transparent)); }
.hts .hts__step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 0 0 22px; margin: 0; }
.hts .hts__step:last-child { padding-bottom: 0; }
.hts__num { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 14px; background: var(--h-card);
  border: 1px solid color-mix(in srgb, var(--h-accent) 40%, transparent);
  display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--sp-mono, "Courier New", monospace); color: var(--h-accent-hi); }
.hts__box { padding: 20px 22px; border-radius: 18px; background: var(--h-card); border: 1px solid var(--h-line); }
.hts .hts__step-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--h-text); }
.hts__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--h-soft); }
.hts__text p { margin: 0 0 8px; } .hts__text p:last-child { margin-bottom: 0; }
.hts__text ul, .hts__text ol { margin: 0 0 8px; padding-left: 20px; list-style: disc; }
.hts__text ol { list-style: decimal; }
.hts__text li::marker { content: normal; }
.hts__text a { color: var(--h-accent); text-decoration: none; } .hts__text a:hover { text-decoration: underline; }
.hts__text strong, .hts__text b { color: var(--h-text); }
.hts__text code { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--h-text) 8%, transparent); font-size: .92em; }
.hts__img { display: block; margin-top: 14px; border-radius: 12px; border: 1px solid var(--h-line); }
.hts .hts__tip { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--h-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--h-accent) 20%, transparent); font-size: 13.5px; line-height: 1.5; color: var(--h-soft); }
.hts__tip b { color: var(--h-accent-hi); }
.hts .hts__time { margin: 12px 0 0; font: 600 11px/1.4 var(--sp-mono, "Courier New", monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--h-muted); }
.hts .hts__note { margin: 18px 0 0 66px; font-size: 13px; line-height: 1.5; color: var(--h-muted); }

@media (max-width: 860px) {
  .hts { padding: 52px 16px; }
  .hts__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hts--sticky .hts__side { position: static; }
  .hts .hts__step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .hts__num { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
  .hts .hts__list::before { left: 19px; }
  .hts__box { padding: 18px; }
  .hts .hts__note { margin-left: 52px; }
}
