/* Оформление снято с живого CSS 21st.dev, vercel, stripe, framer, raycast:
   Inter + моноширинный акцент, радиусы 6-12, шаг 4/8/12/16/24/32, мягкие тени */
:root {
  --bg: #0b0b0c;
  --bg2: #101012;
  --surface: #151517;
  --surface2: #1b1b1e;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #f4f4f5;
  --mid: #a1a1a6;
  --dim: #6f6f76;
  --accent: #00bb7f;
  --accent-soft: rgba(0, 187, 127, .14);
  --violet: #533afd;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.006em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.dim { color: var(--dim); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--accent); color: #04140e; padding: 8px 14px; border-radius: var(--r-sm); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark {
  width: 15px; height: 15px; border-radius: 4px;
  background: linear-gradient(140deg, var(--accent), #0a7a55);
  box-shadow: 0 0 0 3px rgba(0, 187, 127, .12);
}
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.nav a {
  padding: 6px 10px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--mid); white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface2); }
.nav a.on { color: var(--accent); background: var(--accent-soft); }

.burger { display: none; width: 38px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-sm); background: none; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { display: block; width: 15px; height: 1.5px; background: var(--text); transition: transform .2s; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  background: var(--accent); color: #04150e;
  border: 1px solid transparent; border-radius: var(--r);
  font-weight: 650; font-size: 15px; letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: filter .15s, transform .12s, box-shadow .2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 187, 127, .8);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-sm); box-shadow: none; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface2); filter: none; }

/* ---------- герой ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; left: 50%; top: -320px; width: 900px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 187, 127, .16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 50% 0%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 0%, #000, transparent 78%);
  opacity: .5; pointer-events: none;
}
.hero .wrap { position: relative; }


.kicker { color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.05; letter-spacing: -.035em; font-weight: 800;
  max-width: 16ch;
}
.hero h1 { max-width: 18ch; }
.lede { color: var(--mid); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; max-width: 62ch; margin-top: 20px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.facts { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.fact b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.fact span { color: var(--dim); font-size: 13.5px; }

/* ---------- секции ---------- */
.sec { padding: clamp(52px, 8vw, 96px) 0; }
.sec-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(25px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.03em; font-weight: 750; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.015em; font-weight: 650; }
.sec-lede { color: var(--mid); margin-top: 16px; max-width: 68ch; font-size: 16.5px; }
.sec-lede + .sec-lede { margin-top: 12px; }

/* ---------- лестница ---------- */
.ladder { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.rung {
  display: grid; grid-template-columns: 46px 1fr auto 24px;
  align-items: center; gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.rung:last-child { border-bottom: none; }
.rung:hover { background: var(--surface2); }
.rung-step { color: var(--dim); }
.rung:hover .rung-step { color: var(--accent); }
.rung-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rung-title { font-weight: 650; letter-spacing: -.015em; }
.rung-promise { color: var(--mid); font-size: 14px; line-height: 1.5; }
.rung-price { font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap; }
.rung-arrow { color: var(--dim); transition: transform .18s, color .18s; }
.rung:hover .rung-arrow { color: var(--accent); transform: translateX(3px); }

/* ---------- карточки ---------- */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; align-items: start; }
.track h3 { color: var(--mid); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.cards { display: grid; gap: 12px; }
.cards.one { margin-top: 22px; }
.card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 20px 22px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .16s, transform .16s, background .16s;
}
.card:hover { border-color: var(--line2); background: var(--surface2); transform: translateY(-2px); }
.card-kicker { color: var(--accent); }
.card-title { font-weight: 650; font-size: 17px; letter-spacing: -.02em; line-height: 1.3; }
.card-promise { color: var(--mid); font-size: 14px; line-height: 1.55; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.card-arrow { color: var(--dim); transition: transform .18s; }
.card:hover .card-arrow { color: var(--accent); transform: translateX(3px); }

/* ---------- списки ---------- */
.ticks { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--mid); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.ticks.minus li::before { background: var(--dim); height: 2px; top: 12px; width: 11px; left: 2px; }

.steps { margin-top: 24px; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 14px 18px 14px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--mid); }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
}

/* ---------- плитки ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 34px; }
.tile { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tile p { color: var(--mid); font-size: 14.5px; margin-top: 8px; line-height: 1.6; }

/* ---------- таблица ---------- */
.tbl-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--mid); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td:first-child { color: var(--text); font-family: var(--mono); font-size: 13px; }

/* ---------- страница продукта ---------- */
.phero { padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); position: relative; }
.phero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 340px;
  background: radial-gradient(60% 100% at 30% 0%, rgba(0, 187, 127, .1), transparent 70%);
  pointer-events: none;
}
.phero .wrap { position: relative; }
.back { display: inline-block; color: var(--dim); margin-bottom: 26px; transition: color .15s; }
.back:hover { color: var(--accent); }
.promise { font-size: clamp(17px, 2vw, 21px); line-height: 1.45; margin-top: 20px; letter-spacing: -.02em; }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.price-n { font-size: 30px; font-weight: 750; letter-spacing: -.03em; }
.price-note { color: var(--dim); font-family: var(--mono); font-size: 12.5px; }

.note { margin-top: 34px; padding: 22px 24px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; }
.note p { color: var(--mid); margin-top: 10px; font-size: 15px; }

/* ---------- вопросы ---------- */
.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
.qa summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-weight: 550; letter-spacing: -.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--dim); font-size: 18px; transition: transform .2s, color .2s; }
.qa[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.qa p { color: var(--mid); padding: 0 40px 18px 0; font-size: 15px; }

/* ---------- полоса призыва ---------- */
.cta-band { padding: clamp(56px, 8vw, 92px) 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(70% 120% at 50% 0%, rgba(0, 187, 127, .1), transparent 70%); }
.cta-band .sec-lede, .cta-band .price { margin-left: auto; margin-right: auto; }
.cta-band .price { justify-content: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto; }
.cta-band .kicker { margin-bottom: 14px; }
.cta-band .btn { margin-top: 26px; }

/* ---------- документы ---------- */
.doc h1 { font-size: clamp(28px, 4vw, 40px); max-width: none; }
.doc h2 { font-size: 20px; margin-top: 34px; }
.doc p, .doc li { color: var(--mid); margin-top: 12px; }
.doc ul { padding-left: 20px; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 52px 0 44px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 4px; }
.foot-col a { color: var(--mid); font-size: 14px; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-col .logo { color: var(--text); font-size: 16px; }
.foot-col p { font-size: 13.5px; }

/* ---------- мобильные ---------- */
@media (max-width: 900px) {
  .tracks { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top-in { gap: 12px; }
  .burger { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 60px;
    flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 15px; }
  .top-in .btn-sm { margin-left: auto; }
  .rung { grid-template-columns: 34px 1fr; gap: 12px; padding: 16px; }
  .rung-price { grid-column: 2; font-size: 12.5px; color: var(--accent); }
  .rung-arrow { display: none; }
  .facts { gap: 24px; }
  .fact { min-width: 120px; }
}

/* карточка-иллюстрация справа: путь из четырёх шагов */
.hero-art { display: none; }
@media (min-width: 1060px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { max-width: var(--maxw); }
  .hero-art {
    display: block; position: absolute; right: max(24px, calc(50vw - 560px)); top: 50%;
    transform: translateY(-46%); width: 360px; z-index: 1;
  }
  .art-card {
    background: linear-gradient(180deg, var(--surface2), var(--surface));
    border: 1px solid var(--line2); border-radius: var(--r-lg);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 187, 127, .06);
    overflow: hidden;
  }
  .art-head {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px; border-bottom: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase;
  }
  .art-head b { margin-left: 8px; font-weight: 400; }
  .art-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
  .art-row {
    display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px;
    padding: 15px 16px; border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .art-row:last-child { border-bottom: none; }
  .art-n { font-family: var(--mono); font-size: 11px; color: var(--dim); }
  .art-t { color: var(--mid); }
  .art-ok { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
  .art-live { background: rgba(0, 187, 127, .05); }
  .art-live .art-t { color: var(--text); }
  .art-live .art-ok { color: #f99c00; }
  .hero h1, .hero .lede { max-width: 15ch; }
  .hero .lede { max-width: 46ch; }
}
@media (min-width: 1240px) {
  .hero-art { width: 400px; }
}

/* мелкая юридическая строка: самозанятость оформлена на другого человека */
.legal {
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between;
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; line-height: 1.5;
  color: color-mix(in srgb, var(--dim) 72%, transparent);
}
.legal span:empty { display: none; }
@media (max-width: 560px) { .legal { font-size: 10px; } }

/* ---------- секция автора ---------- */
.author {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(28px, 5vw, 60px); align-items: center;
}
.author-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  background: var(--surface2);
}
.author-photo img { display: block; width: 100%; height: auto; }
.author-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 12, .55));
  pointer-events: none;
}
.author-badge {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: #fff; padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
}
.author-body h2 { margin-top: 8px; max-width: 18ch; }
.proof-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 28px;
}
.pf {
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); display: flex; flex-direction: column; gap: 3px;
}
.pf b { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.pf b::before { content: "▹ "; color: var(--accent); }
.pf span { font-size: 13px; color: var(--mid); line-height: 1.45; }
.author-quote {
  margin-top: 26px; padding: 4px 0 4px 18px;
  border-left: 2px solid var(--accent);
  font-size: 16.5px; line-height: 1.55; color: var(--text);
  font-style: normal;
}
@media (max-width: 760px) {
  .author { grid-template-columns: 1fr; }
  .author-photo { max-width: 320px; }
  .proof-grid { grid-template-columns: 1fr; }
}
