/* topoplan.cloud/free — «Попробовать бесплатно». Основа и цвета — app.css */

a.btn { text-decoration: none; }
body.free main { max-width: 720px; }

.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  color: var(--muted); font-size: 14px; text-decoration: none;
}
.back:hover { color: var(--accent); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* условия */
.terms {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.terms li {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; color: var(--muted);
}
.terms svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.terms b { display: block; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.3; margin-bottom: 1px; }

/* шаги */
#steps { display: grid; gap: 14px; }
.step { padding: 22px 24px; transition: opacity .2s; }
.step-head { display: flex; gap: 14px; align-items: flex-start; }
.step-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.step-head p { margin: 2px 0 0; }
.step-n {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px;
}
.step.done-step .step-n { background: var(--ok-soft); color: var(--ok); }
.step-body { margin: 18px 0 0 44px; }
.step.off { opacity: .5; }
.step.off .step-body { pointer-events: none; user-select: none; }
.step.off .step-body * { cursor: default; }

/* вход */
.btn.tg { background: #2aabee; border-color: transparent; color: #fff; height: 46px; }
.btn.tg:hover { background: #229ed9; }
.btn.tg svg { width: 20px; height: 20px; fill: #fff; }
.or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  color: var(--muted); font-size: 13px;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linkbtn {
  padding: 0; border: 0; background: none; font: inherit; font-size: 14px;
  color: var(--accent); cursor: pointer; text-decoration: none;
}
.linkbtn:hover { text-decoration: underline; }
.linkbtn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.who-line { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.who-line svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.who-line b { font-weight: 650; word-break: break-word; }

/* облако */
.drop.compact { padding: 28px 20px 24px; border-radius: 18px; }
.drop.compact .drop-icon { width: 48px; height: 48px; margin-bottom: 10px; }
.drop.compact .drop-title { font-size: 16.5px; }
.drop.compact .drop-sub { margin: 4px 0 16px; font-size: 13.5px; }
.quota { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quota .bar { flex: 1; }
.quota span { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quota.full span { color: var(--warn); }
.files:empty { display: none; }
.hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.hint.center { text-align: center; margin: 14px 0 0; }

/* заявка */
.field textarea {
  display: block; width: 100%; min-height: 84px; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field span i { font-style: normal; font-weight: 400; color: var(--muted); }
.field.area { max-width: 220px; }
.field input.bad, .field textarea.bad { border-color: var(--err); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* готово */
.done { text-align: center; padding: 36px 28px 30px; }
.done h2 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.done > p { margin: 0 auto; max-width: 480px; }
.done-ic {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
}
.done-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done.used .done-ic { background: var(--accent-soft); color: var(--accent); }
.done-list {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; max-width: 460px;
  margin: 22px auto 0; padding: 16px 18px; text-align: left; font-size: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
}
.done-list:empty { display: none; }
.done-list dt { color: var(--muted); }
.done-list dd { margin: 0; overflow-wrap: anywhere; }
.done-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

@media (max-width: 760px) {
  .terms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .terms { gap: 8px; }
  .terms li { padding: 10px 12px; }
  .step { padding: 18px; }
  .step-body { margin-left: 0; }
  .row2 { grid-template-columns: 1fr; }
  .field.area { max-width: none; }
  .done { padding: 28px 18px 24px; }
  .done-btns .btn { flex: 1 1 100%; }
}
.form-msg.info { background: var(--accent-soft); color: var(--text); }
