@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
  img, svg, video, canvas { max-width: 100%; display: block; }
  [hidden] { display: none !important; }
  a { color: inherit; text-decoration: none; }
  /* Единый стиль бирюзовых ссылок (заказчик, 2026-10-22): подчёркнуты всегда, при наведении подчёркивание остаётся, цвет светлеет.
     Раньше `a:hover { text-decoration: none }` снимал подчёркивание в абзацах, а в чате и кабинете вели себя по-своему. */
  :where(p, .prose, .sub, .msg-body, .attach) a:not(.btn), .panel-link, .step-go {
    color: var(--mint); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s var(--ease); }
  :where(p, .prose, .sub, .msg-body, .attach) a:not(.btn):hover, .panel-link:hover, .step-go:hover { color: var(--fg); }
  b, strong { font-weight: 600; }
  code { font-family: var(--font-data); font-size: .9em; font-variant-numeric: tabular-nums; }
  :focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
  .skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--sun); color: var(--ink-950); border-radius: 8px; }
  .skip:focus { left: 8px; }
  .wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .wrap.narrow { max-width: var(--wrap-narrow); }
  .x { font-weight: 900; }
  .x-mint { color: var(--mint); text-shadow: 0 0 28px rgba(var(--mint-rgb), .6); }
  .x-lime { color: var(--lime); text-shadow: 0 0 28px rgba(var(--lime-rgb), .6); }
  .x-peach { color: var(--peach); text-shadow: 0 0 28px rgba(var(--flame-rgb), .55); }
  .x-sun { color: var(--sun); text-shadow: 0 0 40px rgba(var(--sun-rgb), .6); }
  .x-flame { color: var(--flame); text-shadow: 0 0 28px rgba(var(--flame-rgb), .6); }
  .h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 5vw, 3.8rem); letter-spacing: -.035em; line-height: .98; margin: 12px 0 18px; text-wrap: balance; }
  .h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.7rem, 4.5vw, 3.4rem); letter-spacing: -.03em; line-height: 1; margin: 0 0 14px; text-transform: uppercase; text-wrap: balance; }
  .eyebrow { font-family: var(--font-data); font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-400); display: flex; gap: 12px; align-items: center; margin: 0; }
  .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--violet-400); }
  .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40ch; color: var(--fg-dim); }
  .lead b { color: var(--fg); font-weight: 600; }
  .sub { color: var(--fg-dim); max-width: 58ch; margin: 0 0 40px; }
  .note { font-family: var(--font-data); font-size: .85rem; color: var(--sun); border: 1px solid rgba(var(--sun-rgb), .4); border-radius: var(--radius-sm); padding: 10px 14px; display: inline-block; }
  .prose h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin: 32px 0 8px; letter-spacing: -.01em; }
  .prose p { color: var(--fg-dim); max-width: 70ch; }
  .prose ul { color: var(--fg-dim); max-width: 70ch; margin: 0 0 1em; padding-left: 1.3em; display: grid; gap: 6px; }
  .plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--fg-dim); }
  .plain-list b { color: var(--fg); }
  .plain-list.cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .mt-24 { margin-top: 24px !important; }
  .ym-pixel { position: absolute; left: -9999px; } /* пиксель Метрики для браузеров без JS */
  .mt-32 { margin-top: 32px !important; }
}
