/* UpSound · Студия в браузере · st.css
   Режим «Инструмент» upsound-design v2.1. Всё под префиксом .st- (и .kb- для клавиатуры),
   чтобы встраиваться в тему upsound без конфликтов. */


:root {
  --wall: #0B0A09; --wall-2: #121010; --wall-3: #1A1715;
  --surface-subtle: rgba(239,232,220,.028); --surface-hover: rgba(239,232,220,.055);
  --ivory: #EFE8DC; --ivory-2: #C9C0B2; --mute: #8E867A;
  --hair: rgba(239,232,220,.09); --hair-2: rgba(239,232,220,.20);
  --rule: rgba(239,232,220,.13); --rule-2: rgba(239,232,220,.26);
  --fog: #EEEEEC; --fog-2: #E2E2DF; --ink: #0B0A09; --fog-ink-2: #4B4944; --fog-mute: #66645E; --fog-rule: rgba(11,10,9,.14);
  --red: #E30613; --red-ink: #FF4D3F; --ok: #7FD69B; --warn: #F2B84B;
  --f-display: "Unbounded", Arial, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --maxw: 1440px; --gut: clamp(16px, 4.4vw, 68px); --room: clamp(72px, 8.5vw, 136px);
  --ease: cubic-bezier(.22,.61,.36,1); --slow: cubic-bezier(.16,1,.3,1); --spring: cubic-bezier(.3,1.3,.45,1);
  color-scheme: dark;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(st-switch-thumb) { animation-duration: .5s; animation-timing-function: var(--spring); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.st-body { margin: 0; background: var(--wall); color: var(--ivory); font: 400 16px/1.58 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.st-body) a { color: inherit; text-decoration: none; }
:where(.st-body) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.st-body) img { max-width: 100%; display: block; }
.num, .st-num { font-variant-numeric: tabular-nums; }
.it { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: 1.12em; letter-spacing: -.01em; line-height: 1; }
.eyebrow, .st-eb { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .11em; text-transform: uppercase; color: var(--mute); margin: 0; }
.st-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.st-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 8px; }

/* ── Шапка (копия шапки темы для макета; на сайте — настоящая) ───────────── */
.st-hd { position: sticky; top: 0; z-index: 50; background: rgba(11,10,9,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--hair); }
.st-hd__in { display: flex; align-items: center; gap: 36px; height: 76px; }
.st-hd__logo img { width: 92px; height: auto; }
.st-hd nav { display: flex; gap: 26px; font: 400 15px/1 var(--f-text); color: var(--ivory-2); }
.st-hd nav a.is-on { color: var(--ivory); box-shadow: inset 0 -1px 0 var(--ivory); padding-bottom: 6px; margin-bottom: -7px; }
.st-hd nav .st-hd__svc { padding-left: 24px; border-left: 1px solid var(--hair-2); color: var(--ivory); }
.st-hd nav .st-hd__svc em { font-family: var(--f-serif); font-style: italic; color: var(--mute); font-size: 1.12em; }
.st-hd__r { margin-left: auto; display: flex; align-items: center; gap: 22px; font: 400 14.5px/1 var(--f-text); }
.st-hd__r .dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 2px; }
.st-hd__cta { background: var(--ivory); color: var(--ink) !important; padding: 12px 16px; font-weight: 500; }
.st-hd__burger { display: none; width: 44px; height: 44px; margin-left: auto; place-items: center; }
@media (max-width: 1180px) { .st-hd nav, .st-hd__r { display: none; } .st-hd__burger { display: grid; } .st-hd__in { height: 64px; } }

/* ── Крошки и первый экран инструмента ──────────────────────────────────── */
.st-bar { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 18px; border-bottom: 1px solid var(--hair); }
.st-crumbs { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.st-crumbs a:hover { color: var(--ivory); }
.st-crumbs span[aria-current] { color: var(--ivory); }
.st-crumbs i { font-style: normal; opacity: .5; }
@media (max-width: 640px) { .st-bar .eyebrow { display: none; } .st-crumbs { font-size: 10.5px; } }

.st-head { padding-top: clamp(20px, 2.6vw, 34px); }
.st-hero > * { animation: st-rise .8s var(--slow) both; }
.st-hero > :nth-child(2) { animation-delay: .06s; } .st-hero > :nth-child(3) { animation-delay: .12s; } .st-hero > :nth-child(4) { animation-delay: .18s; }
@keyframes st-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.st-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid rgba(227,6,19,.45); background: rgba(227,6,19,.06); font: 400 13px/1.2 var(--f-text); color: var(--ivory); }
.st-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: st-pulse 2.4s var(--ease) infinite; }
@keyframes st-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227,6,19,.5); } 60% { box-shadow: 0 0 0 6px rgba(227,6,19,0); } }
.st-h1 { margin: 18px 0 0; font: 300 clamp(32px, 4.4vw, 58px)/1.02 var(--f-display); letter-spacing: -.045em; max-width: 18ch; }
.st-h1--hub { font-size: clamp(44px, 7.2vw, 108px); line-height: .96; letter-spacing: -.055em; }
.st-lede { margin: 14px 0 0; max-width: 62ch; font: 300 clamp(16px, 1.35vw, 19px)/1.52 var(--f-text); color: var(--ivory-2); }
.st-lede b { font-weight: 400; color: var(--ivory); }

/* ── Переключатель инструментов студии ──────────────────────────────────── */
.st-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; margin-top: clamp(24px, 2.6vw, 34px); }
.st-switch { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(239,232,220,.05); border: 1px solid var(--hair); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-switch::-webkit-scrollbar { display: none; }
.st-switch a { position: relative; z-index: 1; padding: 9px 14px; border-radius: 999px; font: 400 14px/1.1 var(--f-text); color: var(--ivory-2); white-space: nowrap; transition: color .35s var(--ease); }
.st-switch a:hover { color: var(--ivory); }
.st-switch a.is-on { color: var(--ink); font-weight: 500; }
.st-switch a.is-soon { color: var(--mute); }
.st-switch a.is-soon { opacity: .62; }
.st-switch__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ivory); z-index: 0; view-transition-name: st-switch-thumb; transition: transform .6s var(--spring), width .6s var(--spring); }
.st-switch__hover { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: rgba(239,232,220,.07); opacity: 0; z-index: 0; transition: transform .45s var(--slow), width .45s var(--slow), opacity .25s var(--ease); pointer-events: none; }
.st-switch__hover.is-on { opacity: 1; }

/* «Студия помнит» — общий темп и тональность */
.st-ctx { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; font: 400 12.5px/1.2 var(--f-mono); color: var(--ivory-2); letter-spacing: .02em; border: 1px solid transparent; transition: border-color .25s, background .25s; }
.st-ctx:hover { border-color: var(--hair-2); background: var(--surface-subtle); }
.st-ctx b { font-weight: 500; color: var(--ivory); }
.st-ctx .sep { opacity: .35; }
.st-ctx__lab { color: var(--mute); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
.st-ctx.is-flash b { animation: st-mark 1.6s var(--ease) both; border-radius: 4px; }
@keyframes st-mark { 0%, 30% { background: rgba(227,6,19,.18); box-shadow: 0 0 0 4px rgba(227,6,19,.18); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }

/* ── Сцена инструмента ──────────────────────────────────────────────────── */
.st-stage { padding-top: clamp(28px, 3vw, 44px); padding-bottom: var(--room); }
.st-zone + .st-zone { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--hair); }
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.st-label { font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.st-kbd { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--hair-2); font: 400 11px/1.2 var(--f-mono); color: var(--ivory-2); text-align: center; }

/* Кнопки */
.st-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font: 500 15px/1 var(--f-text); white-space: nowrap; transition: background-color .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), transform .25s var(--ease), opacity .2s; }
.st-btn:active { transform: scale(.97); }
.st-btn--ivory { background: var(--ivory); color: var(--ink) !important; }
.st-btn--ivory:hover { background: #fff; }
.st-btn--line { border: 1px solid var(--hair-2); color: var(--ivory); }
.st-btn--line:hover { border-color: var(--ivory); background: rgba(239,232,220,.06); }
.st-btn--ghost { background: rgba(239,232,220,.06); }
.st-btn--ghost:hover { background: rgba(239,232,220,.12); }
.st-btn--lg { height: 60px; padding: 0 32px; font-size: 16px; }
.st-btn[disabled] { opacity: .4; pointer-events: none; }
.st-btn svg { flex: none; }
.st-qlink { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--hair-2); font: 400 14.5px/1.2 var(--f-text); color: var(--ivory-2); transition: color .2s, border-color .2s, gap .35s var(--slow); }
.st-qlink:hover { color: var(--ivory); border-color: var(--ivory); gap: 12px; }
.st-round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--hair-2); display: grid; place-items: center; font: 300 24px/1 var(--f-display); color: var(--ivory-2); transition: border-color .2s, color .2s, transform .2s var(--ease), background .2s; }
.st-round:hover { border-color: var(--ivory); color: var(--ivory); background: var(--surface-subtle); }
.st-round:active { transform: scale(.92); }

/* Сегменты (2/4, 3/4…) — бегунок */
.st-seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(239,232,220,.05); border: 1px solid var(--hair); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-seg::-webkit-scrollbar { display: none; }
.st-seg button { position: relative; z-index: 1; padding: 8px 14px; min-height: 36px; border-radius: 999px; font: 400 13.5px/1.15 var(--f-text); color: var(--mute); white-space: nowrap; transition: color .35s var(--ease); }
.st-seg button:hover { color: var(--ivory); }
.st-seg button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.st-seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ivory); transition: transform .6s var(--spring), width .6s var(--spring); z-index: 0; }
.st-seg--mono button { font-family: var(--f-mono); font-size: 13px; }

/* Чипы и переключатели */
.st-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--hair); font: 400 13.5px/1.1 var(--f-text); color: var(--ivory-2); transition: background .18s var(--ease), border-color .18s, color .18s, transform .2s var(--ease); }
.st-chip:hover { border-color: var(--hair-2); color: var(--ivory); }
.st-chip:active { transform: scale(.96); }
.st-chip[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--ink); font-weight: 500; }
.st-chip--mono { font-family: var(--f-mono); font-size: 13px; }
.st-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; font: 400 14.5px/1.3 var(--f-text); color: var(--ivory-2); cursor: pointer; user-select: none; }
.st-toggle__sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(239,232,220,.12); transition: background .3s var(--ease); }
.st-toggle__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ivory-2); transition: transform .45s var(--spring), background .3s; }
.st-toggle[aria-checked="true"] { color: var(--ivory); }
.st-toggle[aria-checked="true"] .st-toggle__sw { background: var(--ivory); }
.st-toggle[aria-checked="true"] .st-toggle__sw::after { transform: translateX(16px); background: var(--ink); }

/* Ползунок */
.st-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; touch-action: pan-y; }
.st-range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--ivory) 0 var(--p, 50%), rgba(239,232,220,.16) var(--p, 50%) 100%); }
.st-range::-moz-range-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--ivory) 0 var(--p, 50%), rgba(239,232,220,.16) var(--p, 50%) 100%); }
.st-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--ivory); border: 3px solid var(--wall); box-shadow: 0 0 0 1px rgba(239,232,220,.55), 0 4px 14px rgba(0,0,0,.55); transition: transform .2s var(--ease); }
.st-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ivory); border: 3px solid var(--wall); box-shadow: 0 0 0 1px rgba(239,232,220,.55); }
.st-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.st-range--center { --c: 50%; }
.st-range--center::-webkit-slider-runnable-track { background: linear-gradient(90deg, rgba(239,232,220,.16) 0 min(var(--p), var(--c)), var(--ivory) min(var(--p), var(--c)) max(var(--p), var(--c)), rgba(239,232,220,.16) max(var(--p), var(--c)) 100%); }

/* Свой выпадающий список */
.st-sel { position: relative; display: inline-block; }
.st-sel__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 16px; border-radius: 999px; border: 1px solid var(--hair-2); font: 400 14px/1.1 var(--f-text); color: var(--ivory); transition: border-color .2s, background .2s; }
.st-sel__btn:hover { border-color: var(--ivory); }
.st-sel__btn b { font-weight: 400; color: var(--mute); }
.st-sel__btn svg { transition: transform .35s var(--slow); color: var(--mute); }
.st-sel.is-open .st-sel__btn svg { transform: rotate(180deg); }
.st-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 100%; width: max-content; max-width: min(320px, 86vw); max-height: 360px; overflow-y: auto; padding: 6px; border-radius: 16px; background: #1C1916; box-shadow: 0 0 0 1px rgba(239,232,220,.08), 0 24px 56px -14px rgba(0,0,0,.75); display: none; transform-origin: 20% 0; }
.st-pop.is-flip { left: auto; right: 0; transform-origin: 80% 0; }
@keyframes st-pop-open { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.st-sel.is-up .st-pop { top: auto; bottom: calc(100% + 8px); transform-origin: 20% 100%; }
.st-sel.is-right .st-pop { left: auto; right: 0; }
.st-sel.is-open .st-pop { display: block; animation: st-pop-open .34s var(--slow) both; }
.st-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; text-align: left; font: 400 14px/1.25 var(--f-text); color: var(--ivory-2); }
.st-opt small { font: 400 11.5px/1.2 var(--f-mono); color: var(--mute); }
.st-opt:hover, .st-opt.is-hl { background: rgba(239,232,220,.07); color: var(--ivory); }
.st-opt[aria-selected="true"] { color: var(--ivory); }
.st-opt[aria-selected="true"]::after { content: ""; width: 12px; height: 7px; border-left: 1.5px solid var(--ivory); border-bottom: 1.5px solid var(--ivory); transform: rotate(-45deg) translateY(-2px); flex: none; }
.st-opt-g { padding: 10px 12px 4px; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.st-sel.is-open .st-opt { animation: st-opt-in .36s var(--slow) both; animation-delay: calc(var(--i, 0) * 16ms); }
@keyframes st-opt-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Подсказка-тост */
.st-toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: #1C1916; box-shadow: 0 0 0 1px rgba(239,232,220,.1), 0 18px 40px -12px rgba(0,0,0,.7); font: 400 14px/1.3 var(--f-text); color: var(--ivory); transition: opacity .25s var(--ease), transform .45s var(--slow); pointer-events: none; max-width: calc(100vw - 32px); }
.st-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.st-toast i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 10px; vertical-align: 2px; }

/* Нотис «звук выключен» на iPhone */
.st-note { display: flex; gap: 12px; align-items: flex-start; font: 300 14px/1.5 var(--f-text); color: var(--ivory-2); }
.st-note::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--warn); }

/* ── Ценности (3 колонки) ───────────────────────────────────────────────── */
.st-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 0 var(--room); }
.st-values > div { border-top: 1px solid var(--hair); padding-top: 22px; }
.st-values svg { color: var(--ivory); margin-bottom: 18px; }
.st-values h3 { margin: 0 0 8px; font: 400 clamp(18px, 1.5vw, 21px)/1.3 var(--f-display); letter-spacing: -.02em; }
.st-values p { margin: 0; font: 300 15px/1.6 var(--f-text); color: var(--ivory-2); }
@media (max-width: 820px) { .st-values { grid-template-columns: 1fr; gap: 28px; } }
.ico-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Мост: UpSound AI и ЧЕК ─────────────────────────────────────────────── */
.st-bridge { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; padding-bottom: var(--room); }
.st-focal { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(26px, 3vw, 44px); background: radial-gradient(ellipse 70% 115% at 8% 50%, rgba(227,6,19,.22) 0%, rgba(227,6,19,.06) 46%, transparent 76%), linear-gradient(135deg, #1B1312 0%, #110F0E 100%); }
.st-focal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #FF3B30 0%, #E30613 65%, rgba(227,6,19,.15) 100%); }
.st-focal__logo { height: 22px; width: auto; margin-bottom: 26px; }
.st-focal h3 { margin: 0; font: 300 clamp(24px, 2.6vw, 38px)/1.08 var(--f-display); letter-spacing: -.04em; max-width: 16ch; }
.st-focal p { margin: 14px 0 26px; font: 300 16px/1.55 var(--f-text); color: var(--ivory-2); max-width: 44ch; }
.st-chek { padding: clamp(26px, 3vw, 40px) 0 0; border-top: 1px solid var(--hair); align-self: start; }
.st-chek h3 { margin: 10px 0 10px; font: 300 clamp(22px, 2vw, 30px)/1.1 var(--f-display); letter-spacing: -.035em; }
.st-chek p { margin: 0 0 22px; font: 300 15px/1.6 var(--f-text); color: var(--ivory-2); max-width: 40ch; }
@media (max-width: 900px) { .st-bridge { grid-template-columns: 1fr; } }

/* ── Вопросы ────────────────────────────────────────────────────────────── */
.st-faq-wrap { padding-bottom: var(--room); }
.st-sec-t { margin: 0 0 clamp(24px, 3vw, 40px); font: 300 clamp(28px, 3.8vw, 52px)/1.02 var(--f-display); letter-spacing: -.045em; }
.st-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; interpolate-size: allow-keywords; }
.st-faq details { border-top: 1px solid var(--hair); padding-block: 18px; }
.st-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 500 15.5px/1.4 var(--f-text); color: var(--ivory); }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: ""; flex: none; width: 12px; height: 12px; color: var(--mute); background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .45s var(--slow), background-size .45s var(--slow); }
.st-faq details[open] summary::after { background-size: 12px 1.5px, 1.5px 0; transform: rotate(180deg); color: var(--ivory); }
.st-faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--slow), content-visibility .45s allow-discrete; }
.st-faq details[open]::details-content { block-size: auto; }
.st-faq p { margin: 10px 0 0; font: 300 15px/1.65 var(--f-text); color: var(--ivory-2); max-width: 60ch; }
@media (max-width: 820px) { .st-faq { grid-template-columns: 1fr; } }

/* Текст-инструкция (SEO) */
.st-prose { max-width: 690px; padding-bottom: var(--room); }
.st-prose h2 { font: 300 clamp(26px, 3vw, 40px)/1.08 var(--f-display); letter-spacing: -.04em; margin: 0 0 18px; }
.st-prose h3 { font: 400 20px/1.3 var(--f-display); letter-spacing: -.02em; margin: 36px 0 10px; }
.st-prose p, .st-prose li { font: 300 17px/1.7 var(--f-text); color: var(--ivory-2); }
.st-prose ol { padding-left: 22px; }

/* ── Подвал (копия) ─────────────────────────────────────────────────────── */
.st-ft { border-top: 1px solid var(--hair); padding: 48px 0 56px; color: var(--mute); font: 400 13.5px/1.6 var(--f-text); }
.st-ft__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.st-ft img { width: 110px; }

/* ── Клавиатура пианино (.kb-*) ─────────────────────────────────────────── */
.kb { --kb-h: clamp(150px, 19vw, 236px); --kb-bw: calc(100% / var(--kb-n) * .6); position: relative; height: var(--kb-h); user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.kb-key { position: absolute; top: 0; cursor: pointer; transition: transform .08s var(--ease), background .12s, box-shadow .12s; }
.kb-key--w { height: 100%; padding: 0 1px; z-index: 1; }
.kb-key--w::before { content: ""; position: absolute; inset: 0 1px; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, #E4DCCD 0%, #EFE8DC 14%, #F2ECE2 100%); box-shadow: inset 0 -5px 0 rgba(11,10,9,.12); transition: background .12s, box-shadow .12s, transform .08s var(--ease); }
.kb-key--b { width: var(--kb-bw); height: 62%; z-index: 2; }
.kb-key--b::before { content: ""; position: absolute; inset: 0; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #050505 0%, #1A1715 82%, #2A2521 100%); box-shadow: inset 0 -6px 0 #0B0A09, 0 4px 10px rgba(0,0,0,.45); transition: background .12s, box-shadow .12s; }
.kb-key.is-down.kb-key--w::before { background: linear-gradient(180deg, #D8CFBF 0%, #E2D9C9 100%); box-shadow: inset 0 -2px 0 rgba(11,10,9,.14), inset 0 -5px 0 var(--red); transform: translateY(2px); }
.kb-key.is-down.kb-key--b::before { background: linear-gradient(180deg, #0B0A09 0%, #2A2521 100%); box-shadow: inset 0 -3px 0 var(--red), 0 2px 5px rgba(0,0,0,.45); }
.kb-lab { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 400 12px/1 var(--f-mono); color: rgba(11,10,9,.55); pointer-events: none; text-transform: capitalize; }
.kb-lab sub { font-size: 9px; margin-left: 1px; vertical-align: -1px; }
.kb-lab em { font-style: normal; color: rgba(11,10,9,.38); font-size: 10.5px; }
.kb-key--b .kb-lab { color: rgba(239,232,220,.55); bottom: 10px; font-size: 10.5px; }
.kb-dot { position: absolute; left: 50%; bottom: 36px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; opacity: 0; transform: scale(.3); transition: opacity .3s var(--ease), transform .45s var(--spring); pointer-events: none; }
.kb-key--b .kb-dot { bottom: 26px; }
.kb-key.is-scale .kb-dot { opacity: 1; transform: none; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(11,10,9,.45); }
.kb-key--b.is-scale .kb-dot { box-shadow: inset 0 0 0 1.5px rgba(239,232,220,.6); }
.kb-key.is-chord .kb-dot, .kb-key.is-root .kb-dot { opacity: 1; transform: none; background: var(--ink); box-shadow: none; }
.kb-key--b.is-chord .kb-dot, .kb-key--b.is-root .kb-dot { background: var(--ivory); }
.kb-key.is-root .kb-dot { background: var(--red) !important; }
@media (max-width: 640px) { .kb-lab { font-size: 10px; bottom: 10px; } .kb-dot { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  .st-hero > *, .st-sel.is-open .st-opt, .st-pill i { animation: none !important; }
  .st-switch__thumb, .st-seg__thumb, .st-switch__hover, .st-pop, .st-faq details::details-content, .st-toggle__sw::after { transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media (max-width: 640px) { .st-seg button { padding: 8px 11px; } .st-switch a { padding: 9px 12px; } }

/* Как пользоваться — шаги под инструментом */
.st-howto { padding-bottom: var(--room); }
.st-howto .st-sec-t { margin: 0 0 clamp(24px, 3vw, 40px); }
.st-howto__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.st-howto__steps li { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--hair); }
.st-howto__steps li::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 2px; background: var(--ivory); transform-origin: 0 50%; transition: transform .6s var(--slow); }
.st-howto__steps li:hover::before { transform: scaleX(2.2); }
.st-howto__n { font: 400 11.5px/1 var(--f-mono); color: var(--mute); letter-spacing: .06em; }
.st-howto__steps b { font: 400 18px/1.3 var(--f-display); letter-spacing: -.02em; font-weight: 400; color: var(--ivory); }
.st-howto__steps li > span:last-child { font: 300 15px/1.6 var(--f-text); color: var(--ivory-2); }
.st-howto__p { max-width: 760px; margin-top: clamp(28px, 3vw, 40px); }
.st-howto__p p { margin: 0 0 14px; font: 300 16px/1.7 var(--f-text); color: var(--ivory-2); }
.st-howto__p b { color: var(--ivory); font-weight: 400; }
.st-howto__rel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin: clamp(24px, 3vw, 36px) 0 0; }
.st-howto__rel .st-label { margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .st-howto__steps li::before { transition: none; } }
