/* Stylistyka spójna z JSC Generatorem: tło gray-50, białe karty, granat #1A1A2E. */
:root {
  --navy: #1A1A2E;
  --navy-hover: #2a2a4e;
  --bg: #f9fafb;
  --line: #e5e7eb;
  --muted: #6b7280;
  --faint: #9ca3af;
  --danger: #ef4444;
  --ok: #276749;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
main { min-height: 100vh; padding: 32px 16px 56px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap.narrow { max-width: 720px; }
.logo { display: flex; justify-content: center; margin-bottom: 24px; }
.logo img { width: 200px; height: auto; }
h1 { font-size: 24px; font-weight: 700; text-align: center; color: var(--navy); margin: 0 0 8px; }
.lead { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 640px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); padding: 24px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } .sticky { position: static; } }

h2 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
label { display: block; font-size: 14px; font-weight: 500; margin: 18px 0 4px; }
label .opt { font-weight: 400; color: var(--faint); }
.example { color: var(--muted); font-size: 12px; font-style: italic; margin: 0 0 6px; line-height: 1.45; }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 14px; color: inherit; background: #fff;
  border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 12px; outline: none; resize: vertical;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 2px var(--navy); border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field-error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--navy-hover); }
.btn:disabled { background: #9ca3af; cursor: default; }
.btn.full { width: 100%; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid #d1d5db; font-weight: 500; padding: 10px 16px; }
.btn.ghost:hover { border-color: var(--navy); background: #fff; }
.actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.status { font-size: 13px; color: var(--muted); margin-top: 12px; min-height: 20px; }
.status.err { color: var(--danger); }
.status.ok { color: var(--ok); }

.empty { border: 1px dashed #d1d5db; border-radius: 8px; padding: 40px 24px; text-align: center; color: var(--muted); font-size: 13px; }
.preview-head { background: #F5F5F7; border-radius: 8px; padding: 14px 16px; margin-bottom: 8px; }
.preview-head .eyebrow { font-size: 12px; color: var(--muted); }
.preview-head .team { font-size: 20px; font-weight: 700; color: var(--navy); }
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
  border-bottom: 2px solid var(--navy); padding-bottom: 4px; margin: 20px 0 8px;
}
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .hub { grid-template-columns: 1fr; } }
.tile { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--navy); box-shadow: 0 4px 12px rgba(26,26,46,.08); }
.tile h2 { font-size: 18px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 14px; margin: 0 0 20px; min-height: 63px; }
.success-box { text-align: center; padding: 16px 8px; }
.success-box .tick { width: 56px; height: 56px; border-radius: 50%; background: #F0FFF4; color: var(--ok); font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: 13px; text-decoration: none; }
.back:hover { color: var(--navy); }
