:root {
  --paper: #f4f3ee;
  --card: #ffffff;
  --ink: #121212;
  --muted: #5f5e58;
  --line: #e2e0d7;
  --lime: #c8f135;
  --lime-deep: #4c6400;
  --danger: #c2341d;
  --warn: #8a5200;
  --radius: 16px;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(760px, 100% - 40px);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  max-width: 22ch;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.lead {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.lead--dark {
  color: rgb(255 255 255 / 0.7);
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--lime {
  color: var(--lime);
}

.micro {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── Кнопки ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.btn--accent {
  background: var(--lime);
  color: var(--ink);
}

.btn--accent:hover {
  background: #d6f860;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #2c2c2c;
}

.btn--light {
  background: var(--card);
  border-color: var(--line);
}

.btn--light:hover {
  border-color: var(--ink);
}

.btn--outline-light {
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
}

.btn--danger {
  background: #fff;
  border-color: rgb(194 52 29 / 0.35);
  color: var(--danger);
}

.btn--ghost {
  color: rgb(255 255 255 / 0.7);
  border-color: rgb(255 255 255 / 0.2);
  background: transparent;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta-row--center {
  justify-content: center;
}

/* ── Шапка ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(18 18 18 / 0.94);
  backdrop-filter: blur(10px);
  color: #fff;
}

.nav__row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
}

.logo span {
  color: var(--lime);
}

.logo--dark {
  color: var(--ink);
}

.logo--dark span {
  color: var(--lime-deep);
}

.nav__links {
  display: flex;
  gap: 24px;
  margin-right: auto;
  font-size: 0.95rem;
}

.nav__links a {
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
}

.nav__links a:hover {
  color: #fff;
}

/* ── Первый экран ───────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.scheme {
  display: grid;
  gap: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.scheme__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.scheme__row--sys {
  grid-template-columns: repeat(5, 1fr);
}

.chip,
.sys {
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
  color: var(--muted);
}

.chip b {
  color: var(--ink);
  font-weight: 650;
}

.chip--dashed {
  border-style: dashed;
  border-color: var(--ink);
}

.chip--muted {
  background: #e8e6dc;
}

.sys {
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
}

.scheme__arrows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 22px;
}

.scheme__arrows i {
  justify-self: center;
  width: 2px;
  height: 100%;
  background: var(--ink);
  opacity: 0.35;
}

.scheme__check {
  padding: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--lime);
  font-weight: 700;
  text-align: center;
}

.scheme__core {
  display: grid;
  gap: 4px;
  padding: 20px 12px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.scheme__core strong {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.scheme__core span {
  font-size: 0.85rem;
  color: var(--lime);
}

/* ── Секции ─────────────────────────────────────────────────────────── */

.section {
  padding: 88px 0;
}

.section--tint {
  background: #ebe9e0;
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.grid3,
.grid2 {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.grid3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid2 {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.case {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.card p,
.case p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.case__role {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 600;
}

.case .case__ask {
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
}

/* ── Демо ───────────────────────────────────────────────────────────── */

.demo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 40px;
}

.demo__pane {
  display: grid;
  gap: 12px;
  align-content: start;
}

.term {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  background: #1c1c1c;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.5);
}

.term__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.2);
}

.term__bar span {
  margin-left: 8px;
}

.term pre {
  min-height: 330px;
  margin: 0;
  padding: 18px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-wrap;
  color: rgb(255 255 255 / 0.82);
}

.t-user {
  color: #fff;
  font-weight: 600;
}

.t-dim {
  color: rgb(255 255 255 / 0.45);
}

.t-ok {
  color: var(--lime);
}

.t-wait {
  color: #ffc56b;
}

.t-bad {
  color: #ff8f7a;
}

.approval {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.approval.is-active {
  opacity: 1;
}

.approval__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.approval__head code {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
}

.approval__meta {
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
}

.approval__preview {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgb(200 241 53 / 0.3);
  font-size: 0.95rem;
}

.approval__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.approval__done {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.tag {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag--warn {
  background: rgb(138 82 0 / 0.12);
  color: var(--warn);
}

.tag--ok {
  background: rgb(200 241 53 / 0.5);
  color: var(--lime-deep);
}

.tag--bad {
  background: rgb(194 52 29 / 0.12);
  color: var(--danger);
}

.tag--neutral {
  background: rgb(18 18 18 / 0.07);
  color: var(--muted);
}

.journal {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}

.journal__title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.journal ul {
  min-height: 132px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.journal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
  animation: row-in 0.25s ease;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* ── Шаги ───────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.steps__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 700;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.code {
  margin: 16px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
}

.code--dark {
  margin: 0;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: #1c1c1c;
  font-size: 0.88rem;
}

/* ── Интеграции ─────────────────────────────────────────────────────── */

.integrations {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-top: 36px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 8px 15px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 550;
}

.pills--soon li {
  border: 1px dashed rgb(18 18 18 / 0.4);
  background: transparent;
  color: var(--ink);
}

/* ── Запуск ─────────────────────────────────────────────────────────── */

.start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.start__code {
  min-width: 0;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: rgb(255 255 255 / 0.8);
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}

.checks--dark {
  color: var(--ink);
  font-size: 1rem;
}

.checks--dark li::before {
  color: var(--lime-deep);
}

/* ── Тарифы ─────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.plan--main {
  border: 2px solid var(--ink);
}

.plan__price {
  margin-top: 10px;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan__for {
  color: var(--muted);
}

.plan .checks {
  flex: 1;
  margin-bottom: 28px;
}

.plan .btn {
  align-self: flex-start;
}

/* ── Вопросы ────────────────────────────────────────────────────────── */

details {
  border-bottom: 1px solid rgb(18 18 18 / 0.15);
}

details:first-of-type {
  margin-top: 28px;
  border-top: 1px solid rgb(18 18 18 / 0.15);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
}

details[open] summary::after {
  content: "−";
}

details > p {
  padding-bottom: 22px;
  color: var(--muted);
}

/* ── Финал и подвал ─────────────────────────────────────────────────── */

.final {
  background: var(--lime);
  text-align: center;
}

.final h2 {
  max-width: none;
}

.final .lead {
  margin-inline: auto;
  color: rgb(18 18 18 / 0.75);
}

.footer {
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── Адаптив ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero__grid,
  .demo,
  .start,
  .integrations,
  .steps,
  .grid3,
  .grid2,
  .plans {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .nav__links {
    display: none;
  }

  .nav__row {
    justify-content: space-between;
  }

  .hero__grid,
  .start {
    gap: 36px;
  }

  .term pre {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .scheme {
    padding: 14px;
  }

  .chip,
  .sys {
    font-size: 0.68rem;
    padding: 9px 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    /* biome-ignore lint/complexity/noImportantStyles: отключение движения должно перекрывать любые правила */
    animation: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: отключение движения должно перекрывать любые правила */
    transition: none !important;
  }
}
