/* RENDER BAY — чёрный бархат с фиолетовым неоном.
   Система по образцу Resend: чистый чёрный холст, разделение слоями через
   волосяные границы в 1 пиксель, а не через тени. Фиолетовый — только для
   кода, адресов и служебных строк, никогда на кнопках. Кнопки призрачные:
   прозрачная заливка, рамка, белый текст. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* холст и границы */
  --void: #000000;
  --hairline: #292d30;
  --hairline-soft: rgba(41, 45, 48, 0.7);
  --surface-lift: #0b0e14;

  /* текст */
  --white: #ffffff;
  --bone: #f0f0f0;
  --ash: #a1a4a5;
  --smoke: #abafb4;
  --iron: #6e727a;
  --charcoal: #464a4d;

  /* акценты: фиолетовый для кода, синий для действия */
  --iris: #9281f7;
  --iris-glow: #baa7ff;
  --signal: #3b9eff;
  --sky: #70b8ff;
  --green: #3ad389;
  --red: #ff9592;
  --crimson: #ff6465;
  --amber: #ffca16;

  /* совместимость со старой разметкой */
  --panel: #000000;
  --panel-2: #0b0e14;
  --line: #292d30;
  --line-strong: #292d30;
  --muted: #a1a4a5;
  --mist: #f0f0f0;
  --danger: #ff9592;
  --verdant: #3ad389;
  --saffron: #ffca16;

  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 16px;
  --r-sm: 6px;
  --pill: 9999px;
}

* { box-sizing: border-box; }

button, .btn, label, select, summary, a, input, textarea, .drop, .thumb button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--bone); text-decoration: none; }
a:hover { color: var(--white); }
a:hover { opacity: 0.75; }

/* ---------- типографика: иерархия масштабом, не жирностью ---------- */
h1, h2, h3 {
  font-weight: 400;
  margin: 0;
  color: var(--white);
}
h1 { font-size: clamp(34px, 8vw, 54px); line-height: 1.04; letter-spacing: -0.038em; }
h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  display: block;
  margin-bottom: 10px;
}

/* ---------- каркас ---------- */
.shell { display: flex; min-height: 100vh; }

.rail {
  width: 252px;
  flex: 0 0 252px;
  padding: 26px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--void);
  border-right: 1px solid var(--line);
}
.brand {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}
.brand img { display: block; }
.brand:hover { opacity: 1; text-decoration: none; }
.rail .eyebrow { margin-bottom: 26px; color: var(--ash); font-weight: 500; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--ash);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.nav a span.n {
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.3);
  letter-spacing: 0;
}
.nav a:hover { color: var(--white); opacity: 1; background: var(--surface-2); }
.nav a.active { color: var(--white); border: 1px solid var(--hairline); }
.nav a.active span.n { color: var(--iris); }

.rail-foot {
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ash); font-weight: 300;
}
.rail-foot code { font-family: var(--mono); color: var(--mist); font-size: 12px; }

.main { flex: 1; min-width: 0; padding: 40px clamp(18px, 5vw, 64px) 100px; }
.wrap { max-width: 720px; }
.page-head { margin-bottom: 34px; }
.page-head p {
  color: var(--mist); margin: 14px 0 0; max-width: 60ch;
  font-size: 18px; font-weight: 200; line-height: 1.55;
}

/* ---------- карточки: почти невидимые ---------- */
.card {
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 18px;
}
.card > h3 { margin-bottom: 18px; }
.card-note {
  color: var(--ash); font-size: 14px; font-weight: 300;
  margin: 8px 0 0; line-height: 1.5;
}

/* ---------- формы ---------- */
label.field { display: block; margin-bottom: 18px; }
label.field > span.lab,
span.lab {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 8px;
}

input[type="text"], input[type="number"], input[type="email"],
input[type="password"], input[type="file"], textarea, select {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--hairline);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  min-height: 48px;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(146, 129, 247, 0.6);
  box-shadow: none;
}
select { appearance: auto; -webkit-appearance: menulist; }
input[type="file"] { padding: 12px; font-size: 14px; }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 210px; }

.switch {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--void); cursor: pointer; margin-bottom: 12px;
  min-height: 60px;
}
.switch input { accent-color: var(--iris); width: 24px; height: 24px; flex: 0 0 24px; }
.switch b { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.switch small { display: block; color: var(--ash); font-size: 13.5px; font-weight: 300; margin-top: 2px; }
.switch:has(input:checked) { border-color: rgba(146,129,247,0.55); }

.seg {
  display: flex; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); overflow: hidden;
}
.seg label {
  flex: 1; text-align: center; padding: 15px 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ash); border-right: 1px solid var(--line);
  min-height: 52px; display: flex; align-items: center; justify-content: center;
}
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: rgba(146,129,247,0.6); color: var(--white); }

/* одна заливка на экран — фиолетовая таблетка */
button, .btn {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 0.15s ease;
}
button:hover, .btn:hover { border-color: rgba(255,255,255,0.35); opacity: 1; }
button[type=submit] { border-color: rgba(255,255,255,0.25); }
button:disabled { opacity: 0.45; cursor: progress; }
.btn.ghost { color: var(--ash); }
.btn.ghost:hover { color: var(--white); border-color: var(--line-strong); }
.btn.small { font-size: 13px; padding: 11px 20px; min-height: 44px; }

/* ---------- шкала длительности ---------- */
.ruler-block { margin-bottom: 22px; }
.ruler-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.timecode {
  font-family: var(--mono); font-size: 40px; font-weight: 400;
  letter-spacing: -0.04em; color: var(--white); line-height: 1;
}
.timecode small { font-size: 12px; color: var(--ash); letter-spacing: 0.08em; }

.ruler {
  position: relative; margin-top: 16px; height: 68px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--void); overflow: hidden;
}
.ruler .ticks { position: absolute; inset: 0; display: flex; }
.ruler .tick { flex: 1 0 auto; border-right: 1px solid rgba(255,255,255,0.05); position: relative; }
.ruler .tick.major { border-right-color: rgba(255,255,255,0.14); }
.ruler .tick.major::after {
  content: attr(data-s); position: absolute; bottom: 5px; left: 5px;
  font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.28);
}
.ruler .locked {
  position: absolute; top: 0; bottom: 0; right: 0;
  background: repeating-linear-gradient(135deg,
      rgba(255,107,91,0.12) 0 6px, transparent 6px 12px);
  border-left: 1px dashed rgba(255,107,91,0.5);
}
.ruler .locked b {
  position: absolute; top: 8px; left: 10px;
  font-size: 10px; letter-spacing: 0.1em; color: var(--danger);
  text-transform: uppercase; font-weight: 600;
}
.ruler .fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--iris-soft); border-right: 2px solid var(--iris);
}
.ruler input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; min-height: 0; border: 0;
}
.ruler-legend {
  display: flex; justify-content: space-between; margin-top: 9px;
  font-size: 13px; color: var(--ash); font-weight: 300;
}
.ruler-legend .est b { color: var(--white); font-weight: 500; }
.ruler-legend .est.over b { color: var(--danger); }

/* ---------- загрузка ---------- */
.drop {
  display: block; border: 1px dashed var(--line-strong);
  border-radius: var(--r); padding: 34px 18px; text-align: center;
  color: var(--ash); cursor: pointer; background: var(--void);
  font-weight: 300;
}
.drop b { color: var(--white); font-weight: 500; font-size: 17px; }
.drop.hot { border-color: var(--iris); background: var(--iris-soft); }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 16px; }
.thumb {
  position: relative; aspect-ratio: 9/16; border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--line);
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-clip { border-color: var(--iris); }
.thumb .idx {
  position: absolute; top: 6px; left: 6px;
  font-family: var(--mono); font-size: 10px; padding: 2px 6px;
  background: rgba(0,0,0,0.75); border-radius: var(--pill); color: var(--saffron);
}
.thumb button {
  position: absolute; bottom: 6px; right: 6px;
  padding: 0; width: 34px; height: 34px; min-height: 34px; font-size: 18px;
  border-radius: 50%; background: rgba(0,0,0,0.8); color: var(--danger);
  border: 1px solid rgba(255,107,91,0.45);
}

/* ---------- кадрирование ---------- */
.cropwrap {
  position: relative; display: inline-block; max-width: 100%;
  touch-action: none; user-select: none; border-radius: var(--r-sm);
  overflow: hidden; background: #000;
}
.cropwrap img { display: block; max-width: 100%; height: auto; opacity: 0.45; }
.crop-empty {
  padding: 40px 16px; text-align: center; color: var(--ash);
  font-size: 14px; font-weight: 300; border: 1px dashed var(--line);
  border-radius: var(--r-sm);
}
#crop-box .cropwrap { width: 100%; margin-bottom: 12px; }
.cropbox {
  position: absolute; box-sizing: border-box;
  border: 2px solid var(--iris);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.65);
  pointer-events: none; border-radius: 4px;
}
.cropbox::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, transparent 33%, rgba(255,255,255,.16) 33% 34%, transparent 34% 66%, rgba(255,255,255,.16) 66% 67%, transparent 67%),
    linear-gradient(to bottom, transparent 33%, rgba(255,255,255,.16) 33% 34%, transparent 34% 66%, rgba(255,255,255,.16) 66% 67%, transparent 67%);
}
input[type="range"].plain {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 38px; background: transparent; padding: 0;
  min-height: 38px; border: 0;
}
input[type="range"].plain:focus { box-shadow: none; }
input[type="range"].plain::-webkit-slider-runnable-track {
  height: 4px; background: var(--surface-2); border-radius: var(--pill);
}
input[type="range"].plain::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px;
  background: var(--iris); border-radius: 50%; border: 0;
}
input[type="range"].plain::-moz-range-track {
  height: 4px; background: var(--surface-2); border-radius: var(--pill);
}
input[type="range"].plain::-moz-range-thumb {
  width: 30px; height: 30px; background: var(--iris); border-radius: 50%; border: 0;
}

/* ---------- задачи ---------- */
.joblist { border-top: 1px solid var(--line); }
.jobrow {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 2px; border-bottom: 1px solid var(--line);
}
.jobrow .t { flex: 1; min-width: 0; }
.jobrow .t b {
  display: block; font-weight: 400; font-size: 17px; letter-spacing: -0.015em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jobrow .t b a { color: var(--white); }
.jobrow .t small { color: var(--ash); font-size: 13px; font-weight: 300; }

.status {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); color: var(--ash); white-space: nowrap;
}
.status.done { color: var(--verdant); border-color: rgba(21,132,110,0.5); }
.status.running { color: var(--iris); border-color: rgba(128,82,255,0.5); }
.status.failed { color: var(--danger); border-color: rgba(255,107,91,0.5); }

.bar { height: 4px; background: var(--surface-2); border-radius: var(--pill); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--signal); transition: width 0.4s ease; }
.bar.idle i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

.alert {
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--iris);
  background: var(--void);
  padding: 16px 18px; border-radius: var(--r-sm);
  margin-bottom: 18px; font-size: 15px; font-weight: 300; line-height: 1.55;
}
.alert.bad { border-left-color: var(--danger); }
.alert.good { border-left-color: var(--verdant); }
.alert code { font-family: var(--mono); font-size: 13px; color: var(--saffron); }
.alert b { font-weight: 500; }

video { width: 100%; border-radius: var(--r-sm); background: #000; display: block; }
.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; font-weight: 300; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
th {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ash); font-weight: 600;
}
td code { font-family: var(--mono); font-size: 12px; color: var(--mist); }

.cues { max-height: 360px; overflow: auto; font-family: var(--mono); font-size: 13px; }
.cues div { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cues span { color: var(--saffron); flex: 0 0 96px; }

/* ---------- вход ---------- */
.center { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.center .card { width: 100%; max-width: 440px; padding: 34px; }
.center .brand { justify-content: flex-start; font-size: 22px; }

/* Экран входа — первое, что видит человек: даём воздуха и один акцент */
.center { background: radial-gradient(120% 80% at 50% -10%, #16101f 0%, #000 60%); }
.tagline {
  color: var(--mist); font-size: 15px; font-weight: 300;
  margin: 10px 0 0; line-height: 1.5;
}

/* ---------- телефон ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .shell { flex-direction: column; }
  .rail {
    width: auto; flex: none; height: auto; position: sticky; top: 0; z-index: 20;
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 14px 16px 10px;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
  }
  .rail .eyebrow { display: none; }
  .brand { margin-bottom: 12px; }
  .nav {
    flex-direction: row; overflow-x: auto; gap: 8px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex-direction: row; align-items: center; gap: 7px;
    padding: 9px 15px; font-size: 15px; white-space: nowrap;
    border: 1px solid var(--line); border-radius: var(--pill);
  }
  .nav a span.n { display: none; }
  .nav a.active { border-color: rgba(128,82,255,0.55); }
  .rail-foot { margin-top: 12px; padding-top: 12px; font-size: 12px; }

  .main { padding: 24px 16px 80px; }
  .card { padding: 18px; border-radius: 18px; }
  .row > * { flex: 1 1 100%; }
  .seg { flex-direction: column; }
  .seg label { border-right: 0; border-bottom: 1px solid var(--line); }
  .seg label:last-child { border-bottom: 0; }
  button, .btn { width: 100%; }
  .files .btn, .jobrow .btn, .row .btn.small { width: auto; }
  video { max-height: 68vh; object-fit: contain; }
  .timecode { font-size: 32px; }
  .page-head p { font-size: 16px; }

  /* таблицы в карточки, иначе уезжают за экран */
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  table tr {
    border: 1px solid var(--line); border-radius: 18px;
    padding: 14px; margin-bottom: 12px; background: var(--surface-2);
  }
  table td { border: 0; padding: 7px 0; }
  table td::before {
    content: attr(data-label); display: block;
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ash); margin-bottom: 4px; font-weight: 600;
  }
  table td form { flex-wrap: wrap; }
  table td select, table td input[type="number"] { width: auto; flex: 1 1 100px; }
  .jobrow { flex-wrap: wrap; }
  .jobrow .t { flex: 1 1 60%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ---------- дорожка редактора ---------- */
.tl {
  position: relative; width: 100%; height: 132px;
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  overflow: hidden; touch-action: none; user-select: none; background: #000;
  cursor: crosshair;
}
.tl-thumbs { display: flex; height: 62px; overflow: hidden; }
.tl-thumbs img { height: 62px; width: auto; flex: 1 1 0; object-fit: cover; min-width: 0; opacity: .8; }
.tl-wave { display: block; width: 100%; height: 46px; background: #000; }
.tl-ops { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; }
.tl-op {
  position: absolute; top: 0; height: 22px; min-width: 8px;
  border: 1px solid rgba(146,129,247,.6); border-radius: 4px;
  background: rgba(146,129,247,.18); color: var(--iris-glow);
  font-family: var(--mono); font-size: 10px; line-height: 20px;
  padding: 0 4px; overflow: hidden; white-space: nowrap; cursor: pointer;
}
.tl-op:hover { background: rgba(146,129,247,.35); }
.tl-op { cursor: grab; touch-action: none; }
.tl-op:active { cursor: grabbing; }
.tl-h {
  position: absolute; top: 0; bottom: 0; width: 9px;
  cursor: ew-resize; touch-action: none;
}
.tl-h.l { left: -2px; border-left: 2px solid rgba(146,129,247,.9); }
.tl-h.r { right: -2px; border-right: 2px solid rgba(146,129,247,.9); }
.tl-sel {
  position: absolute; top: 0; bottom: 24px;
  background: rgba(59,158,255,.16);
  border-left: 1px solid var(--signal); border-right: 1px solid var(--signal);
  pointer-events: none;
}
.tl-head {
  position: absolute; top: 0; bottom: 0; width: 2px; left: 0;
  background: var(--white); pointer-events: none;
}


/* ---------- предпросмотр эффектов ---------- */
.pv-wrap {
  position: relative; overflow: hidden; border-radius: var(--r-sm);
  background: #000; max-height: 44vh;
}
.pv-wrap video { display: block; width: 100%; max-height: 44vh; transition: filter .08s linear; }
.pv-vig {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 22vh 6vh rgba(0,0,0,.85);
  transition: opacity .15s linear;
}
.pv-text {
  position: absolute; top: 6%; left: 0; right: 0; text-align: center;
  font-weight: 600; font-size: clamp(16px, 3.4vw, 30px);
  color: #fff; text-shadow: 0 0 6px #000, 0 2px 10px #000;
  pointer-events: none; text-transform: uppercase; letter-spacing: -0.01em;
  padding: 0 6%;
}
.pv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.12); }
.pv-bar i { display: block; height: 100%; background: var(--amber); }
.pv-note {
  position: absolute; left: 8px; bottom: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--iris-glow);
  background: rgba(0,0,0,.72); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 3px 7px; pointer-events: none;
}


/* ================= приветственная страница ================= */
body.lp { overflow-x: hidden; }

.site-head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(0,0,0,.82); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.head-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); }
.head-nav > a:not(.btn) { color: var(--ash); font-size: 14px; }
.head-nav > a:not(.btn):hover { color: var(--white); }
.head-nav .btn { width: auto; }
@media (max-width: 640px) { .head-nav > a:not(.btn) { display: none; } }

.lp-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; max-width: 1200px; margin: 0 auto;
  padding: clamp(48px, 9vw, 104px) clamp(16px, 5vw, 48px);
  min-height: 78vh;
}
.lp-copy h1 {
  font-size: clamp(38px, 6.4vw, 77px); font-weight: 400; line-height: 1.02;
  letter-spacing: -0.03em; margin: 0 0 20px;
}
.lp-copy .lead {
  font-size: 18px; color: var(--ash); line-height: 1.6; max-width: 52ch;
  margin: 0 0 32px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline); border-radius: var(--pill);
  padding: 6px 14px; font-size: 13px; color: var(--bone); margin-bottom: 26px;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* --- объёмный знак воспроизведения --- */
.lp-stage {
  position: relative; display: grid; place-items: center;
  min-height: 420px; perspective: 1400px;
}
.orb {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    rgba(146,129,247,.30), rgba(146,129,247,.06) 45%, transparent 70%);
  filter: blur(28px); animation: orbPulse 7s ease-in-out infinite;
}
.float { position: relative; animation: floatY 6s ease-in-out infinite; }
.yt3d {
  position: relative; width: 208px; height: 148px;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-22deg);
  animation: swing 9s ease-in-out infinite;
}
/* боковая грань — она и создаёт объём */
.yt3d-side {
  position: absolute; inset: 0; border-radius: 34px;
  background: linear-gradient(160deg, #8f1414, #5d0b0b);
  transform: translateZ(-26px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
}
.yt3d-face {
  position: absolute; inset: 0; border-radius: 34px; display: grid;
  place-items: center; transform: translateZ(26px);
  background:
    radial-gradient(120% 90% at 26% 16%, #ff6b6b 0%, #f0272a 42%, #c9101a 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 36px 70px rgba(240,39,42,.30),
    0 0 90px rgba(240,39,42,.22);
}
.yt3d-play {
  width: 0; height: 0; border-style: solid;
  border-width: 26px 0 26px 43px;
  border-color: transparent transparent transparent #fff;
  margin-left: 9px;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.32));
}
/* блик, ползущий по поверхности */
.yt3d-shine {
  position: absolute; inset: 0; border-radius: 34px; overflow: hidden;
  transform: translateZ(27px); pointer-events: none;
}
.yt3d-shine::after {
  content: ""; position: absolute; top: -60%; left: -40%;
  width: 46%; height: 220%; transform: rotate(22deg);
  background: linear-gradient(90deg, transparent,
    rgba(255,255,255,.42), transparent);
  animation: shine 6s ease-in-out infinite;
}
.yt3d-shadow {
  position: absolute; left: 50%; bottom: -74px; width: 190px; height: 26px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.62), transparent 70%);
  filter: blur(9px); animation: shadowPulse 6s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(-12px); } 50% { transform: translateY(14px); } }
@keyframes swing {
  0%,100% { transform: rotateX(14deg) rotateY(-22deg); }
  50% { transform: rotateX(8deg) rotateY(16deg); }
}
@keyframes shine { 0%,62% { left: -40%; } 88%,100% { left: 130%; } }
@keyframes orbPulse { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes shadowPulse { 0%,100% { opacity: .55; width: 200px; } 50% { opacity: .32; width: 168px; } }

/* появление секций при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.on { opacity: 1; transform: none; }

.lp-sec {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) clamp(16px, 5vw, 48px);
}
.lp-sec h2 {
  font-size: clamp(30px, 5vw, 56px); font-weight: 400; line-height: 1.1;
  letter-spacing: -0.05em; margin: 0 0 32px;
}
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.feature-grid .card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-grid .card p { color: var(--ash); font-size: 15px; margin: 0; line-height: 1.55; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { border: 1px solid var(--hairline); border-radius: var(--r); padding: 26px; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--iris); }
.step h3 { font-size: 20px; margin: 10px 0 8px; }
.step p { color: var(--ash); font-size: 15px; margin: 0; line-height: 1.55; }

.lp-cta { text-align: center; border-top: 1px solid var(--hairline); }
.lp-cta .lead { color: var(--ash); font-size: 17px; }
.lp-cta .btn { width: auto; padding: 16px 34px; }

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 56px clamp(16px, 5vw, 48px) 28px;
  max-width: 1200px; margin: 0 auto;
}
.foot-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin-bottom: 40px;
}
.foot-grid h4 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ash); font-weight: 600; margin: 0 0 12px;
}
.foot-grid a, .foot-grid .card-note {
  display: block; color: var(--smoke); font-size: 14px; margin-bottom: 8px;
}
.foot-grid a:hover { color: var(--white); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline); padding-top: 20px;
  color: var(--charcoal); font-size: 13px;
}
.foot-bottom .mono { font-family: var(--mono); }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 24px; min-height: auto; }
  .lp-stage { min-height: 300px; order: -1; }
  .yt3d { width: 164px; height: 116px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .yt3d, .orb, .yt3d-shine::after, .yt3d-shadow { animation: none; }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- тарифы ---------- */
.plan-grid {
  display: grid; gap: 16px; margin-bottom: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}
.plan {
  position: relative; border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 28px 24px; background: var(--void);
}
.plan.best {
  border-color: rgba(146,129,247,.55);
  background: linear-gradient(180deg, rgba(146,129,247,.06), transparent 40%);
}
.plan.mine { border-color: rgba(59,158,255,.5); }
.plan-flag {
  position: absolute; top: -11px; left: 24px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--iris-glow); background: var(--void);
  border: 1px solid rgba(146,129,247,.55); border-radius: var(--pill);
  padding: 3px 10px;
}
.plan h3 { font-size: 24px; margin: 0 0 4px; }
.plan-about { color: var(--ash); font-size: 14px; margin: 0 0 18px; }
.plan-price {
  font-family: var(--mono); font-size: 40px; margin: 0 0 20px; color: var(--white);
}
.plan-price span { font-size: 14px; color: var(--ash); font-family: var(--body); }
.plan .btn { width: 100%; margin-bottom: 20px; }
.plan-list { list-style: none; margin: 0 0 20px; padding: 0; }
.plan-list li {
  position: relative; padding-left: 24px; margin-bottom: 9px;
  font-size: 14.5px; color: var(--bone); line-height: 1.45;
}
.plan-list li::before {
  position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 13px;
}
.plan-list li.yes::before { content: "✓"; color: var(--green); }
.plan-list li.no { color: var(--charcoal); }
.plan-list li.no::before { content: "—"; color: var(--charcoal); }
.plan-spec { width: 100%; font-size: 13.5px; }
.plan-spec td { padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.plan-spec td:last-child { text-align: right; font-family: var(--mono); color: var(--white); }
@media (max-width: 820px) {
  .plan-spec, .plan-spec tr, .plan-spec td { display: revert; }
  .plan-spec { display: table; }
  .plan-spec tr { display: table-row; border: 0; padding: 0; margin: 0; background: none; }
  .plan-spec td { display: table-cell; }
  .plan-spec td::before { content: none; }
}


/* ---------- карточки режимов ---------- */
.mode-grid {
  display: grid; gap: 14px; margin-bottom: 28px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.mode-card {
  display: block; border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 22px; color: var(--white); transition: border-color .15s ease;
}
.mode-card:hover { border-color: rgba(146,129,247,.5); color: var(--white); }
.mode-card .mode-n { font-family: var(--mono); font-size: 12px; color: var(--iris); }
.mode-card h3 { font-size: 19px; margin: 8px 0 8px; }
.mode-card p { color: var(--ash); font-size: 14.5px; line-height: 1.5; margin: 0; }

/* ---------- красивый выбор файла ----------
   Родная кнопка браузера выглядит чужеродно и не поддаётся оформлению.
   Прячем её и рисуем свою зону: она же принимает перетаскивание. */
input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  padding: 0; min-height: 0; border: 0;
}
.filebox {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 1px dashed var(--hairline); border-radius: var(--r);
  padding: 16px 18px; background: var(--void);
  transition: border-color .15s ease, background .15s ease;
}
.filebox:hover, .filebox.over { border-color: rgba(146,129,247,.6); background: rgba(146,129,247,.04); }
.filebox.filled { border-style: solid; border-color: rgba(58,211,137,.45); }
.filebox .fb-ic {
  flex: 0 0 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--hairline); display: grid; place-items: center;
  color: var(--iris); font-family: var(--mono); font-size: 17px;
}
.filebox.filled .fb-ic { color: var(--green); border-color: rgba(58,211,137,.4); }
.filebox .fb-t { min-width: 0; }
.filebox .fb-t b { display: block; font-weight: 500; font-size: 15px; }
.filebox .fb-t small {
  display: block; color: var(--ash); font-size: 13px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* .drop переиспользуем тот же вид */
.drop { border-style: dashed; }
.drop.hot { border-color: rgba(58,211,137,.5); background: rgba(58,211,137,.04); }


/* подвал внутри рабочей части */
.app-foot {
  border-top: 1px solid var(--hairline);
  margin-top: 56px; padding: 22px 0 8px;
}
.app-foot .foot-bottom { border: 0; padding: 0; }
.app-foot a { color: var(--smoke); }
.app-foot a:hover { color: var(--white); }


/* мягкое появление карточек в рабочей части */
.card, .mode-card, .plan, .jobrow { animation: cardIn .38s ease both; }
.mode-card:nth-child(2), .card:nth-child(2) { animation-delay: .05s; }
.mode-card:nth-child(3), .card:nth-child(3) { animation-delay: .1s; }
.mode-card:nth-child(4) { animation-delay: .15s; }
.mode-card:nth-child(5) { animation-delay: .2s; }
.mode-card:nth-child(6) { animation-delay: .25s; }
.mode-card:nth-child(7) { animation-delay: .3s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mode-card { transition: border-color .18s ease, transform .18s ease; }
.mode-card:hover { transform: translateY(-2px); }
button, .btn { transition: border-color .15s ease, background .15s ease, transform .12s ease; }
button:active, .btn:active { transform: scale(.985); }
.bar i { transition: width .4s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .card, .mode-card, .plan, .jobrow { animation: none; }
}
