/* AI-генератор ТЗ (/tools/ai-spec-generator/). Тексты лендинга, FAQ, кнопки
   и поля — общие классы pk-* из poker.css; поля заявки — est-lead-* из
   estimate.css (страница результата подключает оба файла). */

.sg-landing { max-width: 1100px; padding-top: 60px; padding-bottom: 100px; }
.sg-landing .pk-section, .sg-landing .pk-cta { max-width: 820px; }
.sg-landing .sg-example { max-width: none; }

/* ---------- форма ---------- */
.sg-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; max-width: 820px; }
.sg-field-label { font-size: 15px; font-weight: 600; color: var(--color-ink); padding: 0; }
.sg-idea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 150px; line-height: 1.5; font: inherit; }
.sg-idea-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; margin-top: -4px; }
.sg-examples .pk-link-btn { padding-left: 8px; }
.sg-counter { font-variant-numeric: tabular-nums; }
.sg-questions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.sg-questions-grid .pk-radio { font-size: 15px; }
.sg-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.sg-submit-note { font-size: 13px; line-height: 1.4; flex: 1 1 260px; }
.sg-off { max-width: 820px; padding: 24px; }
.sg-off p { margin: 0; line-height: 1.6; color: var(--color-ink); }
.sg-off a { color: var(--color-accent); }

/* ---------- ТЗ ---------- */
.sg-result-card { padding: 28px; }
.sg-spec { color: var(--color-ink); line-height: 1.6; }
.sg-spec-title { font-family: var(--font-display); font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
.sg-spec-summary { margin: 0 0 8px; font-size: 17px; }
.sg-spec-audience { margin: 0; color: var(--color-ink-muted); }
.sg-spec h3 { font-family: var(--font-display); font-size: 18px; margin: 28px 0 8px; }
.sg-h-note { font-family: var(--font-body, inherit); font-size: 13px; font-weight: 400; color: var(--color-ink-muted); margin-left: 6px; }
.sg-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.sg-phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sg-phase-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--color-ink-muted); margin-bottom: 8px; }
.sg-questions { margin-top: 28px; padding: 4px 20px 18px; border-radius: var(--radius-lg, 12px); background: var(--color-accent-soft); }
.sg-questions h3 { margin-top: 16px; }

/* уточнение ТЗ по ответам на открытые вопросы */
.sg-refine-intro { margin: 0 0 12px; font-size: 14px; color: var(--color-ink-muted); }
.sg-qa-list { gap: 14px; }
.sg-qa-list label { display: block; margin-bottom: 6px; }
.sg-qa-input { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 15px; min-height: 44px; }
.sg-refine .sg-submit-row { margin-top: 14px; }
.sg-refine .cf-turnstile { margin-top: 14px; }
.sg-version { margin: -12px 0 20px; font-size: 15px; color: var(--color-ink); }
.sg-version a, .sg-hours-was { color: var(--color-ink-muted); }
.sg-version a { color: var(--color-accent); }
.sg-hours-was { font-family: var(--font-body, inherit); font-size: 15px; }

/* ---------- страница результата ---------- */
.sg-result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sg-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.sg-aside-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sg-hours { font-family: var(--font-display); font-size: 26px; line-height: 1.25; margin: 0; color: var(--color-ink); }
.sg-weeks { font-family: var(--font-body, inherit); font-size: 14px; color: var(--color-ink-muted); }
.sg-hours-note { margin: 0; font-size: 13px; line-height: 1.5; }
.sg-hours-later { margin: 0; font-size: 14px; color: var(--color-ink); line-height: 1.5; }
.sg-hours-later[hidden] { display: none; }
.sg-hours-note a { color: var(--color-accent); }
.sg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-action-status { margin: 0; font-size: 13px; min-height: 1em; }
.sg-lead-intro { margin: 0; font-size: 13px; line-height: 1.5; }
.sg-again { color: var(--color-accent); font-size: 14px; text-align: center; }

.sg-wait { max-width: 820px; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.sg-wait-text { margin: 0; font-size: 17px; color: var(--color-ink); line-height: 1.5; max-width: 560px; }
.sg-wait-note { margin: 0; font-size: 14px; max-width: 560px; }
.sg-wait-actions { margin: 6px 0 0; }
.sg-wait-actions[hidden], .sg-wait-note[hidden] { display: none; }
.sg-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--color-hairline); border-top-color: var(--color-accent);
  animation: sg-spin 1s linear infinite;
}
.sg-wait-failed .sg-spinner { display: none; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sg-spinner { animation-duration: 3s; } }
.sg-your-idea { max-width: 820px; margin-top: 16px; }
.sg-idea-text { white-space: pre-wrap; }

@media (max-width: 900px) {
  .sg-result-layout { grid-template-columns: minmax(0, 1fr); }
  .sg-aside { position: static; }
  .sg-questions-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sg-landing { padding-top: 32px; }
  .sg-form, .sg-result-card { padding: 18px; }
  .sg-phases { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
