/* LifeSEO — общие стили сайта: лендинг, кабинет, админка. */

:root {
  --ink: #0b1220;
  --ink-soft: #2a3548;
  --muted: #5d6676;
  --paper: #f3f2ee;
  --paper-2: #e8e6e0;
  --card: #fbfaf7;
  --line: rgba(11, 18, 32, 0.12);
  --accent: #1c4741;
  --accent-hover: #245a52;
  --on-accent: #ffffff;
  --gold: #a8874f;
  --gold-soft: rgba(196, 165, 116, 0.18);
  --danger: #a33a2c;
  --ok: #2e7d5b;
  --code-bg: #0b1220;
  --code-ink: #e6e3da;
  --code-key: #c4a574;
  --code-str: #8fc7b6;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1140px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1efe9;
    --ink-soft: #cdd1d9;
    --muted: #949cab;
    --paper: #0b1220;
    --paper-2: #121b2d;
    --card: #141e32;
    --line: rgba(241, 239, 233, 0.12);
    --accent: #5fa494;
    --accent-hover: #74b6a6;
    --on-accent: #0b1220;
    --gold: #d4b98a;
    --gold-soft: rgba(212, 185, 138, 0.14);
    --danger: #e0806f;
    --ok: #6cc59c;
    --code-bg: #070c16;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}

.logo__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex: none;
}

.nav {
  display: none;
  gap: 1.4rem;
  margin-left: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.top__side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.btn--sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 220px;
}

.user-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  background: var(--gold-soft);
  color: var(--gold);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
}

/* ── Общие блоки ───────────────────────────────────────── */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section {
  padding: 4.5rem 0;
}

.section--tint {
  background: var(--paper-2);
}

.section__head {
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.section__head h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.section__head p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--gold-soft);
  color: var(--gold);
  vertical-align: middle;
}

.notice {
  border-bottom: 1px solid var(--line);
  background: var(--gold-soft);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.notice .wrap {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

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

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

.error-text {
  color: var(--danger);
}

/* ── Главный экран ─────────────────────────────────────── */

.hero {
  padding: 4rem 0 4.5rem;
}

.hero__grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

.hero__lede {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__facts {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.hero__facts strong {
  color: var(--ink);
  font-weight: 600;
}

.login-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

@media (min-width: 960px) {
  .hero {
    padding: 5.5rem 0 6rem;
  }

  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
  }
}

/* ── Код ───────────────────────────────────────────────── */

.code {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-x: auto;
  box-shadow: var(--shadow);
  min-width: 0;
}

.code__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: rgba(230, 227, 218, 0.55);
  font-size: 0.78rem;
}

.code__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(230, 227, 218, 0.22);
}

.code__title {
  margin-left: 0.5rem;
}

.code pre {
  margin: 0;
  white-space: pre;
}

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

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

.code .c {
  color: rgba(230, 227, 218, 0.5);
}

/* ── Роли ──────────────────────────────────────────────── */

.roles {
  display: grid;
  gap: 1rem;
}

.role h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.role p {
  color: var(--ink-soft);
}

.role ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.role li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.role__num {
  display: block;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

@media (min-width: 860px) {
  .roles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Форматы и цены ────────────────────────────────────── */

.formats {
  border-top: 1px solid var(--line);
}

.format {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.format__name {
  font-weight: 600;
  font-size: 1.05rem;
}

.format__desc {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.95rem;
}

.format__price {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 760px) {
  .format {
    grid-template-columns: 260px 1fr auto;
    align-items: baseline;
  }

  .format__desc {
    grid-column: auto;
  }
}

.pay-line {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ── API ───────────────────────────────────────────────── */

.api {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.9rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 700;
  color: var(--gold);
  padding-top: 0.1rem;
}

.steps h3 {
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

.steps p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-top: 0.2rem;
}

.steps code,
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--gold-soft);
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
}

@media (min-width: 960px) {
  .api {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

/* ── Проверка ──────────────────────────────────────────── */

.checks {
  display: grid;
  gap: 1.75rem 2.5rem;
}

.check h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.check p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (min-width: 760px) {
  .checks {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Финальный призыв ──────────────────────────────────── */

.close {
  padding: 4.5rem 0;
  text-align: center;
}

.close h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.close p {
  margin: 1rem auto 0;
  max-width: 540px;
  color: var(--ink-soft);
}

.close .hero__actions {
  justify-content: center;
}

/* ── Подвал ────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

/* ── Кабинет и админка ─────────────────────────────────── */

.page {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.page__head h1 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.page__head .btn {
  margin-left: auto;
}

.page__hello {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.page__hello h1 {
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

.stat__label {
  font-size: 0.88rem;
  color: var(--muted);
}

.stat__value {
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat__sub {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.block-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.1rem;
}

.soon h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.soon p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.gate {
  max-width: 460px;
  margin: 3rem auto;
  text-align: center;
}

.gate h1 {
  font-size: 1.4rem;
}

.gate p {
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.gate .hero__actions {
  justify-content: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.table td:last-child,
.table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

.result {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.result--ok {
  color: var(--ok);
}

.result--bad {
  color: var(--danger);
}

/* ── Тексты (политика) ─────────────────────────────────── */

.legal {
  width: 100%;
  max-width: 720px;
  padding: 3rem var(--gutter) 4rem;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.legal h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal p + p {
  margin-top: 0.75rem;
}

.legal a {
  color: var(--accent);
}

.legal__date {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── 404 ───────────────────────────────────────────────── */

.lost {
  padding: 6rem 0;
  text-align: center;
}

.lost__code {
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--gold);
  line-height: 1;
}

.lost h1 {
  margin-top: 1rem;
  font-size: 1.35rem;
}

.lost p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.lost .hero__actions {
  justify-content: center;
}

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

  * {
    transition: none !important;
  }
}

/* ── Вкладки кабинета ──────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1.75rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs a {
  padding: 0.7rem 0.95rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.tabs a:hover {
  color: var(--ink);
}

.tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.panel-head h2 {
  font-size: 1.2rem;
}

/* ── Формы ─────────────────────────────────────────────── */

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field__hint {
  font-size: 0.88rem;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.textarea {
  min-height: 84px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.choices {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.choice {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.choice__sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--ink-soft);
}

.summary {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  font-size: 0.97rem;
}

.summary strong {
  font-variant-numeric: tabular-nums;
}

.message {
  font-size: 0.95rem;
}

.message--ok {
  color: var(--ok);
}

.message--bad {
  color: var(--danger);
}

/* ── Списки ────────────────────────────────────────────── */

.list {
  display: grid;
  gap: 0.75rem;
}

.item {
  display: grid;
  gap: 0.6rem;
}

.item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.item__title {
  font-weight: 600;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.item__meta {
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.item__meta a {
  color: var(--accent);
}

.item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.item__actions .select {
  width: auto;
  flex: 1 1 220px;
  min-height: 38px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  white-space: nowrap;
}

.status--active,
.status--paid {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok);
}

.status--moderation,
.status--created,
.status--paused {
  background: var(--gold-soft);
  color: var(--gold);
}

.status--rejected,
.status--failed {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.ops {
  display: grid;
}

.op {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.op__title {
  font-weight: 600;
}

.op__date {
  font-size: 0.85rem;
  color: var(--muted);
}

.op__changes {
  grid-row: span 2;
  align-self: center;
  text-align: right;
  font-size: 0.93rem;
  font-variant-numeric: tabular-nums;
}

.plus {
  color: var(--ok);
}

.minus {
  color: var(--danger);
}

.empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ── Партнёр: ключи, секреты ───────────────────────────── */

.lead-line {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.lead-line a {
  color: var(--accent);
}

.card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease);
}

.card--link:hover {
  border-color: var(--accent);
}

.secret {
  border-color: var(--gold);
  margin-bottom: 1rem;
}

.secret__title {
  font-weight: 600;
}

.secret__row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.secret__value,
.mono {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: var(--gold-soft);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.93rem;
  align-items: baseline;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
}

/* ── Документация API ──────────────────────────────────── */

.docs {
  max-width: 900px;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.docs h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.docs__lede {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 720px;
}

.docs__toc {
  margin: 1.75rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.docs__toc a {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

.docs__toc a:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.docs section {
  margin-top: 3rem;
  scroll-margin-top: 80px;
}

.docs h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin-bottom: 1rem;
}

.docs section > p,
.docs__list,
.docs__steps {
  color: var(--ink-soft);
  margin: 0.75rem 0;
}

.docs section a {
  color: var(--accent);
}

.docs__list,
.docs__steps {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.45rem;
}

.docs .code {
  margin: 1rem 0;
}

.docs__table {
  margin: 1rem 0;
}

.docs__table td:last-child,
.docs__table th:last-child {
  text-align: left;
}

.docs__table td {
  vertical-align: top;
}

/* ── Пополнение в TON ───────────────────────────────────── */

.ton-pay {
  display: grid;
  gap: 0.5rem;
  margin: 0.6rem 0;
  color: var(--ink);
}

.ton-pay .kv dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

/* ── Задания ───────────────────────────────────────────── */

.task__reward {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.task__steps {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.97rem;
}

.task__report {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

/* ── Отчёты ────────────────────────────────────────────── */

.report {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.report__shot img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper-2);
}

.report__body {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.report__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.97rem;
}

@media (min-width: 720px) {
  .report {
    grid-template-columns: 220px 1fr;
  }
}
