/* SDUI page v2 — layered on style.css + content.css (tokens: DESIGN.md).
   Live panel stage: Premiere-like panel + mini monitor + mini timeline; each tool's demo is a
   set of state classes (.do-<tool>.step-N) on the stage, motion via CSS transitions. */

.sdui-page {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --panel: #232323;
  --panel-edge: #0e0e0e;
  --ink-icon: #b8b8b8;
  --cut: #e34850;
  --blue: #378ef0;
  --clip: #2b2b31;
  --clip-hi: #3a3a43;
  --nest: #46405e;
  --audio: #23302e;
  --music: #1f2833;
}

.sdui-page .content-page {
  gap: clamp(72px, 12vh, 140px);
  max-width: 1440px;
  margin: 0 auto;
}

.sdui-page .site-header { margin-bottom: calc(clamp(72px, 12vh, 140px) * -0.55); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  padding: 4px;
  border-radius: 50px;
  background: rgba(27, 27, 27, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: 600 12px/1 "Google Sans Flex", "Inter", sans-serif;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.16s var(--ease-out);
}

.lang-switch button[aria-pressed="true"] {
  color: #141414;
  background: #f0efed;
}

.lang-switch button:active { transform: scale(0.96); }

@media (hover: hover) and (pointer: fine) {
  .lang-switch button[aria-pressed="false"]:hover { color: #fff; }
}

/* ---------------------------------------------------------------- hero */

.sd-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  min-height: min(760px, calc(100svh - 140px));
}

.sd-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 3.4vh, 36px);
}

.sd-mark img { display: block; }

.sd-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: 4px;
}

.sd-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 10px;
}

.sd-hero h1 {
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 13ch;
}

.sd-lead {
  margin-top: clamp(18px, 2.6vh, 28px);
  max-width: 34ch;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.5;
  color: var(--text-mid);
  text-wrap: pretty;
}

.sd-cta { margin-top: clamp(28px, 4vh, 44px); }

.sd-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 14px 20px;
  border-radius: 50px;
  background: #f0efed;
  color: #141414;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease;
}

.sd-download img { filter: invert(1); }
.sd-download b { display: block; font-size: 16px; font-weight: 600; }
.sd-download small { display: block; font-size: 12px; color: rgba(20, 20, 20, 0.6); margin-top: 2px; }
.sd-download:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .sd-download:hover { background: #fff; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); }
}

/* ---------------------------------------------------------------- hero film */

.sd-film {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9;
}

.sd-film video { display: block; width: 100%; height: 100%; object-fit: cover; }

.sd-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font: 500 13px/1 "Google Sans Flex", "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.16s var(--ease-out);
}

.sd-sound:active { transform: scale(0.96); }

@media (hover: hover) and (pointer: fine) {
  .sd-sound:hover { background: rgba(35, 35, 35, 0.85); }
}

/* ---------------------------------------------------------------- stage */

.stage-card {
  display: flex;
  gap: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #101010;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  min-height: 520px;
}

.s-panel {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 12px;
  background: var(--panel);
  border-right: 1px solid var(--panel-edge);
}

.s-ham { display: flex; flex-direction: column; gap: 2.5px; padding: 6px 0 12px; }
.s-ham i { width: 12px; height: 1.5px; border-radius: 1px; background: #8a8a8a; display: block; }

.s-sep { width: 18px; height: 1px; background: #393939; margin: 6px 0; }
.s-grow { flex: 1; }

.s-btn {
  position: relative;
  width: 34px;
  height: 32px;
  margin: 1px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.16s var(--ease-out);
}

.s-btn img { width: 18px; height: 18px; opacity: 0.85; transition: opacity 0.15s ease; }
.s-btn:active { transform: scale(0.94); }
.s-btn.is-on { background: #3e3e3e; }
.s-btn.is-on img { opacity: 1; filter: brightness(1.25); }

@media (hover: hover) and (pointer: fine) {
  .s-btn:hover { background: rgba(255, 255, 255, 0.07); }
  .s-btn:hover img { opacity: 1; }
}

.s-new {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 0 0 0 1.5px var(--panel);
}

.s-gear img { width: 16px; height: 16px; opacity: 0.7; }

.s-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* monitor */
.s-mon {
  position: relative;
  height: 236px;
  background: #050505;
  overflow: hidden;
  perspective: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-mon-img {
  width: 384px;
  max-width: 92%;
  aspect-ratio: 16 / 9;
  background: center / cover no-repeat;
  border-radius: 2px;
  transition: transform 0.75s var(--ease-io), filter 0.6s ease, opacity 0.3s ease;
  backface-visibility: visible;
}

.s-safe {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 92%;
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
  pointer-events: none;
}

.s-safe i { position: absolute; background: rgba(227, 72, 80, 0.38); }
.s-safe .top { left: 0; right: 0; top: 0; height: 14%; }
.s-safe .bottom { left: 0; right: 0; bottom: 0; height: 30%; }
.s-safe .side { right: 0; top: 14%; bottom: 30%; width: 16%; }
.s-safe b { position: absolute; left: 6px; top: 6px; font: 500 10px/1 "JetBrains Mono", monospace; color: #fff; }

.s-freeze {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}

.s-meters {
  position: absolute;
  right: 16px;
  top: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 8px 8px;
  grid-template-rows: 1fr auto;
  column-gap: 4px;
  row-gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.s-meters .m { position: relative; background: #1b1b1b; border-radius: 2px; overflow: hidden; }
.s-meters .m i {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: linear-gradient(to top, #2d9d78 0 65%, #e6c84b 65% 85%, var(--cut) 85%);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.s-meters .r i { transform: scaleY(0.04); }
.s-meters span { font: 500 9px/1 "JetBrains Mono", monospace; color: var(--text-dim); text-align: center; }

/* timeline */
.s-tl {
  position: relative;
  flex: 1;
  padding: 10px 14px 8px 0;
  background: #161616;
  border-top: 1px solid #000;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s-track { display: grid; grid-template-columns: 34px 1fr; align-items: stretch; height: 30px; }
.s-track.is-audio { height: 26px; }
.s-tname { font: 500 9px/1 "JetBrains Mono", monospace; color: #6c6c6c; align-self: center; text-align: center; }
.s-lane { position: relative; background: #1b1b1b; border-radius: 3px; }

.s-playhead {
  position: absolute;
  top: 4px;
  bottom: 2px;
  left: calc(34px + (100% - 48px) * var(--p, 0.5));
  width: 1px;
  background: #f5c542;
  pointer-events: none;
  z-index: 5;
}
.s-playhead i {
  position: absolute; top: -2px; left: -5px; width: 11px; height: 8px;
  background: #f5c542; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

.s-clip {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
  outline: 1.5px solid transparent;
  outline-offset: -1.5px;
  transition:
    left 0.55s var(--ease-io),
    width 0.55s var(--ease-io),
    opacity 0.35s ease,
    transform 0.45s var(--ease-out),
    background-color 0.4s ease,
    outline-color 0.2s ease;
}

.s-clip.is-video { background: var(--clip); }
.s-clip.is-audio { background: var(--audio); color: #5fb9a5; }
.s-clip.is-music { background: var(--music); color: #5d8fc4; }
.s-thumb { width: 26px; align-self: stretch; background: center / cover no-repeat; flex-shrink: 0; opacity: 0.85; }
.s-label { font: 500 10px/1 "JetBrains Mono", monospace; color: rgba(255, 255, 255, 0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; }
.s-label img { opacity: 0.9; }

.s-wave { display: flex; align-items: center; gap: 1px; width: 100%; height: 100%; padding: 2px 4px; transition: transform 0.55s var(--ease-io); }
.s-wave i { flex: 1; height: calc(var(--h) * 82%); background: currentColor; border-radius: 1px; opacity: 0.85; transition: transform 0.45s var(--ease-out); }

.s-clip.is-sel { outline-color: rgba(255, 255, 255, 0.9); }
.s-clip.is-entering { opacity: 0; transform: translateY(-8px) scale(0.98); }
.s-clip.is-hidden, .s-clip.is-gone { opacity: 0; transform: scaleY(0.85); }
.s-clip.is-nest { background: var(--nest); }
.s-clip.is-nest .s-label { color: #fff; }
.s-clip.is-folded { opacity: 0.18; }
.s-clip.is-adjust { background: #4a4a54; padding-left: 8px; }
.s-clip.is-overlay { background: #4a2a2e; padding-left: 8px; }
.s-clip.is-freeze { background: #2f3d55; justify-content: center; }
.s-clip.has-fx::after {
  content: "fx";
  position: absolute;
  right: 6px;
  font: 600 9px/1 "JetBrains Mono", monospace;
  color: #f5c542;
}

/* voice clip made of segments (Cut Pauses demo) */
.s-voice { position: absolute; inset: 2px 0; display: flex; border-radius: 4px; overflow: hidden; }
.s-seg { background: var(--audio); color: #5fb9a5; flex-shrink: 0; transition: flex-basis 0.7s var(--ease-io), opacity 0.4s ease, background-color 0.3s ease; }
.s-seg.is-pause { background: #1f2726; position: relative; }
.s-flat { position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: #3d5a54; }

/* caption under the stage */
.s-cap {
  min-height: 62px;
  padding: 12px 18px 14px;
  background: #121212;
  border-top: 1px solid #000;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.s-cap b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; min-height: 17px; }
.s-cap span { font-size: 13px; color: var(--text-mid); }

/* ---- demos ---- */
.do-nest.step-2 [data-id="c1"], .do-nest.step-2 [data-id="c2"],
.do-nest.step-2 [data-id="a1"], .do-nest.step-2 [data-id="a2"] { opacity: 0; transform: scaleY(0.8); }

.do-adjustment.step-1 .s-mon-img { filter: contrast(1.28) saturate(1.45) brightness(1.04) hue-rotate(-8deg); }

.do-flip-h.step-1 .s-mon-img { transform: rotateY(180deg); }
.do-flip-v.step-1 .s-mon-img { transform: rotateX(180deg); }

.do-fit .s-mon-img { transform: scale(1.55); transition-duration: 0s; }
.do-fit.step-1 .s-mon-img { transform: scale(1); transition-duration: 0.8s; }

.do-safe-margin.step-1 .s-safe { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.do-safe-margin.step-1 .s-mon-img { filter: brightness(0.75); }

.do-freeze.step-1 .s-playhead { box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.4); }
.do-freeze.step-2 .s-freeze { opacity: 1; transform: none; }
.do-freeze.step-2 .s-mon-img { filter: saturate(0.85); }

.do-cut-pauses .s-meters, .do-audio-left .s-meters, .do-hard-limiter .s-meters, .do-invert-right .s-meters { opacity: 1; }
.do-cut-pauses .s-mon-img, .do-audio-left .s-mon-img, .do-hard-limiter .s-mon-img, .do-invert-right .s-mon-img { filter: brightness(0.55); }
.do-cut-pauses.step-1 .s-seg.is-pause { background: rgba(227, 72, 80, 0.55); }
.do-cut-pauses.step-2 .s-seg.is-pause { flex-basis: 0% !important; opacity: 0; }

.do-audio-left.step-1 .s-meters .r i { transform: scaleY(1); }

.do-hard-limiter .s-meters .m i { transform: scaleY(1.35); height: 74%; }
.do-hard-limiter [data-id="a2"] .s-wave { transform: scaleY(1.25); }
.do-hard-limiter.step-1 [data-id="a2"] .s-wave { transform: scaleY(0.78); }
.do-hard-limiter.step-1 .s-meters .m i { transform: scaleY(0.92); }
.do-hard-limiter [data-track="a1"] .s-lane::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 4px; height: 1px;
  background: var(--cut); opacity: 0; transition: opacity 0.3s ease;
}
.do-hard-limiter.step-1 [data-track="a1"] .s-lane::after { opacity: 0.9; }

.do-invert-right.step-1 [data-id="a2"] .s-wave { transform: scaleY(-1); }
.do-invert-right.step-1 .s-meters .r i { background: linear-gradient(to top, #7a7af0 0 100%); }

/* ---------------------------------------------------------------- shared heads */

.sd-head { max-width: 640px; margin-bottom: clamp(28px, 4.4vh, 48px); }
.sd-head h2, .sd-set-copy h2, .sd-facts h2, .sd-close h2 {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sd-head p, .sd-set-copy p, .sd-close p {
  margin-top: 14px;
  color: var(--text-mid);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- tools */

.sd-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.6vw, 80px);
  align-items: start;
}

.sd-sticky { position: sticky; top: clamp(24px, 10vh, 90px); }

.sd-group {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 44px 0 10px;
}
.sd-group:first-child { margin-top: 0; }

.tool-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 18px;
  padding: 22px 22px 22px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tool-card.is-active { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.08); }
.tc-icon { margin-top: 2px; opacity: 0.6; transition: opacity 0.3s ease; }
.tool-card.is-active .tc-icon { opacity: 1; }
.tc-name { display: inline; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.tc-new { margin-left: 10px; font-size: 11px; font-weight: 600; color: var(--blue); vertical-align: 2px; }
.tc-d { margin-top: 6px; font-size: 16px; color: rgba(255, 255, 255, 0.82); line-height: 1.45; }
.tc-l { margin-top: 8px; font-size: 14px; color: var(--text-dim); line-height: 1.55; max-width: 56ch; }

/* ---------------------------------------------------------------- Cut Pauses */

.cp-demo {
  border-radius: 18px;
  background: #101010;
  border: 1px solid var(--border);
  padding: 22px 26px 28px;
}

.cp-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
/* до/после: активное — белым, неактивное — #8a8a8a (≥4.5:1 на #101010) */
.cp-label > span:not(.cp-time) { color: #8a8a8a; transition: color 0.3s ease; }
.cp-before { color: #fff !important; }
.cp-demo.is-cut .cp-before { color: #8a8a8a !important; }
.cp-demo.is-cut .cp-after { color: #fff; }
.cp-time { margin-left: auto; font: 500 13px/1 "JetBrains Mono", monospace; color: #fff; position: relative; }
.cp-time b { font-weight: 500; transition: opacity 0.3s ease; }
.cp-t2 { position: absolute; right: 0; opacity: 0; }
.cp-demo.is-cut .cp-t1 { opacity: 0; }
.cp-demo.is-cut .cp-t2 { opacity: 1; }

.cp-wave {
  display: flex;
  height: 118px;
  border-radius: 10px;
  overflow: hidden;
  background: #151a19;
}

.cp-seg {
  color: #5fb9a5;
  background: var(--audio);
  flex-basis: 0;
  min-width: 0;
  transition: flex-grow 0.9s var(--ease-io), opacity 0.4s ease, background-color 0.35s ease;
}
.cp-seg .s-wave { padding: 10px 6px; gap: 2px; }
.cp-seg.is-pause { background: rgba(227, 72, 80, 0.16); position: relative; box-shadow: inset 1px 0 0 rgba(227, 72, 80, 0.7), inset -1px 0 0 rgba(227, 72, 80, 0.7); }
.cp-seg.is-pause span { position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: rgba(227, 72, 80, 0.6); }
.cp-demo.is-cut .cp-seg.is-pause { flex-grow: 0 !important; opacity: 0; }

.cp-points {
  margin-top: clamp(28px, 4vh, 44px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
}
.cp-points h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.cp-points p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ---------------------------------------------------------------- settings */

.sd-set {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.mock-settings {
  border-radius: 12px;
  overflow: hidden;
  background: #1e1e1e;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #2c2c2c, 0 30px 70px rgba(0, 0, 0, 0.55);
  font-family: -apple-system, "SF Pro Text", "Inter", sans-serif;
  max-width: 640px;
  justify-self: end;
  width: 100%;
}
.ms-chrome { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #1a1a1a; border-bottom: 1px solid #000; font-size: 12px; color: #8a8a8a; }
.ms-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #393939; display: block; }
.ms-chrome span { margin: 0 auto; transform: translateX(-24px); }
.ms-body { display: flex; height: 470px; }
.ms-rail { width: 186px; flex-shrink: 0; background: #1a1a1a; border-right: 1px solid #000; padding: 20px 12px 16px; display: flex; flex-direction: column; }
.ms-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; }
.ms-brand img { border-radius: 6px; }
.ms-brand b { font-size: 16px; font-weight: 700; }
.ms-brand em { font-style: normal; font-size: 11px; color: #8a8a8a; border: 1px solid #393939; border-radius: 9px; padding: 1px 6px; }
.ms-nav { flex: 1; }
.ms-nav div { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 6px; font-size: 13px; color: #a2a2a2; cursor: pointer; transition: background 0.15s ease; }
.ms-nav div img { width: 16px; height: 16px; }
.ms-nav div.is-on { background: #393939; color: #efefef; }
@media (hover: hover) and (pointer: fine) { .ms-nav div:not(.is-on):hover { background: #2c2c2c; } }
.ms-site { font-size: 12px; color: #8a8a8a; padding: 0 10px; }
.ms-main { flex: 1; min-width: 0; padding: 20px 22px 18px; display: flex; flex-direction: column; }
.ms-pane { display: none; flex: 1; min-height: 0; }
.ms-pane.is-on { display: block; }
.ms-pane .ms-h { font-size: 16px; font-weight: 700; color: #efefef; }
.ms-pane > p { font-size: 12px; color: #8a8a8a; margin: 3px 0 14px; }
.ms-pane label { display: block; font-size: 12px; color: #a2a2a2; margin: 14px 0 7px; }
.ms-rows { height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.ms-row { display: flex; align-items: center; gap: 11px; height: 30px; border-top: 1px solid #2a2a2a; font-size: 13px; }
.ms-row:first-child { border-top-color: transparent; }
.ms-ck { width: 13px; height: 13px; border-radius: 2px; background: #c8c8c8; flex-shrink: 0; position: relative; }
.ms-ck::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #1e1e1e; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ms-row img { width: 16px; height: 16px; }
.ms-row b { flex: 1; font-weight: 400; color: #efefef; }
.ms-grip { display: flex; flex-direction: column; gap: 2px; }
.ms-grip i { width: 9px; height: 1.5px; background: #5c5c5c; display: block; }
.ms-seg { display: flex; border: 1px solid #494949; border-radius: 4px; height: 30px; }
.ms-seg span { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a2a2a2; cursor: pointer; }
.ms-seg span + span { border-left: 1px solid #494949; }
.ms-seg span.is-on { background: #494949; color: #efefef; }
.ms-pick, .ms-field { height: 30px; border: 1px solid #494949; border-radius: 4px; background: #0b0b0b; display: flex; align-items: center; padding: 0 10px; font-size: 13px; color: #efefef; }
.ms-pick { width: 220px; background: #2c2c2c; }
.ms-field { width: 90px; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.ms-foot { display: flex; justify-content: flex-end; padding-top: 12px; }
.ms-done { height: 30px; padding: 0 16px; border-radius: 15px; background: #1473e6; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; }

/* ---------------------------------------------------------------- install / facts / close */

.sd-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  counter-reset: none;
}
.sd-steps li {
  position: relative;
  padding: 22px 22px 24px;
  background: var(--clip);
  border-radius: 14px;
}
.sd-steps li:first-child { border-radius: 14px 6px 6px 14px; }
.sd-steps li:nth-child(2) { border-radius: 6px; }
.sd-steps li:last-child { border-radius: 6px 14px 14px 6px; }
.st-n { font: 500 12px/1 "JetBrains Mono", monospace; color: var(--text-mid); }
.sd-steps h3 { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.sd-steps p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-mid); }
.sd-foot { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.sd-foot img { opacity: 0.8; }

.sd-facts-grid { margin-top: clamp(26px, 4vh, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); }
.sd-facts h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.sd-facts dl { display: grid; grid-template-columns: 110px 1fr; }
.sd-facts dt, .sd-facts dd { padding: 16px 0; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.5; }
.sd-facts dt { color: var(--text-dim); }
.sd-facts dd { color: rgba(255, 255, 255, 0.85); }

.sd-close { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; }
.sd-close h2 { justify-content: center; }
.sd-close p { margin-left: auto; margin-right: auto; }
.sd-mail {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 50px;
  background: rgba(27, 27, 27, 0.55); border: 1px solid var(--border);
  color: #fff; text-decoration: none; font-size: 15px;
  transition: background 0.2s ease, transform 0.16s var(--ease-out);
}
.sd-mail:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sd-mail:hover { background: #232323; } }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .sd-hero { grid-template-columns: 1fr; min-height: 0; }
  .sd-hero h1 { max-width: 14ch; }
  .sd-tools-grid { grid-template-columns: 1fr; }
  .sd-sticky { display: none; }
  .tool-card.is-active { background: transparent; border-color: transparent; }
  .tool-card .tc-icon { opacity: 1; }
  .sd-set { grid-template-columns: 1fr; }
  .mock-settings { justify-self: start; }
  .cp-points { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .sdui-page .content-page { gap: 72px; }
  .header-right .contact-pill span { display: none; }
  .stage-card { min-height: 0; }
  .s-mon { height: 170px; }
  .s-mon-img { width: 260px; }
  .s-btn { width: 30px; height: 28px; }
  .s-panel { width: 44px; }
  .sd-steps, .sd-facts-grid, .cp-points { grid-template-columns: 1fr; }
  .sd-steps li, .sd-steps li:first-child, .sd-steps li:nth-child(2), .sd-steps li:last-child { border-radius: 14px; }
  .ms-rail { display: none; }
  .ms-body { height: auto; min-height: 400px; }
  .sd-facts dl { grid-template-columns: 90px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .s-clip, .s-mon-img, .s-seg, .cp-seg, .s-wave, .s-meters .m i { transition-duration: 0.01s !important; }
}

/* узкие сегменты Cut Pauses: столбики не меньше 1px, лишние уходят под обрезку */
.cp-seg { overflow: hidden; }
.cp-seg .s-wave i { min-width: 1px; }

@media (max-width: 720px) {
  .sdui-page .site-header { margin-bottom: -28px; }
  .cp-seg .s-wave { gap: 1px; padding: 10px 3px; }
}
