@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --paper: #f5f6f8;        /* холодный лист, а не тёплая бумага */
  --surface: #ffffff;
  --ink: #1b2733;          /* графит: мягче угольного, но так же читаемо */
  --text: #16202a;
  --muted: #62717f;
  --seal: #c8912f;         /* печать: единственный тёплый цвет в палитре */
  --seal-deep: #a5741c;    /* тот же цвет глубже — для кнопок и акцентов */
  --seal-soft: #f4e7cd;
  --ok: #0e9f6e;
  --hold: #b4720c;         /* «проверка отложена» — не тревога, а ожидание */
  --alarm: #d3382f;
  --line: #e2e6ea;
  --line-soft: #eef1f4;
  --radius: 16px;
  --shell: 760px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main, .bar, .foot {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

a { color: var(--text); }

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

.bar {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  padding-block: 16px 10px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.logo i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal);
  display: inline-block;
}



.quiet {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
}
.quiet:hover { color: var(--ink); }


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

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding-block: 44px 34px;
}

h1 {
  font-weight: 800;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  margin: 0;
  max-width: 46ch;
}

.seal {
  width: clamp(84px, 18vw, 132px);
  height: auto;
  color: var(--seal);
  opacity: 0;
  animation: seal-in .7s cubic-bezier(.2, .8, .3, 1) .15s forwards;
}

@keyframes seal-in {
  from { opacity: 0; transform: scale(.86) rotate(-8deg); }
  to   { opacity: .95; transform: none; }
}

/* ---------------------------------------------------------------- панели */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-block: 20px;
}

.panel h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.panel .lead { margin-bottom: 18px; font-size: 15.5px; }

/* зона загрузки */

.drop {
  border: 1.5px dashed var(--line);
  border-radius: 11px;
  background: var(--paper);
  padding: 38px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.drop:hover, .drop.hot, .drop:focus-visible {
  border-color: var(--seal);
  background: #fdfaf3;
}
.drop-icon { width: 26px; height: 26px; color: var(--seal); display: block; margin: 0 auto 10px; }
.drop strong { display: block; font-weight: 700; margin-bottom: 5px; }
.drop small { color: var(--muted); display: block; max-width: 42ch; margin-inline: auto; }

/* карточка документа */

.sheet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  margin-top: 20px;
}
.sheet .mark { position: absolute; top: 18px; right: 18px; width: 68px; height: 68px; opacity: .92; }
.sheet .name { font-weight: 700; font-size: 19px; letter-spacing: -0.015em; word-break: break-word; }
.sheet .name.has-mark { padding-right: 84px; }

.meta { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.meta code { letter-spacing: .06em; font-weight: 700; color: var(--ink); }

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

button, .btn {
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--seal-deep);
  background: var(--seal-deep);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background .16s, transform .06s;
}
button:hover, .btn:hover { background: #8f6318; border-color: #8f6318; }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, .drop:focus-visible, input:focus-visible {
  outline: 3px solid var(--seal);
  outline-offset: 2px;
}
button[disabled] { opacity: .45; cursor: default; }

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

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.link-row { display: flex; gap: 8px; margin-top: 16px; }
.link-row input { flex: 1; min-width: 0; }

input[type=text], input[type=email], input[type=tel] {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
input[readonly] { color: var(--muted); }

label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 5px; }

/* ------------------------------------------------------------- как это работает */

.steps { padding-block: 24px 8px; }
.steps h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.015em; }

.steps ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 2;          /* цифра держит обе строки, текст не съезжает в узкую колонку */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.steps h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 16.5px;
  font-weight: 700;
  margin: 4px 0 0;
}
.steps p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 58ch;
}

/* ------------------------------------------------------------------ доверие */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-block: 30px 12px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.trust h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 5px; }
.trust p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* --------------------------------------------------------------- подписи */

.signer { border-top: 1px solid var(--line); padding: 18px 0; }
.signer:last-of-type { border-bottom: 1px solid var(--line); }
.signer .who { font-weight: 700; }
.signer .detail { color: var(--muted); font-size: 14.5px; margin-top: 3px; }

.stamp {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 7px;
  margin-top: 9px;
}
.stamp.ok { color: var(--ok); }
.stamp.warn { color: var(--alarm); }

/* --------------------------------------------------- регистрация в конце */

.after {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--seal);
  border-radius: var(--radius);
  padding: 24px;
}
.after h2 { font-size: 19px; font-weight: 700; margin: 22px 0 6px; }

/* ------------------------------------------------------------- состояния */

.status {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
}
.status.bad { border-color: var(--alarm); color: var(--alarm); }

.tech { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.tech summary { cursor: pointer; }
.tech pre {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.note { font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.hidden { display: none; }

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

.foot {
  margin-top: 46px;
  padding-block: 20px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot a { color: var(--muted); }

/* ------------------------------------------------------------- мобильные */

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  main, .bar, .foot { padding-inline: 16px; }

  .bar { padding-block: 14px 4px; }
  .bar .quiet { display: none; }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 26px 22px;
  }
  .hero-seal { order: -1; }
  .seal { width: 76px; }

  .panel { padding: 18px; border-radius: 12px; }
  .drop { padding: 30px 16px; }

  .link-row { flex-direction: column; }
  .link-row button { width: 100%; }
  .actions .btn, .actions button { flex: 1 1 100%; }

  .trust { grid-template-columns: 1fr; gap: 18px; }

  .sheet .mark { width: 48px; height: 48px; top: 16px; right: 16px; }
  .sheet .name.has-mark { padding-right: 60px; font-size: 17.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .seal { opacity: .95; }
}

/* --------------------------------------- проверка подписи любого провайдера */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drop-sm { padding: 24px 16px; }
.drop-sm small {
  margin-top: 6px;
  word-break: break-all;
  color: var(--muted);
}

.verdict {
  margin: 20px 0 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.verdict > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: var(--surface);
  padding: 13px 16px;
}
.verdict dt { color: var(--muted); font-size: 15px; }
.verdict dd { margin: 0; font-weight: 700; text-align: right; }
.verdict dd.good { color: var(--ok); }
.verdict dd.bad { color: var(--alarm); }

@media (max-width: 640px) {
  .pair { grid-template-columns: 1fr; }
  .verdict > div { flex-direction: column; gap: 3px; }
  .verdict dd { text-align: left; }
}


/* ------------------------------------------------------- тёмный герой */

.hero-dark {
  background:
    radial-gradient(120% 140% at 88% 8%, #1b2733 0%, transparent 60%),
    var(--ink);
  color: #eef2f6;
  border-radius: var(--radius);
  padding: 40px 34px;
  margin-block: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.hero-dark.compact { padding: 30px 34px; }
.hero-dark h1 { margin: 0 0 12px; }
.hero-dark .lead { color: #9fb0bf; }
.hero-dark .seal { color: var(--seal); }

.btn.light, button.light {
  background: #eef2f6;
  color: var(--ink);
  border-color: #eef2f6;
}
.btn.light:hover, button.light:hover { background: #fff; }

button.ghost-light {
  background: transparent;
  color: #cfdae4;
  border-color: #3a4854;
}
button.ghost-light:hover { background: #17222d; border-color: #55636f; }

/* ------------------------------------------- моноширинный для кодов */

code, .code, pre {
  font-family: var(--mono);
  font-weight: 500;
}
.meta code {
  font-size: 14px;
  letter-spacing: .02em;
  background: var(--seal-soft);
  color: #6b4b0c;
  padding: 1px 7px;
  border-radius: 6px;
}
code.hash {
  display: inline-block;
  background: var(--line-soft);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  word-break: break-all;
  max-width: 100%;
}
pre.code {
  background: var(--ink);
  color: #d6e2ee;
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
pre.code code { color: inherit; background: none; }

/* ------------------------------------------------- статусы и таблицы */

.stamp.hold { color: var(--hold); }

.grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 15px;
}
.grid th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--line);
}
.grid td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.grid tr:last-child td { border-bottom: none; }

.steps-plain { margin: 0; padding-left: 20px; }
.steps-plain li { margin-bottom: 8px; }

.qr-row { display: flex; gap: 18px; align-items: center; margin-top: 20px; }
.qr { width: 108px; height: 108px; flex: none; }
.qr-row .note { margin: 0; }

/* ------------------------------------------------------- мобильные */

@media (max-width: 640px) {
  .hero-dark {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    gap: 18px;
  }
  .hero-dark .hero-seal { order: -1; }
  .qr-row { flex-direction: column; align-items: flex-start; }
  .grid, .grid tbody, .grid tr, .grid td { display: block; width: 100%; }
  .grid thead { display: none; }
  .grid tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .grid td { border: none; padding: 3px 0; }
  pre.code { font-size: 12px; }
}

/* ------------------------------------------------- кто вошёл, в шапке */

.whoami {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  max-width: 280px;
}
.whoami:hover { border-color: var(--text); }

.avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--seal);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.whoami-text {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.whoami-text b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whoami-text em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* плашка контекста на странице документа */
.context {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.context .avatar { width: 24px; height: 24px; font-size: 12px; }
.context a { color: var(--muted); }

@media (max-width: 760px) {
  .whoami { max-width: 190px; }
}
@media (max-width: 480px) {
  .whoami-text { display: none; }
  .whoami { padding: 4px; }
}

/* -------------------------------------------- действия в строке таблицы */

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 13.5px;
}
.row-actions a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.row-actions a:hover { color: var(--text); border-color: var(--text); }

button.linkish {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  padding: 0 0 1px;
  cursor: pointer;
}
button.linkish:hover { background: none; color: var(--text); border-color: var(--text); }
button.linkish.danger:hover { color: var(--alarm); border-color: var(--alarm); }

.admin-grid .pair { margin-bottom: 4px; }

/* ------------------------------------------------- подсказки и поля подписи */

.hint {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  vertical-align: 1px;
  position: relative;
}
.hint:hover, .hint:focus-visible { border-color: var(--seal); color: var(--seal); }
.hint::after {
  content: attr(data-hint);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  background: var(--ink);
  color: #eef2f6;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  padding: 9px 11px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s;
  z-index: 30;
}
.hint:hover::after, .hint:focus-visible::after { opacity: 1; }

.fields { margin-top: 14px; }
.fields > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
.fields-body { margin-top: 10px; }

.field-group { margin-top: 16px; }
.field-group h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.field-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.field-table td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.field-table td:first-child { color: var(--muted); width: 44%; padding-right: 14px; }
.field-table td:last-child { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--text);
}
.chip.gold { background: var(--seal-soft); color: #6b4b0c; font-weight: 700; }

.alert {
  border: 1px solid var(--alarm);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  color: var(--alarm);
  font-size: 14.5px;
}
.alert b { display: block; margin-bottom: 3px; }

.qr-sign { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-sign img { width: 132px; height: 132px; }

@media (max-width: 640px) {
  .field-table td:first-child { width: 50%; }
  .hint::after { max-width: 210px; }
}


/* ------------------------------------------------- иконки действий в строке */

.row-actions .act {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: border-color .14s, color .14s;
}
.row-actions .act svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row-actions .act:hover { border-color: var(--text); color: var(--text); background: var(--surface); }
.row-actions .act.danger:hover { border-color: var(--alarm); color: var(--alarm); }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------- состояние подписания */

.state {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.state-done { border-color: #bfe6d5; background: #f2fbf7; }
.state-wait { border-color: var(--seal-soft); background: #fdfaf3; }
.state b { display: block; font-size: 16px; }
.state p { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; }
.state-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
}
.state-done .state-icon { color: var(--ok); border-color: #bfe6d5; }
.state-wait .state-icon { color: var(--hold); border-color: var(--seal-soft); }
.state-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.progress { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.who-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 13.5px; font-weight: 600;
}
.who-chip i {
  width: 22px; height: 22px; border-radius: 50%; font-style: normal;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--ink); color: var(--seal);
}
.who-chip em { font-style: normal; color: var(--muted); font-weight: 500; }
.who-chip.ok { border-color: #bfe6d5; }

/* отпечаток группами */
.fp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-groups { display: inline-flex; gap: 5px; align-items: center; }
.fp-groups b {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  background: var(--line-soft); color: var(--text);
  padding: 2px 6px; border-radius: 5px;
}
.fp-rest { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.icon-btn {
  width: 26px; height: 26px; padding: 0;
  border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted);
  display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle;
}
.icon-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--text); color: var(--text); background: var(--surface); }
.icon-btn.done { border-color: var(--ok); color: var(--ok); }

.tech > summary { display: flex; align-items: center; gap: 10px; }

/* досье контрагента */
.dossier {
  display: grid; gap: 12px;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  margin-top: 12px; background: var(--paper);
}
.chip.link { text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.chip.link:hover { border-color: var(--text); }

@media (max-width: 640px) {
  .state { grid-template-columns: 1fr; }
  .state-icon { display: none; }
}

/* ------------------------------------------------- лендинг: две карточки */

.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 20px; }
.strip-card {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .15s, transform .06s;
}
.strip-card:hover { border-color: var(--text); }
.strip-card:active { transform: translateY(1px); }
.strip-card b { display: block; font-size: 16.5px; margin-bottom: 5px; }
.strip-card span { color: var(--muted); font-size: 14.5px; }

.panel.free { border-left: 3px solid var(--seal); }

/* ------------------------------------------------------- страница сравнения */

.table-scroll { overflow-x: auto; margin-top: 12px; }
table.compare { min-width: 640px; font-size: 14px; }
table.compare th, table.compare td { padding: 12px 14px 12px 0; }
table.compare th.us, table.compare td.us { background: #fdfaf3; padding-inline: 12px; }
table.compare th.us { border-bottom-color: var(--seal); }
table.compare td.yes { color: var(--ok); font-weight: 600; }
table.compare td.no { color: var(--alarm); }
table.compare td.part { color: var(--hold); }
table.compare td:first-child { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- лонгрид */

.longread { max-width: 640px; }
.longread .kicker {
  color: var(--seal); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; margin: 24px 0 6px;
}
.longread h1 { font-size: clamp(27px, 5vw, 38px); margin-bottom: 14px; }
.longread h2 { font-size: 20px; margin: 30px 0 8px; }
.longread p { margin: 0 0 14px; }
.longread .lead { font-size: 18px; }

.callout {
  background: var(--ink); color: #eef2f6;
  border-radius: var(--radius); padding: 24px; margin: 28px 0;
}
.callout b { display: block; font-size: 17px; margin-bottom: 6px; }
.callout p { color: #9fb0bf; margin: 0 0 16px; }
.callout .btn { background: #eef2f6; color: var(--ink); border-color: #eef2f6; }

@media (max-width: 640px) {
  .strip { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------ светлый герой */

.hero-light {
  background:
    radial-gradient(90% 120% at 92% 10%, #fdf6e7 0%, transparent 62%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 34px;
  margin-block: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.hero-light h1 { margin: 0 0 12px; }
.hero-light .lead { color: var(--muted); }
.hero-light .seal { color: var(--seal); }

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

.tariffs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-block: 20px;
  align-items: stretch;
}
.tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.tariff.featured { border-color: var(--seal); box-shadow: 0 12px 30px -20px rgba(200,145,47,.7); }
.tariff .badge {
  position: absolute; top: -10px; left: 18px;
  background: var(--seal); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.tariff h3 { margin: 0 0 6px; font-size: 17px; }
.tariff .price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tariff .price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.tariff .note { margin: 2px 0 14px; }
.tariff ul { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.tariff li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
  font-size: 14.5px; color: var(--text);
}
.tariff li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--seal);
}
.tariff .btn { width: 100%; }

/* --------------------------------------------------------- баллы */

.score-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.score {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; text-align: center; background: var(--surface);
}
.score.us { border-color: var(--seal); background: #fdfaf3; }
.score b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.score span { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.score em { font-style: normal; font-size: 12px; color: var(--muted); }

select, textarea {
  font: inherit; width: 100%;
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--text);
}
textarea { resize: vertical; }

@media (max-width: 860px) {
  .tariffs { grid-template-columns: repeat(2, 1fr); }
  .score-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-light { grid-template-columns: 1fr; padding: 26px 20px; }
  .hero-light .hero-seal { order: -1; }
  .tariffs { grid-template-columns: 1fr; }
}


/* тёмные панели остались только там, где нужен контраст: кабинет и врезка */
.hero-dark { background: linear-gradient(160deg, #22303d 0%, #16202a 100%); }
.callout { background: linear-gradient(160deg, #22303d 0%, #16202a 100%); }
.btn.light, button.light { background: #fff; color: #16202a; border-color: #fff; }
.avatar { background: var(--seal-deep); color: #fff; }
.who-chip i { background: var(--seal-deep); color: #fff; }
pre.code { background: #16202a; }

/* ------------------------------------------------- «сознательно не делаем» */

.not-doing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.not-doing > div {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
}
.not-doing b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.not-doing span { color: var(--muted); font-size: 14.5px; }

.panel.switch { border: 1px solid var(--seal); background: #fdfaf3; }
.panel.switch h2 { color: #6b4b0c; }

table.compare td b { color: var(--text); }
table.compare td.us b { color: #6b4b0c; }

@media (max-width: 760px) { .not-doing { grid-template-columns: 1fr; } }

/* ------------------------------------------------- два действия на первом экране */

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 4px 18px; }
.up-card {
  display: block; text-align: center; cursor: pointer; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 22px;
  transition: border-color .15s, transform .06s;
}
.up-card:hover { border-color: var(--seal); }
.up-card:active { transform: translateY(1px); }
.up-card svg {
  width: 28px; height: 28px; margin-bottom: 12px; color: var(--seal);
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.up-card b { display: block; font-size: 17.5px; margin-bottom: 6px; }
.up-card span { color: var(--muted); font-size: 14.5px; }

.strip { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .two-up { grid-template-columns: 1fr; } }

.hero-light.compact { padding: 28px 30px; }
.hero-light.compact h1 { font-size: clamp(24px, 4.5vw, 32px); }

/* ------------------------------------------------------------ квота тарифа */

.quota {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 10px;
}
.quota b { display: block; font-size: 15.5px; }
.quota span { color: var(--muted); font-size: 14px; }
.meter { height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; margin-bottom: 20px; }
.meter i { display: block; height: 100%; background: var(--seal); border-radius: 99px; }

/* --------------------------------------------------- лупа на карточке */

.lens-stage { position: relative; overflow: hidden; cursor: crosshair; touch-action: none; }
.lens-layer {
  position: absolute; inset: 0; padding: 22px; background: var(--surface);
  font-family: var(--mono); font-size: 12px; line-height: 1.85; color: var(--text);
  -webkit-mask-image: radial-gradient(circle at var(--mx,50%) var(--my,50%),
    #000 0 calc(var(--r,0px) - 30px), transparent var(--r,0px));
  mask-image: radial-gradient(circle at var(--mx,50%) var(--my,50%),
    #000 0 calc(var(--r,0px) - 30px), transparent var(--r,0px));
}
.lens-layer b { color: var(--seal-deep); }
.lens-ring {
  position: absolute; width: var(--d,0); height: var(--d,0);
  left: var(--mx,50%); top: var(--my,50%); transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px solid var(--seal); pointer-events: none; z-index: 2;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 18px 44px -24px rgba(0,0,0,.4);
  transition: width .2s, height .2s;
}
.lens-hint {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font-size: 12.5px; color: var(--muted); pointer-events: none; transition: opacity .2s;
}
.lens-stage.lens-on .lens-hint { opacity: 0; }

.wave {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--seal); z-index: 3;
  transform: translate(-50%,-50%) scale(0); pointer-events: none;
  animation: qwave 1.1s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes qwave { to { transform: translate(-50%,-50%) scale(50); opacity: 0; border-width: .5px; } }

@media (prefers-reduced-motion: reduce) {
  .lens-layer, .lens-ring, .wave { display: none; }
}


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

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }

.bar-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs a {
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  padding: 7px 12px; text-decoration: none; color: var(--muted);
  background: var(--surface);
}
.langs a[aria-current] { background: var(--seal-deep); color: #fff; }

.theme-btn { width: 32px; height: 32px; }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }

.btn.small { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }

.whoami { padding: 4px 12px 4px 4px; max-width: 240px; }

@media (max-width: 900px) {
  .nav { order: 3; flex-basis: 100%; gap: 14px; font-size: 14px; }
  .bar { padding-block: 12px 6px; }
  .whoami { max-width: 180px; }
}
@media (max-width: 520px) {
  .nav a { font-size: 13.5px; }
  .whoami-text { display: none; }
  .whoami { padding: 4px; max-width: none; }
}

/* ---------------------------------------------------------- тёмная тема */

[data-theme="dark"] {
  --paper: #0f151b;
  --surface: #161e26;
  --text: #e8eef4;
  --muted: #93a3b1;
  --line: #26323d;
  --line-soft: #1d2831;
  --seal: #d8a548;
  --seal-deep: #c08f2e;
  --seal-soft: #2a2214;
  --ink: #0b1117;
  --ok: #35b07d;
  --hold: #d29a3a;
  --alarm: #e0655a;
}
[data-theme="dark"] .hero-light {
  background: radial-gradient(90% 120% at 92% 10%, #1d2731 0%, transparent 62%), var(--surface);
}
[data-theme="dark"] .state-done { background: #13241d; border-color: #1f4436; }
[data-theme="dark"] .state-wait { background: #221c10; border-color: #3a2f16; }
[data-theme="dark"] .panel.free, [data-theme="dark"] .panel.switch { background: #1c1710; }
[data-theme="dark"] .drop:hover, [data-theme="dark"] .drop.hot { background: #1b2129; }
[data-theme="dark"] table.compare th.us, [data-theme="dark"] table.compare td.us { background: #1c1710; }
[data-theme="dark"] .btn.light, [data-theme="dark"] button.light { background: #e8eef4; color: #0f151b; border-color: #e8eef4; }

/* ------------------------------------------------ компактное «как это работает» */

.slogan { font-weight: 800; font-size: 19px; letter-spacing: -.02em; margin: 12px 0 0; }

.how { margin: 18px 0; }
.how > summary {
  cursor: pointer; font-weight: 700; font-size: 16px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); list-style: none;
}
.how > summary::-webkit-details-marker { display: none; }
.how > summary::after { content: ' ›'; color: var(--seal); font-weight: 800; }
.how[open] > summary::after { content: ' ⌄'; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.how-grid > div { background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; }
.how-grid b { display: block; font-size: 15px; margin-bottom: 5px; }
.how-grid span { color: var(--muted); font-size: 14px; }

/* быстрые якоря в кабинете */
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.quick a {
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.quick a:hover { border-color: var(--seal); color: var(--seal-deep); }

/* задания на бесплатный лимит */
.tasks { display: grid; gap: 8px; margin-top: 12px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.task .mark { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 12px; color: var(--ok); flex: none; }
.task.done .mark { border-color: var(--ok); }
.task b { font-weight: 600; font-size: 15px; }
.task .plus { margin-left: auto; font-weight: 800; color: var(--seal-deep); font-size: 14px; }

@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }

/* кликабельный слоган */
.slogan a {
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid var(--seal-soft);
  padding-bottom: 1px;
  margin-right: 6px;
  transition: border-color .15s, color .15s;
}
.slogan a:hover { color: var(--seal-deep); border-color: var(--seal); }

/* ------------------------------------------------ таблица кабинета */

table.docs { min-width: 720px; }
table.docs td { vertical-align: middle; }
table.docs .row-actions { flex-wrap: nowrap; gap: 6px; }
table.docs .row-actions .act { width: 30px; height: 30px; }
table.docs td:first-child { max-width: 320px; }

a.task { text-decoration: none; color: var(--text); transition: border-color .15s; }
a.task:hover { border-color: var(--seal); }

/* ------------------------------------------------------------ уведомления */

.notices { display: grid; gap: 6px; }
.notice {
  display: flex; align-items: baseline; gap: 12px; text-decoration: none;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--text); font-size: 14.5px;
}
.notice.new { border-left: 3px solid var(--seal); }
.notice em { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: auto; }
.notice:hover { border-color: var(--seal); }

.bell { position: relative; }
.bell span {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px;
  border-radius: 99px; background: var(--seal-deep); color: #fff;
  font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px;
}
