:root {
  --bg: #f3f6fb; --card: #fff; --text: #1a2233; --muted: #5d6b82; --line: #d9e0ec;
  --primary: #1f6feb; --primary-d: #1757b8; --ok: #17934a; --ok-bg: #e5f6ec; --bad: #c8302f; --bad-bg: #fdecec;
  --warn-bg: #fff6df; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.top { background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.top form { margin: 0; }
.wrap { max-width: 600px; margin: 0 auto; padding: 16px 16px 64px; }
.wrap.wide { max-width: 1000px; }
h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 6px; }
h2 { font-size: 22px; margin: 24px 0 8px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card.ok { border-color: #a9dcbe; }
label, .label { display: block; font-weight: 600; margin: 14px 0 6px; }
.hint { color: var(--muted); font-size: 15px; margin: 4px 0 0; font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 52px; font: inherit; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible { outline: 3px solid #9cc2ff; border-color: var(--primary); }
.err { color: var(--bad); font-weight: 600; margin: 6px 0 0; font-size: 16px; }
input.bad { border-color: var(--bad); }
.btn, button.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 10px 18px;
  font: inherit; font-weight: 700; color: #fff; background: var(--primary); border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; margin: 10px 0; text-align: center; }
.btn:hover { background: var(--primary-d); }
.btn.ok { background: var(--ok); } .btn.bad { background: var(--bad); }
.btn.light { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn.grey { background: #fff; color: var(--text); border: 2px solid var(--line); }
.btn.small { min-height: 44px; width: auto; display: inline-flex; padding: 6px 14px; margin: 0; font-size: 16px; }
.btn[disabled] { background: #c5cedd; color: #fff; cursor: not-allowed; border-color: #c5cedd; }
button.link { background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; padding: 8px; min-height: 44px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 0 0 auto; }
.msg { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-weight: 600; }
.msg.ok { background: var(--ok-bg); color: #0f6b34; } .msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg.info { background: var(--warn-bg); color: #6b4e00; font-weight: 500; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; font-weight: 600; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 17px; }
.seg input:checked + span { border-color: var(--primary); background: #e8f0fe; color: var(--primary-d); }
.seg input:focus-visible + span { outline: 3px solid #9cc2ff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.check input { width: 28px; height: 28px; flex: 0 0 28px; margin: 0; }
.pw { position: relative; } .pw input { padding-right: 110px; }
.pw button { position: absolute; right: 4px; top: 4px; min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.steps { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; margin-top: 22px; }
.rules { background: var(--warn-bg); border-radius: var(--radius); padding: 12px 16px; }
.rules ul { margin: 6px 0 0; padding: 0; list-style: none; } .rules li { margin: 6px 0; }
.progress { height: 14px; background: #dde5f2; border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.progress i { display: block; height: 100%; background: var(--ok); }
.slot { display: flex; gap: 12px; }
.slot .num { flex: 0 0 34px; height: 34px; border-radius: 6px; background: #1a2233; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.slot .body { flex: 1; min-width: 0; }
.slot h3 { margin: 0 0 4px; font-size: 18px; } .slot .when { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.status { display: inline-block; border-radius: 99px; padding: 2px 12px; font-size: 15px; font-weight: 700; }
.status.no { background: #e8ecf3; color: var(--muted); } .status.yes { background: var(--ok-bg); color: #0f6b34; }
.fname { word-break: break-word; font-weight: 600; margin: 6px 0; }
.upload { position: relative; display: block; margin: 0; }
.upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.upload .btn { margin: 4px 0; pointer-events: none; }
.drop { border: 3px dashed var(--primary); border-radius: var(--radius); background: #eef4ff; text-align: center; padding: 34px 14px; font-weight: 700; color: var(--primary-d); position: relative; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.tabs a { text-align: center; padding: 12px 8px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--text); font-weight: 700; text-decoration: none; }
.tabs a.on { border-color: var(--primary); background: #e8f0fe; color: var(--primary-d); }
.filelist { list-style: none; margin: 0; padding: 0; }
.filelist li { border-top: 1px solid var(--line); padding: 12px 0; } .filelist li:first-child { border-top: 0; }
.meta { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 14px; }
.tag { background: #ffe9a8; color: #6b4e00; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 800; }
.clients { list-style: none; padding: 0; margin: 0; }
.clients a.item { display: block; text-decoration: none; color: inherit; }
.big-table { display: none; }
.linkbox { word-break: break-all; background: #f1f5fb; border-radius: 10px; padding: 10px; font-size: 15px; margin: 8px 0; }
.sticky-act { display: flex; gap: 8px; flex-wrap: wrap; } .sticky-act > * { flex: 1 1 180px; }
.center { text-align: center; }
@media (min-width: 760px) {
  .big-table { display: table; } .small-list { display: none; }
  .btn { width: auto; display: inline-flex; padding: 10px 24px; } .btn.block { width: 100%; display: flex; }
  .wrap { padding-top: 28px; }
}

/* Блок «Что это / Для чего это / Что нужно сделать» */
.guide { margin: 14px 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.guide .g-item { padding: 12px 16px; border-top: 1px solid var(--line); }
.guide .g-item:first-child { border-top: 0; }
.guide .g-item p { margin: 0; font-size: 16px; line-height: 1.4; }
.guide .g-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.guide .g-todo { background: #eef4ff; border-top-color: #bcd3ff; }
.guide .g-todo .g-label { color: var(--primary-d); }
.guide ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.guide li { counter-increment: s; position: relative; padding: 2px 0 2px 36px; margin: 6px 0; font-size: 16px; line-height: 1.4; }
.guide li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.guide.compact { margin: 8px 0 14px; } .guide.compact .g-item { padding: 10px 14px; }
@media (min-width: 900px) {
  .wrap.wide .guide { display: grid; grid-template-columns: 1fr 1.15fr 1.45fr; }
  .wrap.wide .guide .g-item { border-top: 0; border-left: 1px solid var(--line); }
  .wrap.wide .guide .g-item:first-child { border-left: 0; }
  .wrap.wide .guide .g-todo { border-left-color: #bcd3ff; }
}
.footer { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 16px 32px; }
.footer-link { color: inherit; text-decoration: none; }
