/*
 * Стили лендинга. Ни одной внешней загрузки: системные шрифты, ни одного
 * изображения, ни одного счётчика.
 *
 * Форма взята у Vercel: чёрное на белом, крупный короткий заголовок, волосяные
 * линейки, малый радиус, много пустого места. Правило простое: если элемент
 * можно убрать и смысл остаётся — его здесь нет.
 */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --fg: #000000;
  --muted: #666666;
  --faint: #8f8f8f;
  --line: #eaeaea;
  --line-strong: #d4d4d4;
  --accent: #000000;
  --on-accent: #ffffff;
  --radius: 6px;
  --wrap: 1040px;
  --pad: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0a0a0a;
    --fg: #ffffff;
    --muted: #a1a1a1;
    --faint: #8f8f8f;
    --line: #2a2a2a;
    --line-strong: #3d3d3d;
    --accent: #ffffff;
    --on-accent: #000000;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 20; }

/* ------------------------------------------------------------- типографика */

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.lead {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.175rem);
  line-height: 1.5;
  color: var(--muted);
}

.note {
  margin: 32px 0 0;
  max-width: 52ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
}

/* ------------------------------------------------------------------ кнопки */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.85; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); opacity: 1; }

/* -------------------------------------------------------------------- шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--fg);
}
.brand-name em { font-style: normal; color: var(--faint); font-weight: 500; }

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.site-nav a:hover { color: var(--fg); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12px;
}
.lang-switch a {
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--faint);
}
.lang-switch a:hover { color: var(--fg); text-decoration: none; }
.lang-switch .is-current { color: var(--fg); background: var(--bg-soft); }

/* -------------------------------------------------------------------- герой */

.hero { padding: clamp(72px, 14vh, 148px) 0 clamp(64px, 10vh, 112px); }

.punch {
  display: inline-block;
  margin: 32px 0 0;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* Путь для тех, у кого бот уже есть: он не должен теряться за созданием. */
.already {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--faint);
}
.already a { color: var(--fg); }

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(48px, 8vh, 80px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 0 0;
}
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }

.figure-value {
  font-family: var(--mono);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.figure-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--faint);
}

/*
 * Пометка рода числа. Видна всегда — это часть честности страницы, а не
 * украшение: «измерено» и «оценка» отличаются на глаз.
 */
.chip {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.chip-measured { border-color: var(--fg); color: var(--fg); }

/* ------------------------------------------------------------------ секции */

.section {
  padding: clamp(64px, 11vh, 120px) 0;
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 7vh, 64px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.card {
  padding: 28px 26px 32px;
  background: var(--bg);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-body {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/*
 * Пометка честности у карточки: `live` — работает сегодня, `soon` — дорожная
 * карта. Она не украшение: без неё «расписание задач» читалось бы как обещание.
 */
.tag {
  flex: none;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.tag-live { border-color: var(--fg); color: var(--fg); }

/* ------------------------------------------------------------------ тарифы */

.plans {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 7vh, 64px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 26px;
  background: var(--bg);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 20px;
}
.plan-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan-badges { display: flex; gap: 4px; }
.badge {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.badge-accent { border-color: var(--fg); color: var(--fg); }

.plan-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.plan-money { margin: auto 0 0; padding-top: 18px; }
.plan-price {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plan-spec {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- финальный CTA */

.final .h2 { max-width: 26ch; }

/* -------------------------------------------------------------------- подвал */

.site-footer {
  margin-top: clamp(64px, 10vh, 112px);
  padding: 0 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
}

.footer-tagline {
  margin: 0;
  max-width: 40ch;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--fg); }

.footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

/* ------------------------------------------------------------- адаптивность */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .grid,
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .header-actions .btn { display: none; }
}

@media (max-width: 560px) {
  /* На телефоне те же отступы читаются как пустота между экранами, а не как
     воздух: страница и без них длинная. Убираем ровно столько, чтобы секции
     шли подряд, не слипаясь. */
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .site-footer { margin-top: 56px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figure { padding: 20px 0 0; }
  .figure + .figure { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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