/* Лендинг AI Panel: один файл стилей, без внешних зависимостей.
   Палитра совпадает с панелью (тот же зелёный акцент), шрифты — системные:
   страница должна открываться быстро и без запросов к сторонним CDN. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f5;
  --ink: #14180f;
  --ink-soft: #4a5044;
  --ink-faint: #6b7163;
  --line: #e2e5dd;
  --accent: #b9f227;
  --accent-ink: #2d3a10;
  --accent-soft: #eefbd0;
  --code-bg: #12160e;
  --code-ink: #e8f0dc;
  --code-key: #b9f227;
  --code-str: #cfe6a6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 24 15 / 6%), 0 12px 32px -18px rgb(20 24 15 / 24%);
  --sans: "Roboto", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  --heading: "Montserrat", "Roboto", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f120c;
    --bg-alt: #14180f;
    --ink: #f2f5ec;
    --ink-soft: #c3c9b9;
    --ink-faint: #98a08c;
    --line: #262c20;
    --accent-soft: #24300f;
    --accent-ink: #0f120c;
    --code-bg: #0a0d07;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 18px 40px -22px rgb(0 0 0 / 70%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 10px 0;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Заголовок сайта */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-mark.small {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.brand-mark.small svg {
  width: 14px;
  height: 14px;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Кнопки */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-solid {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.button-ghost {
  border-color: var(--line);
  background: var(--bg);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--ink-faint);
}

.head-cta {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

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

.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(
      1000px 460px at 78% -12%,
      color-mix(in oklab, var(--accent) 26%, transparent),
      transparent 62%
    ),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent);
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
}

.lead {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 38px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--ink-faint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 15px;
}

/* Панель с кодом */

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.panel-title {
  font-weight: 600;
}

.panel-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.code {
  margin: 0;
  padding: 20px 18px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  tab-size: 4;
}

.c-key {
  color: var(--code-key);
}

.c-str {
  color: var(--code-str);
}

.panel-note {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

/* Секции */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 19px;
  font-weight: 650;
}

.card p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.cards-tight .card-plain {
  box-shadow: none;
  background: transparent;
}

.cards-tight {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Шаги */

.steps-wrap .section-head {
  margin-bottom: 34px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--heading);
  font-weight: 700;
}

.steps h3 {
  font-size: 18px;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* Контракт */

.contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  color: var(--ink-faint);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.table tbody tr:hover {
  background: var(--bg-alt);
}

.table td code {
  font-size: 13px;
}

.aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.aside h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.link-list a {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  overflow-wrap: anywhere;
}

.link-list a:hover {
  background: var(--accent-soft);
}

.link-list span {
  display: block;
  color: var(--ink-faint);
  font-size: 13.5px;
}

/* Призыв */

.cta {
  padding: 64px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.cta p {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--ink-soft);
}

/* Подвал */

.site-foot {
  padding: 30px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--heading);
  font-weight: 600;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-inner,
  .contract-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 52px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .site-nav {
    display: none;
  }
}

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

  .wrap {
    width: min(1160px, 100% - 32px);
  }

  .head-inner {
    justify-content: space-between;
  }

  .hero-facts {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
