* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}
h1, h2, .display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--header-bg); border-bottom: var(--header-border, none);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--logo-radius, 8px);
  background: var(--logo-bg); border: var(--logo-border, none);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-name { color: var(--header-text); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a, .nav-links span { color: var(--header-nav-text); font-size: 14px; text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast, #fff); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.btn-ghost { background: transparent; color: var(--header-text); border: 1px solid var(--ghost-border); padding: 10px 18px; font-size: 13.5px; }

/* Hero */
.hero { background: var(--hero-bg); padding: 56px 24px 64px; background-image: var(--hero-grid, none); background-size: 32px 32px; }
.hero-inner { max-width: 1160px; margin: 0 auto; display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.hero-copy { flex: 1 1 420px; min-width: 280px; }
.eyebrow { display: inline-block; color: var(--eyebrow-color); font-size: 12.5px; letter-spacing: 0.08em; border: 1px solid var(--eyebrow-border); border-radius: 20px; padding: 6px 14px; margin-bottom: 22px; }
.hero-copy h1 { color: var(--hero-title-color); font-size: 36px; line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 20px; }
.hero-copy p { color: var(--hero-text); font-size: 16.5px; line-height: 1.6; max-width: 460px; margin: 0 0 28px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { color: var(--hero-text-dim); font-size: 13.5px; }
.hero-visual { flex: 0 1 340px; min-width: 240px; }
.hero-visual img { width: 100%; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.25); }

/* Steps */
.steps { padding: 64px 24px; background: var(--surface); }
.steps h2 { font-size: 24px; font-weight: 600; margin: 0 0 40px; text-align: center; }
.steps-grid { max-width: 1160px; margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap; }
.step-card { flex: 1 1 260px; padding: 28px; border: 1px solid var(--border); border-radius: var(--card-radius, 10px); background: var(--card-bg, transparent); }
.step-icon { width: 42px; height: 42px; border-radius: var(--icon-radius, 8px); background: var(--icon-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--accent); }
.step-num { color: var(--accent); font-size: 12.5px; margin-bottom: 8px; font-weight: 600; }
.step-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.step-desc { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* Trust strip */
.trust-strip { padding: 28px 24px 44px; background: var(--surface); border-top: 1px solid var(--border); }
.trust-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-label { color: var(--text-muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.trust-item { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 14px; }

/* Examples */
.examples { padding: 64px 24px; background: var(--bg); }
.examples h2 { font-size: 24px; font-weight: 600; margin: 0 0 12px; text-align: center; }
.examples-intro { max-width: 640px; margin: 0 auto 40px; text-align: center; color: var(--text-muted); font-size: 15px; }
.examples-grid { max-width: 1160px; margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.example-card { flex: 1 1 260px; max-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius, 10px); overflow: hidden; }
.example-card img { width: 100%; display: block; }
.example-card .caption { padding: 14px 16px; font-size: 13.5px; color: var(--text-muted); }

/* Простой блок "загрузили -> получили", без пояснительных линий/измерений — только сам факт
   превращения обычного фото в готовое на документ (см. examples section). */
.source-result { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.source-result-col { flex: 1 1 220px; max-width: 260px; text-align: center; }
.source-result-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.source-result-col img { width: 100%; border-radius: var(--card-radius, 10px); border: 1px solid var(--border); display: block; }
.source-result-arrow { font-size: 28px; color: var(--accent); flex: 0 0 auto; }
@media (max-width: 640px) { .source-result-arrow { transform: rotate(90deg); } }

/* Pricing */
.pricing { padding: 48px 24px 64px; background: var(--surface); text-align: center; }
.pricing p { max-width: 620px; margin: 0 auto; color: var(--text); font-size: 16px; line-height: 1.6; }

/* Document catalog */
.catalog { padding: 56px 24px; background: var(--surface); }
.catalog h2 { font-size: 22px; font-weight: 600; margin: 0 0 28px; text-align: center; }
.catalog-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.catalog-grid a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--card-radius, 8px); color: var(--text); font-size: 14px; text-decoration: none; }
.catalog-grid a:hover { border-color: var(--accent); color: var(--accent); }

/* Document detail page */
.doc-page { padding: 56px 24px 72px; background: var(--surface); }
.doc-page .wrap { max-width: 760px; }
.doc-page h1 { font-size: 30px; margin: 0 0 18px; }
.doc-page .fact { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-bottom: 18px; }
.doc-page .angle { font-size: 16px; line-height: 1.6; margin-bottom: 28px; }
.doc-page .spec-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.doc-page .spec-list li { background: var(--bg); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; }
.doc-page .spec-list b { display: block; font-size: 15px; margin-top: 2px; }
.doc-page .disclaimer { font-size: 13px; color: #7A5B00; background: #FFF3CD; padding: 10px 14px; border-radius: 6px; margin-bottom: 28px; }

/* Wizard */
.wizard { padding: 48px 16px 64px; }
.wizard-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; }
.step-form { display: none; padding: 8px 0; }
.step-form.active { display: block; }
button { font-family: inherit; }
select, input[type=file] { display: block; width: 100%; margin: 10px 0; font-size: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; background: var(--surface); color: var(--text); }
#gallery img, #bundleResult img { width: 100%; border-radius: 8px; margin-bottom: 10px; display: block; }
.status { color: var(--text-muted); font-size: 14px; min-height: 1.2em; }
.price { font-weight: 700; }
.tips { background: var(--bg); border-radius: 8px; padding: 14px 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.tips ul { margin: 6px 0 0; padding-left: 18px; }
.tips li { margin-bottom: 4px; }
.progress { display: none; height: 6px; background: var(--border); border-radius: 3px; margin: 12px 0; overflow: hidden; }
.progress .bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.15s ease; }
.paywall { background: var(--bg); border-radius: 8px; padding: 16px; margin-top: 16px; }
.bundle-offer { background: #FFF8E6; border: 1px solid #F0D98C; border-radius: 8px; padding: 14px; margin-top: 12px; color: #4a3c05; }
.bundle-offer .save { color: #1A7D34; font-weight: 600; }
.bundle-offer button { background: #B8860B; margin-top: 10px; color: #fff; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; }
.bundle-group { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.bundle-group h3 { font-size: 15px; margin: 0 0 8px; }
.enhance-warning { font-size: 13px; color: #7A5B00; background: #FFF3CD; padding: 9px 12px; border-radius: 6px; margin: 10px 0 8px; }
.enhance-toggle { background: var(--surface); color: var(--text); border: 1px solid var(--border); margin-bottom: 10px; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.preview-note { background: #FFF3CD; color: #7A5B00; padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; margin: 12px 0; font-size: 14px; }
.checklist li { margin-bottom: 7px; }
.checklist .ok { color: var(--success); }
.checklist .bad { color: #C0392B; }
.compliance-note { font-size: 13px; color: #7A5B00; background: #FFF3CD; padding: 9px 12px; border-radius: 6px; margin-top: 10px; }
.guides-block { margin: 16px 0; }
.guides-block img { width: 100%; border-radius: 8px; }
.guides-block p { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.spec-table td { padding: 7px 4px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--text-muted); }
.spec-table td:last-child { text-align: right; font-weight: 500; }
h1.wizard-title { font-size: 20px; margin: 0 0 18px; font-weight: 600; }

footer { padding: 28px 24px; text-align: center; color: var(--text-muted); font-size: 13px; background: var(--surface); border-top: 1px solid var(--border); }

@media (max-width: 720px) {
  .nav-links span, .nav-links a.nav-secondary { display: none; }
  .hero-copy h1 { font-size: 28px; }
  .hero-visual { display: none; }
  .steps h2 { font-size: 21px; }
}
