/* web/static/css/check.css
   Страница /check поверх site.css. Первый экран и цифры — как на /documents и /rkn (hero--page, hfacts). */
:root { --band: #F7F7F8; }
.page .h2 { font: 500 40px/1.1 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.page .lead { margin-top: 16px; max-width: 38em; font-size: 18px; color: var(--text2); }
.page .section { padding: 96px 0; }
.section--band { background: var(--band); }

/* первый экран */
.hero.hero--page { padding-bottom: 0; }
.hero.hero--page::before { content: ""; position: absolute; left: 50%; top: -300px; bottom: auto; width: 1000px; height: 640px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(216, 242, 106, .22), transparent); pointer-events: none; }
.hero--page .hero__body { position: relative; max-width: 900px; margin: 0 auto; padding: 72px 0 0; text-align: center; }
.hero__kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--on-dark); font-size: 14px; }
.hero--page .hero__title { margin-top: 22px; font: 500 56px/1.06 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.hero--page .hero__lead { margin: 22px auto 0; max-width: 34em; color: var(--on-dark); font-size: 18px; }
.hero--scanning .hfacts { display: none; }
.hero.hero--page.hero--scanning { padding-bottom: 72px; }

.hfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px dashed rgba(255, 255, 255, .18); text-align: left; }
.hfacts__cell { padding: 28px 28px 44px; }
.hfacts__cell + .hfacts__cell { border-left: 1px dashed rgba(255, 255, 255, .18); }
.hfacts__num { font: 500 30px/1.1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.hfacts__num--lime { color: var(--lime); }
.hfacts__num--red { color: #F07A66; }
.hfacts__label { margin-top: 8px; color: var(--on-dark); font-size: 15px; line-height: 1.45; }

/* что проверяем */
.ck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.ck__card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; background: var(--fog); }
.ck__title { font: 500 18px/1.3 var(--display); letter-spacing: -0.015em; }
.ck__text { font-size: 15px; color: var(--text2); }
.ck__fine { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.ck__fine span { color: var(--muted); }
.ck__fine b { font-weight: 600; white-space: nowrap; }

/* пример отчёта */
.sample { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.howto { display: grid; gap: 18px; margin-top: 32px; }
.howto__item { display: flex; gap: 16px; }
.howto__item i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 14px var(--display); font-style: normal; }
.howto__item b { display: block; font-weight: 500; }
.howto__item span { font-size: 15px; color: var(--text2); }
.rep { padding: 28px; border-radius: var(--r-panel); background: #fff; box-shadow: 0 30px 60px rgba(23, 24, 26, .08); }
.rep__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rep__dom { font: 500 20px/1.2 var(--display); }
.rep__sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.rep__total { text-align: right; }
.rep__total b { display: block; font: 500 22px/1.1 var(--display); color: var(--bad); white-space: nowrap; }
.rep__total span { font-size: 13px; color: var(--muted); }
.rep__row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rep__row:last-child { padding-bottom: 0; border-bottom: 0; }
.rep__row b { display: block; font-weight: 500; }
.rep__row span { font-size: 14px; color: var(--text2); }
.rep__row em { margin-left: auto; font-size: 14px; font-style: normal; color: var(--text2); white-space: nowrap; }
.rep__dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--bad); }
.rep__dot--warn { background: #E8A93A; }
.rep__dot--ok { background: var(--ok); }

/* финал */
.page .cta { padding-top: 0; }
.cta__box { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 64px; border-radius: var(--r-panel); background: var(--lime); }
.cta__text { margin-top: 14px; font-size: 18px; color: #3A4012; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cta__ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(23, 24, 26, .35); }
.cta__ghost:hover { background: none; box-shadow: inset 0 0 0 1px var(--ink); }

@media (max-width: 900px) {
  .ck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample, .cta__box { grid-template-columns: 1fr; }
  .cta__box { padding: 36px; }
  .cta__actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .page .section { padding: 64px 0; }
  .page .h2 { font-size: clamp(26px, 7vw, 40px); }
  .hero--page .hero__body { padding: 40px 0 0; }
  .hero--page .hero__title { font-size: clamp(28px, 8.4vw, 56px); hyphens: auto; }
  .hfacts { grid-template-columns: 1fr; margin-top: 48px; }
  .hfacts__cell { padding: 20px 0; }
  .hfacts__cell + .hfacts__cell { border-left: 0; border-top: 1px dashed rgba(255, 255, 255, .18); }
  .ck { grid-template-columns: 1fr; }
  .rep { padding: 20px; }
  .rep__head { flex-direction: column; }
  .rep__total { text-align: left; }
  .rep__row { flex-wrap: wrap; }
  .rep__row em { margin-left: 24px; }
  .cta__box { padding: 28px; }
  .cta__actions .btn { flex: 1; }
}

/* ---------- генератор согласия (/soglasie): анкета слева, документ справа ---------- */
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.page .cg-sec { border-top: 0; }
.cg-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--fog); }
.cg-tab { padding: 10px 18px; border-radius: 999px; color: var(--text2); font-size: 15px; line-height: 1; text-decoration: none; }
.cg-tab:hover { color: var(--ink); }
.cg-tab--on, .cg-tab--on:hover { background: var(--ink); color: #fff; }
.cg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; margin-top: 28px; }
.cg-form { display: grid; gap: 14px; }
.cg-step { margin: 0; padding: 22px 24px 24px; border: 0; border-radius: 22px; background: var(--fog); }
.cg-step__title { display: flex; align-items: center; gap: 10px; padding: 0; font: 500 17px/1.3 var(--display); letter-spacing: -0.015em; }
.cg-step__title i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 13px/1 var(--display); font-style: normal; }
.cg-field { display: block; margin-top: 14px; }
.cg-field > span { display: block; margin-bottom: 6px; color: var(--text2); font-size: 14px; }
.cg-input { display: block; width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 16px var(--sans); outline: 0; transition: box-shadow .15s; }
.cg-input:focus { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--ring); }
.cg-org { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 0 12px; }
.cg-org[hidden] { display: none; }
.cg-field--wide { grid-column: 1 / -1; }
.cg-hint { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.cg-hint:empty { display: none; }
.cg-link { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--text2); font: 14px var(--sans); text-decoration: underline; text-decoration-color: var(--dot); text-underline-offset: 4px; cursor: pointer; }
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cg-chip { position: relative; cursor: pointer; }
.cg-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cg-chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text2); font-size: 14.5px; line-height: 1.2; transition: background-color .15s, color .15s; }
.cg-chip input:checked + span { background: var(--ink); box-shadow: none; color: #fff; }
.cg-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.cg-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; color: var(--text2); font-size: 14.5px; line-height: 1.4; cursor: pointer; }
.cg-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.cg-check--sm { font-size: 13.5px; }
.cg-check a, .cg-send__policy a { color: inherit; }
.cg-send__policy { margin-top: 10px; color: #3A4012; font-size: 13px; }

.cg-doc { position: sticky; top: 24px; display: grid; gap: 14px; }
.cg-paper { border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(23, 24, 26, .07); overflow: hidden; }
.cg-paper__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.cg-paper__state { color: var(--muted); font-size: 13px; }
.cg-copy { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fog); color: var(--ink); font: 500 13.5px var(--sans); cursor: pointer; white-space: nowrap; }
.cg-copy:hover { background: #ECEDEF; }
.cg-paper__body { max-height: 62vh; overflow: auto; padding: 24px 28px 28px; font-size: 14.5px; line-height: 1.65; }
.cg-paper__body h1 { margin: 0 0 14px; font: 500 20px/1.25 var(--display); letter-spacing: -0.02em; }
.cg-paper__body p { margin-top: 12px; }
.cg-paper__body ul { margin: 8px 0 0; padding-left: 18px; list-style: disc; }
.cg-paper__body li + li { margin-top: 4px; }
.cg-send { padding: 20px 22px 22px; border-radius: 22px; background: var(--lime); }
.cg-send__title { display: block; font: 500 16px/1.3 var(--display); letter-spacing: -0.01em; }
.cg-send__row { display: flex; gap: 8px; margin-top: 12px; }
.cg-send__row .cg-input { flex: 1; min-width: 0; box-shadow: inset 0 0 0 1px rgba(23, 24, 26, .15); }
.cg-send .cg-check { color: #3A4012; }
.cg-send__msg { margin-top: 10px; font-size: 14px; color: #3A4012; }
.cg-send__msg:empty { display: none; }
.cg-send__msg--ok { font-weight: 500; }
.cg-send__msg--bad { color: #A8392A; }
@media (max-width: 960px) {
  .cg { grid-template-columns: 1fr; }
  .cg-doc { position: static; }
}
@media (max-width: 640px) {
  .cg-step, .cg-send { padding: 18px; }
  .cg-org { grid-template-columns: 1fr; }
  .cg-send__row { flex-direction: column; }
  .cg-paper__body { padding: 18px; }
  .cg-tabs { display: flex; }
  .cg-tab { flex: 1; text-align: center; padding: 10px 8px; font-size: 14px; }
}

/* ---------- /tarify ---------- */
.ck__card--link { color: var(--ink); text-decoration: none; transition: background-color .15s; }
.ck__card--link:hover { background: #ECEDEF; }
.section--band .ck__card { background: #fff; }
.section--band .ck__card--link:hover { background: var(--fog); }
.page .plans { margin-top: 36px; }
