/* Probity — лендинг, вторая версия («Схема»).

   Основа — макет из Claude Design, вариант A: тёплая бумага, чёрный контур в
   два пикселя, жёсткая тень у главной иллюстрации, моноширинные подписи
   разделов. Макет был холстом шириной 1440 с инлайновыми стилями; здесь те же
   размеры и цвета, но страница тянется от телефона до широкого экрана.

   Отступления от макета — только там, где он расходился с продуктом:
   шкала — это одно состояние (зелёный / жёлтый / красный), а не доля в
   процентах, поэтому полосы показывают состояние, а не заполненность;
   названия действий и их цвета — как в кабинете. */

:root {
  --paper: #F4F2EC;
  --paper-grid: #E4E0D5;
  --line: #D9D5CA;
  --ink: #16181D;
  --ink-2: #3F4450;
  --muted: #5A5F6B;
  --faint: #9A9EA8;
  --white: #FFFFFF;

  --blue: #2B4FD8;
  --blue-hover: #1A36A8;
  --blue-box: #3D5CE0;
  --blue-soft: #8FA6FF;

  --green: #1C7C45;
  --green-bg: #E6F3EA;
  --green-ink: #1C5C36;
  --amber: #F4B740;
  --amber-line: #B5700F;
  --amber-bg: #FDF3E1;
  --amber-ink: #7A4C0A;
  --red: #C8382A;
  --red-bg: #FBE7E4;
  --red-ink: #8E2A1F;

  --night: #16181D;
  --night-2: #262A33;
  --night-line: #3A3E48;
  --night-edge: #5A6070;
  --night-text: #C9CCD4;
  --night-dim: #B8BCC6;
  --night-soft: #D9DCE3;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --side: clamp(20px, 6.67vw, 96px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
svg { display: block; }
b { font-weight: 700; }

.w { max-width: 1440px; margin: 0 auto; padding-inline: var(--side); }
.mono { font-family: var(--mono); }
.nw { white-space: nowrap; }

/* Подпись раздела: номер и название моноширинным, синим. */
.eyebrow { font: 600 14px/1.3 var(--mono); letter-spacing: .08em; color: var(--blue); text-transform: uppercase; }
.on-dark .eyebrow { color: var(--blue-soft); }

h1, h2, h3 { margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
h1 span { color: var(--blue); }
h2 { font-weight: 800; font-size: clamp(32px, 3.9vw, 52px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.head { display: flex; flex-direction: column; gap: 12px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 28px; border-radius: 12px; font: 600 18px/1.1 var(--font);
  text-decoration: none; white-space: nowrap; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--white); border: 2px solid var(--ink); }
.btn-ink:hover { background: #2A2D35; color: var(--white); }
.btn-line { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); font-weight: 700; }
.btn-white:hover { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 12px 20px; font-size: 16px; border-radius: 10px; }

/* ===== Шапка ============================================================== */

.nav { height: 80px; border-bottom: 1px solid var(--line); background: var(--paper);
       position: sticky; top: 0; z-index: 20; }
.nav .w { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--blue); }
.nav-links .btn { color: var(--ink); }
@media (max-width: 860px) { .nav-links .hide-s { display: none; } }
@media (max-width: 420px) { .nav-links { gap: 16px; } .nav-links .btn-sm { padding: 10px 14px; font-size: 14px; } }
/* На телефоне у кнопки короткая подпись: длинная вместе со знаком и RU/EN не влезала. */
.nav-links .sm { display: none; }
@media (max-width: 480px) { .nav-links .lg { display: none; } .nav-links .sm { display: inline; } }

/* Знак Probity — тот же, что в кабинете: шестигранник с «P», синий градиент. */
.mark { width: 32px; height: 32px; flex: 0 0 32px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--mono); }
.lang a { color: var(--faint); }
.lang a.on { color: var(--ink); }
.lang i { font-style: normal; color: var(--line); }

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

.grid-paper {
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper-grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero { border-bottom: 1px solid var(--line); }
.hero .w { display: grid; grid-template-columns: minmax(0, 600fr) minmax(0, 652fr); gap: 48px;
           align-items: center; padding-block: 72px; min-height: 760px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 540px; }
.hero-copy .lead b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--ink-2); margin-top: 8px; }

.scheme {
  background: var(--white); border: 2px solid var(--ink); border-radius: 24px;
  box-shadow: 10px 10px 0 var(--ink); overflow: hidden;
}
.scheme svg { width: 100%; height: auto; }

@media (max-width: 1080px) {
  .hero .w { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 56px 64px; }
  .scheme { max-width: 660px; }
}

/* ===== Четыре шага ======================================================== */

.sec { padding-block: clamp(72px, 7.8vw, 112px) clamp(64px, 6.7vw, 96px); }
.sec > .w { display: flex; flex-direction: column; gap: 56px; }

.steps { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr; align-items: stretch; }
.step {
  padding: 28px; background: var(--white); border: 2px solid var(--ink); border-radius: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.step .k { font: 400 13px/1 var(--mono); color: var(--muted); }
.step h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.step p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.step.dark { background: var(--ink); color: var(--white); }
.step.dark .k { color: var(--night-dim); }
.step.dark p { color: var(--night-soft); }
.arrow { display: flex; align-items: center; justify-content: center; }
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .steps .arrow { display: none; }
}
@media (max-width: 600px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ===== Две шкалы ========================================================== */

.card-block {
  background: var(--white); border: 2px solid var(--ink); border-radius: 28px;
}
.scales { display: grid; grid-template-columns: minmax(0, 460fr) minmax(0, 644fr); gap: 72px;
          align-items: center; padding: clamp(28px, 5vw, 72px); }
.scales-copy { display: flex; flex-direction: column; gap: 20px; }
.scales-copy h2 { font-size: clamp(32px, 3.4vw, 48px); }
.scales-copy p { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.no-score { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.no-score s {
  padding: 14px 22px; border: 2px dashed var(--faint); border-radius: 14px;
  font-size: 32px; font-weight: 800; color: var(--faint);
}
.no-score span { font-size: 17px; font-weight: 600; }
@media (max-width: 1080px) { .scales { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.axis-panel { padding: 28px; background: var(--paper); border-radius: 20px; display: flex; flex-direction: column; gap: 14px; }
.axis-panel + .axis-panel { margin-top: 24px; }
.axis-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.axis-top b { font-size: 26px; font-weight: 800; }
.axis-top span { font-size: 16px; color: var(--ink-2); }
.axis-note { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.axis-note .mono { color: var(--ink); font-size: 14px; }
.axis-note a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.axis-note a:hover { text-decoration: underline; }
@media (max-width: 480px) { .axis-note a { white-space: normal; } }

/* Шкала — состояние из трёх: закрашено одно деление, два других пустые.
   В макете полосы были заполнены на проценты; у продукта процентов нет. */
.state {
  display: grid; grid-template-columns: repeat(3, 1fr); height: 34px;
  border: 2px solid var(--ink); border-radius: 17px; overflow: hidden; background: var(--white);
}
.state i {
  font: 600 12px/1 var(--mono); font-style: normal; letter-spacing: .04em;
  display: grid; place-items: center; color: var(--faint);
}
.state i + i { border-left: 2px solid var(--ink); }
.state i.on-g { background: var(--green); color: var(--white); }
.state i.on-a { background: var(--amber); color: var(--ink); }
.state i.on-r { background: var(--red); color: var(--white); }
.sq { font-style: normal; }
.sq.g { color: var(--green); } .sq.a { color: var(--amber-line); } .sq.r { color: var(--red); }

/* ===== Девять источников ================================================== */

.sec-head2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.sec-head2 > .head { flex: 1 1 520px; max-width: 860px; }
.sec-head2 > p { flex: 0 1 360px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.src {
  padding: 28px; background: var(--white); border: 1.5px solid var(--line); border-radius: 18px;
  display: flex; gap: 20px; align-items: flex-start;
}
.src svg { flex: 0 0 48px; }
.src h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.src p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 1080px) { .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sources { grid-template-columns: minmax(0, 1fr); } }

/* ===== Что делать дальше: дерево ========================================== */

.night { background: var(--night); color: var(--white); }
.decide .w { display: grid; grid-template-columns: minmax(0, 420fr) minmax(0, 748fr); gap: 80px;
             padding-block: clamp(64px, 6.7vw, 96px); }
.decide-copy { display: flex; flex-direction: column; gap: 20px; }
.decide-copy p { font-size: 18px; line-height: 1.55; color: var(--night-text); }
.rule {
  margin-top: 12px; padding: 22px; border: 1.5px solid var(--night-line); border-radius: 16px;
  font-size: 16px; line-height: 1.55; color: var(--night-text);
}
.rule b { color: var(--white); display: block; margin-bottom: 4px; }
.rule ul { margin: 0; padding-left: 18px; }
@media (max-width: 1080px) { .decide .w { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

.tree { display: flex; flex-direction: column; }
.q-row { display: grid; grid-template-columns: minmax(0, 330fr) 110px minmax(0, 300fr); align-items: center; }
.q {
  padding: 22px 24px; background: var(--night-2); border: 2px solid var(--night-edge); border-radius: 16px;
  font-size: 20px; font-weight: 600; line-height: 1.3;
}
.q.dashed { background: transparent; border-style: dashed; color: var(--night-text); }
.yes { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 400 13px/1 var(--mono); color: var(--night-text); }
.out { padding: 22px 24px; border-radius: 16px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.out.r { background: var(--red); }
.out.b { background: var(--blue-box); }
.out.a { background: var(--amber); color: var(--ink); }
.out.g { background: var(--green); }
.no { width: calc((100% - 110px) * 330 / 630); height: 56px; display: flex; align-items: center;
      justify-content: center; gap: 10px; font: 400 13px/1 var(--mono); color: var(--night-text); }
@media (max-width: 640px) {
  .q-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .yes { flex-direction: row; gap: 8px; }
  .yes svg { transform: rotate(90deg); width: 20px; }
  .no { width: 100%; justify-content: flex-start; padding-left: 24px; }
}

/* ===== Реальный случай ==================================================== */

.case h2 em { font-style: normal; color: var(--red); }
.case-grid { display: grid; grid-template-columns: minmax(0, 480fr) minmax(0, 720fr); gap: 48px; align-items: stretch; }
.crowd {
  padding: 36px; background: var(--white); border: 2px solid var(--ink); border-radius: 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.people svg { width: 100%; height: auto; }
.crowd p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.crowd small { display: block; font-size: 14px; line-height: 1.5; color: var(--muted);
               border-top: 1px solid var(--line); padding-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.fact {
  padding: 22px 24px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px;
  display: flex; gap: 16px; font-size: 17px; line-height: 1.45;
}
.fact .n { font: 600 22px/1.1 var(--mono); color: var(--red); }
.fact.wide { grid-column: span 2; }
@media (max-width: 1080px) { .case-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr); } .fact.wide { grid-column: auto; } }

/* ===== Чего не делает ===================================================== */

.dont { padding: clamp(28px, 4.4vw, 64px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; gap: 40px; }
.dont h2 { font-size: clamp(28px, 3.1vw, 44px); }
.donts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.donts > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.donts h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.donts p { font-size: 15px; line-height: 1.45; color: var(--ink-2); margin-top: -6px; }
@media (max-width: 1080px) { .donts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 640px) { .donts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Цена =============================================================== */

.price-row { display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 816fr); gap: 32px; align-items: stretch; }
.price {
  padding: 40px; background: var(--ink); color: var(--white); border-radius: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.price .t { font-size: 18px; font-weight: 600; color: var(--night-text); }
.price .sum { display: flex; align-items: baseline; gap: 10px; }
.price .sum b { font-size: clamp(64px, 6.1vw, 88px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price .sum span { font-size: 28px; font-weight: 700; }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.price .btn { margin-top: auto; }
.plan {
  padding: 40px; background: var(--white); border: 2px solid var(--ink); border-radius: 24px;
  display: flex; flex-direction: column; gap: 28px;
}
.plan-step { display: flex; align-items: flex-start; gap: 20px; }
.plan-step .num {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 28px; background: var(--blue); color: var(--white);
  font-size: 24px; font-weight: 800; display: grid; place-items: center;
}
.plan-step h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.plan-step p { font-size: 16px; color: var(--ink-2); margin-top: 6px; }
.plan-gap { width: 2px; height: 20px; margin-left: 27px; background: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 15px; }
.chip { padding: 6px 12px; border-radius: 8px; }
.chip.r { background: var(--red-bg); }
.chip.g { background: var(--green-bg); }
.chips span:last-child { color: var(--ink-2); }
@media (max-width: 900px) { .price-row { grid-template-columns: minmax(0, 1fr); } }

.demo {
  padding: 32px 40px; border: 2px dashed var(--ink); border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.demo h3 { font-size: 24px; font-weight: 700; }
.demo p { font-size: 17px; color: var(--ink-2); margin-top: 6px; }

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

.foot { background: var(--night); color: var(--night-text); }
.foot .w { padding-block: 64px; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot .brand { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; color: var(--white); }
.foot .brand .mark { width: 34px; height: 34px; flex-basis: 34px; }
.foot p { font-size: 16px; line-height: 1.6; margin-top: 12px; }
.foot a { color: var(--night-text); }
.foot a:hover { color: var(--white); }
.foot .right { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; font-size: 16px; }
.foot .right .mail { color: var(--white); font-size: 20px; font-weight: 600; }
@media (max-width: 640px) { .foot .right { align-items: flex-start; } }
