/* ============ ПЕРЕМЕННЫЕ + БАЗА ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-dark: #1a1f36;
  --fg: #1a1f36;
  --fg-muted: #6b7280;
  --primary: #ff5a3c;
  --primary-dark: #e0492f;
  --primary-soft: #fff5f2;
  --success: #1aab64;
  --success-soft: #e6f7ee;
  --warn: #f0a929;
  --warn-soft: #fff7d8;
  --error: #d6312b;
  --error-soft: #fdecec;
  --border: #e6e8ee;
  --shadow-sm: 0 2px 8px rgba(20, 30, 80, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 30, 80, 0.06);
  --shadow-lg: 0 16px 48px rgba(20, 30, 80, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; height: 100%; }
body {
  margin: 0; padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; }
h1 { font-size: 52px; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 15px; font-weight: 600; }

.muted { color: var(--fg-muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.hl { color: var(--primary); }

.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto 48px;
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 90, 60, 0.30);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--fg-muted); font-weight: 500; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav-links a {
  color: var(--fg);
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--primary); text-decoration: none; }

/* ============ HERO ============ */
.hero {
  padding: 70px 0 80px;
  background: linear-gradient(180deg, #fff5f2 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 90, 60, 0.2);
}
.hero h1 { margin-bottom: 22px; }
.lead {
  font-size: 19px;
  color: var(--fg-muted);
  margin-bottom: 30px;
}
.lead b { color: var(--fg); }
.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  justify-content: center;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.trust-chip svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }

/* ============ HERO FLOW (3 шага визуально) ============ */
.hero-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.flow-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  flex: 1 1 240px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.flow-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.flow-step-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: var(--shadow-md);
}
.flow-step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon svg { width: 100%; height: 100%; }
.flow-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flow-text b { font-size: 17px; font-weight: 600; }
.flow-text span { font-size: 14px; color: var(--fg-muted); }
.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 28px;
  color: var(--primary);
  font-weight: 700;
  user-select: none;
}
@media (max-width: 720px) {
  .flow-arrow { display: none; }
  .hero-flow { flex-direction: column; align-items: center; }
  .flow-step { max-width: 360px; width: 100%; }
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--bg-dark);
  color: white;
  padding: 32px 0;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-item b {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}
.trust-item span {
  font-size: 14px;
  opacity: 0.85;
}

/* ============ APP SECTION ============ */
.app-section {
  padding: 80px 0;
  background: var(--bg-soft);
}
.app-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
  font-size: 18px;
}
.step-title:first-child { margin-top: 0; }

/* форматы */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
/* Компактные вертикальные карточки форматов (v9.6) */
.format-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  position: relative;
  min-height: 100px;
  font-family: inherit;
}
.format-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.format-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 4px 12px rgba(255, 90, 60, 0.18);
}
.format-card.selected::after {
  content: "✓";
  position: absolute; top: 6px; right: 8px;
  width: 18px; height: 18px;
  background: var(--primary); color: white; border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.format-card .fmt-icon { font-size: 26px; line-height: 1; }
.format-card .fmt-name { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--fg); }
.format-card .fmt-meta { font-size: 11px; color: var(--fg-muted); }

/* dropzone */
.dropzone {
  display: block;
  border: 2px dashed #c5cbd9;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dz-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.dz-text { font-size: 17px; margin-bottom: 6px; font-weight: 500; }
.dz-hint { font-size: 13px; color: var(--fg-muted); }

/* progress */
.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  margin-top: 20px;
}
.progress-title { font-weight: 600; }
.progress-sub { font-size: 14px; color: var(--fg-muted); }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* result */
.result-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 16px;
}
.result-preview { text-align: center; }
#preview-img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.result-preview-note {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 8px;
}
.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}
.price-label { font-size: 15px; color: var(--fg-muted); }
.price-value { font-size: 28px; font-weight: 800; color: var(--primary); }

.quality-warn {
  background: var(--warn-soft);
  border: 1px solid #f0d370;
  color: #7a5d10;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
}
.quality-ok {
  background: var(--success-soft);
  border: 1px solid #9ad9b7;
  color: #155e36;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
}

.paid-block {
  text-align: center;
  padding: 32px;
}
.paid-icon { font-size: 60px; margin-bottom: 12px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
}
.alert-error {
  background: var(--error-soft);
  color: var(--error);
  border: 1px solid #f7c7c5;
}

/* ============ HOW SECTION ============ */
.how-section {
  padding: 90px 0;
  background: white;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.step-card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-icon { font-size: 44px; margin-bottom: 16px; }
.step-num-big {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 44px;
  font-weight: 800;
  color: var(--primary-soft);
  line-height: 1;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--fg-muted); font-size: 15px; margin: 0; }

/* ============ WHY SECTION ============ */
.why-section {
  padding: 90px 0;
  background: var(--bg-soft);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.why-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.why-icon { font-size: 40px; margin-bottom: 14px; }
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--fg-muted); font-size: 15px; margin: 0; }

/* ============ DOCS SECTION ============ */
.docs-section {
  padding: 90px 0;
  background: white;
}
.docs-groups {
  max-width: 1080px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.docs-skeleton {
  text-align: center;
  color: var(--fg-muted);
  padding: 60px 20px;
}
.doc-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.doc-group-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.doc-group-count {
  background: var(--bg-soft);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.doc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  transition: all 0.18s ease;
  overflow: hidden;
}
.doc-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 90, 60, 0.04) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.doc-card:hover::before { opacity: 1; }
.doc-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-card-icon svg { width: 100%; height: 100%; }
.doc-card-body {
  flex: 1;
  min-width: 0;
}
.doc-card h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc-card-size {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.doc-card-hint {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
  opacity: 0.85;
}
.doc-badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff7a4c 0%, #ff5a3c 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(255, 90, 60, 0.3);
}

/* Цветовые акценты по категории — лёгкий тон при hover */
.doc-card-rf_doc:hover { background: linear-gradient(135deg, #fff 0%, #eef3fb 100%); }
.doc-card-visa:hover   { background: linear-gradient(135deg, #fff 0%, #fff0eb 100%); }
.doc-card-work_edu:hover { background: linear-gradient(135deg, #fff 0%, #ebfaf1 100%); }

.docs-note {
  text-align: center;
  color: var(--fg-muted);
  font-size: 15px;
  margin: 32px 0 0;
}

@media (max-width: 640px) {
  .doc-cards { grid-template-columns: 1fr; }
  .doc-card { padding: 14px; }
  .doc-card-icon { width: 44px; height: 44px; }
}

/* ============ PRICING ============ */
.pricing-section {
  padding: 90px 0;
  background: var(--bg-soft);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto 64px;
}
.price-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  border: 2px solid var(--border);
}
.price-card-main {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.price-card-soon { opacity: 0.85; }
.price-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
}
.price-badge-soon { background: var(--fg-muted); }
.price-card h3 { margin-bottom: 4px; }
.price-big {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0 0;
  line-height: 1;
}
.price-sub { color: var(--fg-muted); margin-bottom: 24px; font-size: 14px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.price-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.price-card li:last-child { border-bottom: none; }

.compare-title {
  text-align: center;
  margin: 32px 0 24px;
  font-size: 24px;
}
.compare-table {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.compare-row:last-child { border-bottom: none; }
.compare-row-head {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 14px;
}
.compare-us {
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}
.compare-row > div:nth-child(2) { text-align: center; }

/* ============ ACCEPTANCE ============ */
.acceptance-section {
  padding: 80px 0;
  background: white;
}
.acceptance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.accept-card {
  background: var(--bg-soft);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
}
.accept-card b { display: block; }
.accept-card span { font-size: 13px; color: var(--fg-muted); }

/* ============ GUARANTEE ============ */
.guarantee-section {
  padding: 60px 0;
  background: var(--bg-soft);
}
.guarantee-card {
  background: linear-gradient(135deg, #ff7a4c 0%, #ff5a3c 100%);
  color: white;
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.guarantee-icon {
  font-size: 60px;
  margin-bottom: 12px;
}
.guarantee-card h2 {
  color: white;
  margin-bottom: 16px;
}
.guarantee-card p {
  margin: 0;
  font-size: 17px;
  opacity: 0.95;
}
.guarantee-card a { color: white; text-decoration: underline; }

/* ============ FAQ ============ */
.faq-section {
  padding: 90px 0;
  background: white;
}
.faq-grid {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 12px 0 4px;
  color: var(--fg-muted);
  font-size: 16px;
}

/* ============ CTA FINAL ============ */
.cta-final {
  padding: 80px 0;
  background: var(--bg-dark);
  color: white;
  text-align: center;
}
.cta-final h2 {
  color: white;
  margin-bottom: 12px;
}
.cta-final p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
}

/* ============ FOOTER ============ */
.footer {
  background: #14172a;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.footer h4 {
  color: white;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { padding: 4px 0; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: white; }
.footer .muted { color: rgba(255, 255, 255, 0.5); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal p { margin: 0; font-size: 13px; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--bg-dark);
  color: white;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-width: 880px;
  margin: 0 auto;
}
.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}
.cookie-text {
  font-size: 14px;
  line-height: 1.5;
}
.cookie-text a { color: var(--primary); }

/* ============ ЛЕГАЛЬНЫЕ СТРАНИЦЫ ============ */
.legal-page {
  padding: 60px 0 100px;
  background: white;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}
.legal-content h1 { font-size: 36px; margin-bottom: 12px; }
.legal-content .legal-meta { color: var(--fg-muted); margin-bottom: 36px; font-size: 14px; }
.legal-content h2 { font-size: 22px; margin: 36px 0 12px; }
.legal-content h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-content p { margin: 8px 0; }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content li { margin-bottom: 4px; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
  .acceptance-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .nav-links { display: none; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust-item b { font-size: 24px; }
  .app-card { padding: 24px 18px; }
  .steps-grid, .why-grid, .pricing-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .acceptance-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { flex-direction: column; gap: 8px; }
  .result-row { grid-template-columns: 1fr; }
  .cookie-row { flex-direction: column; }
  .cookie-row .btn { width: 100%; }
  .compare-row { grid-template-columns: 1.4fr 1fr 1fr; padding: 12px; font-size: 14px; }
}

/* ============ v9.4 РЕДИЗАЙН ЛЕНДИНГА ============ */
.container-narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.center-cta { text-align: center; margin-top: 40px; }

/* HERO grid с до/после */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-content h1 { margin: 16px 0; }
.hero-visual { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ba-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); width: 360px; max-width: 100%; aspect-ratio: 3/4; cursor: ew-resize; user-select: none; }
.ba-slider img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.ba-resize { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-right: 3px solid #fff; pointer-events: none; }
.ba-resize img { width: 360px; max-width: none; }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); pointer-events: none; z-index: 2; color: var(--primary); }
.ba-handle svg { width: 16px; height: 16px; }
.ba-label { position: absolute; bottom: 16px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; z-index: 2; }
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; background: var(--success); }

/* ============ MODALS ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; backdrop-filter: blur(4px); }
.modal-content { background: white; border-radius: var(--radius-lg); padding: 30px; width: 100%; max-width: 440px; text-align: center; position: relative; box-shadow: var(--shadow-lg); }
.modal-lg { max-width: 600px; text-align: left; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--fg-muted); }
.modal-img { max-width: 200px; border-radius: var(--radius-md); margin: 20px auto; display: block; box-shadow: var(--shadow-md); }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.modal-actions .btn { flex: 1; }

.orders-list { max-height: 400px; overflow-y: auto; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.order-card { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none !important; color: inherit; transition: border-color 0.2s; }
.order-card:hover { border-color: var(--primary); }
.order-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.order-info { flex: 1; }
.order-info b { display: block; font-size: 15px; margin-bottom: 4px; }
.order-info span { color: var(--fg-muted); font-size: 13px; }

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; z-index: 101; padding: 0; margin-left: auto; }
.mobile-menu-btn span { display: block; width: 100%; height: 2px; background: var(--fg); transition: all 0.3s; border-radius: 2px; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; flex-direction: column; justify-content: center; align-items: center; gap: 32px; font-size: 20px; z-index: 100; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-cta-btn { display: none !important; }
  .nav-row { padding-right: 24px; }
}

/* TRUST BAR */
.trust-bar { background: var(--bg-dark); padding: 28px 0; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-item b { display: block; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.trust-item span { color: #aeb4c9; font-size: 14px; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.step-card { text-align: center; padding: 8px; }
.step-icon { width: 72px; height: 72px; margin: 0 auto 16px; background: var(--success-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step-icon svg { width: 40px; height: 40px; }
.step-num { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--fg-muted); font-size: 15px; }

/* EXAMPLES */
.examples-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.example-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; padding: 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.example-img { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.example-img img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.example-img span { position: absolute; bottom: 8px; left: 8px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; }
.example-img span.ok { background: var(--success); }

/* TIPS */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.tip-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tip-photo { display: block; width: 100%; height: 240px; object-fit: cover; object-position: 50% 22%; background: #f0f0f0; }
.tip-card h3 { margin: 18px 20px 8px; }
.tip-card p { color: var(--fg-muted); font-size: 15px; margin: 0 20px 22px; }

/* WHY */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.why-card { padding: 28px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.why-icon { font-size: 36px; margin-bottom: 12px; }
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--fg-muted); font-size: 15px; }

/* DOCS chips */
.docs-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.doc-chip { padding: 10px 20px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 30px; font-weight: 500; font-size: 15px; }

/* PRICE */
.price-card { max-width: 460px; margin: 40px auto 0; background: #fff; border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 40px; text-align: center; box-shadow: var(--shadow-lg); }
.price-tag { font-size: 56px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.price-name { font-size: 17px; color: var(--fg-muted); margin-bottom: 24px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.price-list li { padding: 8px 0 8px 28px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }

/* FAQ */
.faq-list { margin-top: 32px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; padding: 0; }
.faq-item summary { padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; color: var(--primary); font-size: 22px; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 18px; color: var(--fg-muted); margin: 0; }

/* FINAL CTA */
.final-cta { background: var(--bg-dark); padding: 72px 0; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #aeb4c9; margin: 12px 0 28px; font-size: 18px; }
.btn-white { background: #fff; color: var(--bg-dark); }
.btn-white:hover { background: #f0f0f0; text-decoration: none; }

/* FOOTER */
.footer { padding: 40px 0 100px 0; border-top: 1px solid var(--border); margin-top: auto; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-weight: 700; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-muted); }
.footer-copy { color: var(--fg-muted); font-size: 14px; }

/* MOBILE */
@media (max-width: 880px) {
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .examples-grid { grid-template-columns: 1fr; }
  .tips-grid, .why-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 48px 0; }
}

/* ============ v9.5 загрузчик + overlay + миниатюры + кнопки ============ */
/* APP card */
.app-card { max-width: 860px; margin: 36px auto 0; background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.step-label { display:flex; align-items:center; gap:10px; margin: 24px 0 14px; font-size:17px; }
.step-label:first-child { margin-top: 0; }
.badge-num { width:26px; height:26px; border-radius:50%; background:var(--primary); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; flex-shrink:0; }
.format-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.format-card { padding:12px 14px; border:2px solid var(--border); border-radius:var(--radius-md); cursor:pointer; font-weight:500; font-size:14px; transition:all .15s; background:#fff; }
.format-card:hover { border-color:var(--primary); }
.format-card.selected { border-color:var(--primary); background:var(--primary-soft); font-weight:600; }
.dropzone { display:block; border:2px dashed var(--border); border-radius:var(--radius-md); padding:40px 20px; text-align:center; cursor:pointer; transition:all .15s; }
.dropzone:hover, .dropzone.dragover { border-color:var(--primary); background:var(--primary-soft); }
.dz-icon { font-size:40px; }
.dz-text { font-size:16px; font-weight:500; margin-top:8px; }
.dz-hint { color:var(--fg-muted); font-size:13px; margin-top:6px; }
.error-box { margin-top:16px; padding:16px; background:var(--error-soft); color:var(--error); border-radius:var(--radius-md); }
.result-block { margin-top:24px; }
.result-row { display:grid; grid-template-columns: 280px 1fr; gap:28px; align-items:center; }
.result-preview img { width:100%; border-radius:var(--radius-md); box-shadow:var(--shadow-md); }
.email-input { width:100%; margin-top:16px; padding:14px 16px; font-size:16px; border:2px solid var(--border); border-radius:var(--radius-md); background:#fff; color:var(--fg); transition:border-color .15s; }
.email-input:focus { outline:none; border-color:var(--primary); }
.email-input::placeholder { color:var(--fg-muted); }
.email-hint { margin-top:10px; font-size:13px; color:var(--fg-muted); }
.pay-methods { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 8px; }
.pm { font-size:11px; font-weight:800; letter-spacing:.03em; color:#5b6170; background:#f1f3f6; border:1px solid var(--border); border-radius:5px; padding:5px 9px; }
.pm-sbp { color:#fff; background:linear-gradient(90deg,#1f8efc,#7b3ff2); border:none; }
.pay-trust { display:flex; align-items:center; gap:7px; margin:6px 0 0; font-size:12.5px; color:var(--fg-muted); line-height:1.5; }
.pay-trust svg { width:15px; height:15px; flex-shrink:0; color:#1aab64; }
/* живой счётчик-плашка социального доказательства */
.live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#1aab64; margin-right:7px; vertical-align:middle; animation:live-pulse 1.8s infinite; }
@keyframes live-pulse { 0% { box-shadow:0 0 0 0 rgba(26,171,100,.55); } 70% { box-shadow:0 0 0 7px rgba(26,171,100,0); } 100% { box-shadow:0 0 0 0 rgba(26,171,100,0); } }
.pay-socialproof { margin:6px 0 14px; font-size:13.5px; color:var(--fg-muted); }
.pay-socialproof b { color:var(--fg); }
.pay-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.paid-block { text-align:center; padding:32px; }
.paid-icon { font-size:52px; }
/* HD: ожидание генерации */
.hd-spinner { width:44px; height:44px; margin:18px auto; border:4px solid var(--primary-soft); border-top-color:var(--primary); border-radius:50%; animation:hd-spin .8s linear infinite; }
@keyframes hd-spin { to { transform:rotate(360deg); } }
/* HD: два готовых варианта */
.hd-variants { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin:22px 0 8px; }
.hd-variant { display:flex; flex-direction:column; gap:12px; padding:16px; background:#fff; border:2px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); transition:border-color .15s, box-shadow .15s; }
.hd-variant.chosen { border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-soft); }
.hd-variant-head { display:flex; flex-direction:column; gap:2px; text-align:center; }
.hd-variant-head b { font-size:16px; }
.hd-variant-head span { font-size:12px; color:var(--fg-muted); }
.hd-variant-img { width:100%; border-radius:var(--radius-md); box-shadow:var(--shadow-sm); background:#f4f4f4; }
.hd-variant-dl { width:100%; }
.hd-note { margin-top:14px; font-size:13px; color:var(--fg-muted); }
.hd-quality { margin:6px 0 16px; padding:12px 16px; border-radius:10px; font-size:14px; text-align:left; }
.hd-quality.ok { background:#e6f7ee; color:#15924f; font-weight:600; }
.hd-quality.warn { background:#fff4e5; color:#9a6700; }
.hd-quality ul { margin:8px 0 0; padding-left:18px; font-weight:400; }
@media (max-width:560px) { .hd-variants { grid-template-columns:1fr; } }
.app-tg-hint { text-align:center; margin-top:20px; color:var(--fg-muted); }

/* DOC cards (миниатюры) */
.doc-cards { display:grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap:18px; margin-top:36px; }
.doc-card { display:flex; flex-direction:column; align-items:center; gap:10px; padding:18px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); text-decoration:none; color:var(--fg); transition:all .15s; box-shadow:var(--shadow-sm); }
.doc-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); text-decoration:none; border-color:var(--primary); }
.doc-thumb { width:90px; height:120px; border-radius:8px; background-size:cover; background-position:center; box-shadow:var(--shadow-sm); }
.doc-thumb-emoji { display:flex; align-items:center; justify-content:center; font-size:48px; background:var(--bg-soft); }
.doc-card span { font-weight:600; font-size:14px; text-align:center; }
.docs-more { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:24px; }
.docs-more .doc-chip { padding:8px 16px; background:#fff; border:1px solid var(--border); border-radius:30px; font-size:14px; }

/* PRINT card (скоро) */
.print-card { position:relative; background:linear-gradient(135deg, var(--bg-dark), #2a3052); color:#fff; border-radius:var(--radius-lg); padding:48px; text-align:center; }
.print-card h2 { color:#fff; }
.print-card p { color:#c2c8df; max-width:560px; margin:12px auto 24px; }
.print-badge { position:absolute; top:20px; right:20px; background:var(--warn); color:#222; font-weight:700; padding:6px 14px; border-radius:20px; font-size:13px; }
.print-features { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; }
.print-features span { background:rgba(255,255,255,.1); padding:10px 18px; border-radius:30px; font-size:14px; }

/* FULLSCREEN PROGRESS OVERLAY */
.progress-overlay { position:fixed; inset:0; z-index:2000; background:rgba(255,255,255,.98); display:flex; align-items:center; justify-content:center; }
.po-inner { display:grid; grid-template-columns:1fr 1fr; gap:48px; max-width:900px; width:90%; align-items:center; }
.po-left h2 { font-size:34px; margin-bottom:28px; }
.po-steps { list-style:none; padding:0; margin:0; }
.po-steps li { display:flex; align-items:center; gap:14px; padding:12px 0; font-size:19px; color:var(--fg-muted); font-weight:500; transition:color .3s; }
.po-steps li .po-dot { width:26px; height:26px; border-radius:50%; border:2px solid var(--border); flex-shrink:0; transition:all .3s; position:relative; }
.po-steps li.active { color:var(--fg); }
.po-steps li.active .po-dot { border-color:var(--primary); animation:pulse 1s infinite; }
.po-steps li.done { color:var(--fg); }
.po-steps li.done .po-dot { background:var(--success); border-color:var(--success); }
.po-steps li.done .po-dot::after { content:"✓"; color:#fff; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,90,60,.4)} 50%{box-shadow:0 0 0 8px rgba(255,90,60,0)} }
.po-photo { position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); aspect-ratio:3/4; background:var(--bg-soft); }
.po-photo img { width:100%; height:100%; object-fit:cover; }
.po-scan { position:absolute; left:0; right:0; height:4px; background:linear-gradient(90deg,transparent,#1aab64,transparent); box-shadow:0 0 12px 2px rgba(26,171,100,.6); animation:scan 2s ease-in-out infinite; }
@keyframes scan { 0%{top:0} 50%{top:calc(100% - 4px)} 100%{top:0} }

/* STICKY CTA */
.sticky-cta { position:fixed; left:50%; transform:translateX(-50%); bottom:24px; z-index:900; background:var(--primary); color:#fff; padding:14px 28px; border-radius:40px; font-weight:700; box-shadow:0 8px 24px rgba(255,90,60,.4); text-decoration:none; transition:opacity .2s; }
.sticky-cta:hover { text-decoration:none; background:var(--primary-dark); }

/* SCROLL TOP */
.scroll-top { position:fixed; right:20px; bottom:24px; z-index:901; width:46px; height:46px; border-radius:50%; border:none; background:var(--bg-dark); color:#fff; font-size:22px; cursor:pointer; box-shadow:var(--shadow-md); transition:opacity .2s; }
.scroll-top:hover { background:#000; }

@media (max-width: 880px) {
  .result-row { grid-template-columns:1fr; }
  .po-inner { grid-template-columns:1fr; gap:24px; text-align:center; }
  .po-left h2 { font-size:26px; }
  .po-steps { display:inline-block; text-align:left; }
  .po-photo { max-width:220px; margin:0 auto; }
  /* кнопка наверх НАД cookie-баннером на мобиле, sticky-cta тоже не перекрывает */
  .scroll-top { bottom:130px; right:16px; }
  .sticky-cta { bottom:130px; font-size:14px; padding:12px 20px; }
  .cookie-banner { z-index:1000; }
}

/* ============ v9.6 одежда + счётчик + плашка печати ============ */
.attire-row { display:flex; gap:12px; flex-wrap:wrap; }
.attire-btn { flex:1; min-width:200px; padding:14px 18px; border:2px solid var(--border); border-radius:var(--radius-md); background:#fff; cursor:pointer; font-family:inherit; font-size:15px; font-weight:500; transition:all .15s; text-align:center; }
.attire-btn:hover { border-color:var(--primary); }
.attire-btn.selected { border-color:var(--primary); background:var(--primary-soft); font-weight:600; }

.hero-counter { margin-top:18px; font-size:15px; color:var(--fg-muted); display:inline-flex; align-items:center; justify-content:center; background:#fff; padding:6px 16px; border-radius:30px; border:1px solid var(--border); box-shadow:var(--shadow-sm); }
.hero-counter b { color:var(--primary); font-weight:700; font-size:18px; margin-left:5px; }

.price-soon { margin-top:18px; padding-top:16px; border-top:1px dashed var(--border); font-size:14px; color:var(--fg-muted); }
.price-soon b { color:var(--fg); }

/* ====== МОБИЛЬНАЯ АДАПТИВНОСТЬ HERO (фикс 31.05.2026) ======
   Базовые .hero-grid{1fr 1fr} и .ba-card{width:47%} объявлены НИЖЕ медиа-запросов
   выше по файлу и перебивали их -> на мобиле hero оставался 2-колоночным, и блок
   «было/стало» (47%+47%+стрелка) вылезал за экран, а .hero{overflow:hidden} его
   срезал. Этот блок в КОНЦЕ файла гарантированно выигрывает по порядку источника. */
@media (max-width: 768px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero h1, .hero-content h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; gap: 8px; width: 100%; max-width: 460px; margin: 0 auto; }
  .ba-card { width: auto; flex: 1 1 0; min-width: 0; }
  .ba-arrow { font-size: 20px; }
  /* Блок результата (превью + оплата): в одну колонку, текст не вылезает */
  .result-row { grid-template-columns: 1fr !important; gap: 18px; }
  .result-preview, .result-info { min-width: 0; }
  #preview-img, .result-preview img { max-width: 300px; margin-left: auto; margin-right: auto; }
  .pay-row { 
    flex-direction: column; 
    align-items: stretch; 
    position: sticky; 
    bottom: 0; 
    background: #fff; 
    padding: 15px 0; 
    z-index: 99; 
    border-top: 1px solid var(--border); 
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05); 
    margin-top: 10px;
  }
  .pay-row .btn { width: 100%; }
}

/* Кнопка «Снять селфи камерой» (под зоной загрузки) */
.camera-btn { width: 100%; margin-top: 12px; }

/* Гарантия у кнопки оплаты (драйвер доверия в точке решения) */
.pay-guarantee {
  background: #e9f9f0;
  border: 1px solid #b9e8cd;
  color: #14794a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 4px 0 12px;
}
.pay-guarantee b { color: #0f5c38; }

/* Согласие на обработку ПД (галочка над загрузкой) — крупная, легко тапается, адаптив */
.consent-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:6px 0 14px; padding:8px 6px; border-radius:10px; font-size:14px; color:var(--fg-muted); }
.consent-cb { width:24px; height:24px; flex-shrink:0; accent-color:var(--primary); cursor:pointer; }
.consent-label { cursor:pointer; user-select:none; }
.consent-links { white-space:nowrap; }
.consent-row.consent-need { background:#fff4ef; animation: consentPulse .55s ease 0s 3; }
@keyframes consentPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(255,90,60,0); } 50%{ box-shadow:0 0 0 4px rgba(255,90,60,.30); } }
/* ============ TABS & FILTERS ============ */
.tabs-wrapper { display: flex; gap: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tab-btn { flex: 1; padding: 12px; font-size: 16px; font-weight: 700; color: var(--fg-muted); background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; transition: all 0.2s; margin-bottom: -2px; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content.hidden { display: none; }
.docs-filter-chips { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.docs-filter-chips::-webkit-scrollbar { display: none; }
.filter-chip { padding: 8px 16px; background: white; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--fg); cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ============ GENDER SELECTOR ============ */
.gender-selector { display: flex; gap: 12px; margin-bottom: 16px; padding: 12px 16px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: var(--radius-md); }
.gender-selector label { font-weight: 600; font-size: 15px; color: var(--fg-muted); margin-right: auto; align-self: center; }
.gender-btn { padding: 12px 16px; background: white; border: 1px solid var(--border); border-radius: var(--radius-md); font-weight: 600; color: var(--fg); cursor: pointer; transition: all 0.2s; font-size: 15px; }
.gender-btn:hover { border-color: var(--primary); }
.gender-btn.selected { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* ============ LOADING OVERLAY ============ */
.loading-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(4px); }
.loading-overlay.hidden { display: none !important; }
.loader { width: 48px; height: 48px; border: 5px solid #FFF; border-bottom-color: var(--primary); border-radius: 50%; display: inline-block; box-sizing: border-box; animation: rotation 1s linear infinite; }
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.status-console { margin-top: 24px; background: #1E293B; border-radius: var(--radius-md); padding: 16px; width: 90%; max-width: 400px; color: #38BDF8; font-family: monospace; font-size: 13px; text-align: left; height: 120px; overflow-y: auto; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.status-console.hidden { display: none; }

/* ============ STEP NUM (Fix overlap) ============ */
.step-num { width: 48px; height: 48px; min-width: 48px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 16px; flex-shrink: 0; }

/* ============ BG COLOR ROW ============ */
.bg-color-row { display:flex; gap:12px; align-items:center; margin-bottom:24px; padding:12px 16px; background:#F8FAFC; border:1px solid #E2E8F0; border-radius:var(--radius-md); flex-wrap:wrap; }
.bg-color-row label { font-weight:600; font-size:15px; color:var(--fg-muted); margin-right:auto; }
.bg-color-row .bg-btn-group { display:flex; gap:10px; flex-wrap:wrap; }
.bg-btn { width:32px; height:32px; border-radius:50%; cursor:pointer; padding:0; border:2px solid transparent; transition:transform .15s, border-color .15s; }
.bg-btn:hover { transform:scale(1.1); }
.bg-btn.selected { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-soft); }
.bg-btn[data-bg="WHITE"] { background:#ffffff; border-color:#e2e8f0; }
.bg-btn[data-bg="WHITE"].selected { border-color:var(--primary); }
.bg-btn[data-bg="LIGHTGRAY"] { background:#cbd5e1; }
.bg-btn[data-bg="BLUE"] { background:#3b82f6; }
.bg-btn[data-bg="RED"] { background:#ef4444; }
.bg-btn[data-bg="STUDIO BACKGROUND"] { background:linear-gradient(135deg, #94a3b8, #64748b); }

/* ============ FORMAT CARD STATIC (форма заказа) ============ */
.format-card-static { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:5px; padding:14px 8px; min-height:100px; background:#fff; border:2px solid var(--border); border-radius:var(--radius-md); cursor:pointer; transition:all .15s; font-family:inherit; position:relative; }
.format-card-static:hover { border-color:var(--primary); transform:translateY(-1px); }
.format-card-static.selected { border-color:var(--primary); background:var(--primary-soft); box-shadow:0 4px 12px rgba(255,90,60,.18); }
.format-card-static.selected::after { content:"\2713"; position:absolute; top:6px; right:8px; width:18px; height:18px; background:var(--primary); color:white; border-radius:50%; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.format-card-static .fmt-icon { font-size:26px; line-height:1; }
.format-card-static .fmt-name { font-size:13px; font-weight:600; line-height:1.2; color:var(--fg); }
.format-card-static .fmt-meta { font-size:11px; color:var(--fg-muted); }

/* ============ SIZE GRID ============ */
.size-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }

/* ============ FORMAT REQUIREMENTS BOX ============ */
.format-requirements-box { margin-top:16px; padding:14px 18px; background:#f4f9ff; border:1px solid #d0e2f7; border-radius:var(--radius-md); font-size:14px; line-height:1.6; color:var(--fg); }

/* ============ UPLOAD CONFIRMED CARD ============ */
.upload-confirmed { display:flex; align-items:center; gap:20px; padding:20px; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:var(--radius-md); margin-bottom:8px; }
.upload-confirmed img { width:80px; height:100px; object-fit:cover; border-radius:var(--radius-sm); box-shadow:var(--shadow-sm); flex-shrink:0; }
.upload-confirmed-info { flex:1; min-width:0; }
.upload-status { font-weight:700; color:#15803d; font-size:16px; }
.upload-filename { font-size:13px; color:var(--fg-muted); margin-top:4px; word-break:break-all; }
.upload-analysis { margin-top:10px; display:flex; flex-direction:column; gap:4px; }
.analysis-row { display:flex; align-items:center; gap:8px; font-size:14px; }
.analysis-label { color:var(--fg-muted); font-weight:500; }
.analysis-value { font-weight:600; }
.analysis-value.loading { color:var(--fg-muted); font-weight:400; }
.upload-change-btn { background:none; border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 16px; font-size:13px; cursor:pointer; color:var(--fg-muted); transition:all .15s; flex-shrink:0; align-self:flex-start; }
.upload-change-btn:hover { border-color:var(--primary); color:var(--primary); }

/* ============ DOC CARD ICON + BODY (секция документов) ============ */
.doc-card .doc-card-icon { font-size:36px; line-height:1; flex-shrink:0; }
.doc-card .doc-card-body { display:flex; flex-direction:column; gap:2px; }
.doc-card .doc-card-body h4 { font-size:14px; font-weight:600; margin:0; line-height:1.25; }
.doc-card .doc-card-size { font-size:12px; color:var(--fg-muted); font-weight:500; }

/* ============ INFO SECTIONS (доп. блоки лендинга) ============ */
.info-section { padding:72px 0; }
.info-section.alt-bg { background:var(--bg-soft); }
.info-section h2 { text-align:center; margin-bottom:32px; }
.info-section .lead { text-align:center; max-width:620px; margin:0 auto 40px; }
.selfie-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.selfie-card { text-align:center; padding:24px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); }
.selfie-icon { font-size:40px; margin-bottom:12px; }
.selfie-card h3 { margin-bottom:8px; }
.selfie-card p { color:var(--fg-muted); font-size:15px; margin:0; }
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.feature-card { text-align:center; padding:28px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); }
.feature-icon { font-size:40px; margin-bottom:14px; }
.feature-card h3 { margin-bottom:8px; }
.feature-card p { color:var(--fg-muted); font-size:15px; margin:0; }

@media (max-width:880px) {
  .selfie-grid, .features-grid { grid-template-columns:1fr; }
  .upload-confirmed { flex-direction:column; text-align:center; align-items:center; }
  .upload-change-btn { align-self:center; }
}

