/* ================================================================
   proverka-po-fio.ru — официальный, тёплый, доверительный стиль
   Палитра: глубокий индиго + янтарный акцент + тёплый белый
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1E3A8A;   /* blue-800 — основной */
  --navy-dark:   #1e2e6e;
  --navy-light:  #EFF6FF;   /* blue-50 */
  --blue-mid:    #3B82F6;   /* blue-500 */
  --amber:       #F59E0B;   /* amber-400 */
  --amber-dark:  #D97706;
  --green:       #059669;   /* emerald-600 */
  --rose:        #E11D48;   /* rose-600 */
  --bg:          #FAFAF8;   /* тёплый белый */
  --surface:     #FFFFFF;
  --text:        #111827;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(30,58,138,.10);
  --shadow-lg:   0 8px 32px rgba(30,58,138,.14);
  --font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:       1080px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Утилиты ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 720px; }

/* ── Шапка ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.2px;
}
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.header-example {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: border-color .2s, background .2s;
}
.header-example:hover { border-color: var(--navy); background: var(--navy-light); }

/* ── Герой ── */
.hero {
  background: linear-gradient(160deg, #EFF6FF 0%, #F0FDF4 50%, #FAFAF8 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px 88px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.20);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Поисковая карточка ── */
.search-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 22px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 28px;
}
.search-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.search-row {
  display: flex;
  gap: 10px;
}
.search-row input[type="text"] {
  flex: 1;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg);
}
.search-row input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(30,58,138,.08);
  background: #fff;
}
.search-row input::placeholder { color: #B0BAC9; }
.btn-primary {
  height: 52px;
  padding: 0 28px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--navy-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .55; cursor: default; }

.error-msg {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: var(--radius-sm);
  font-size: 13px;
  padding: 10px 14px;
  margin-top: 12px;
}
.error-msg.visible { display: block; }

.search-tip {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* ── Знаки доверия ── */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(30,58,138,.75);
}
.trust-item svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* ── Заголовки секций ── */
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: center;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
}

/* ── Что вы узнаете ── */
.what-section { padding: 80px 0; background: var(--surface); }
.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.what-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg);
  transition: box-shadow .2s, transform .2s;
}
.what-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.what-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.what-icon svg { width: 26px; height: 26px; }
.what-icon--blue  { background: #EFF6FF; color: var(--navy); }
.what-icon--amber { background: #FFFBEB; color: var(--amber-dark); }
.what-icon--rose  { background: #FFF1F2; color: var(--rose); }

.what-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.what-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

/* ── Как работает ── */
.how-section { padding: 80px 0; background: var(--navy-light); }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 0 16px;
}
.step-arrow {
  font-size: 28px;
  color: var(--amber);
  align-self: center;
  padding: 0 8px;
  margin-top: -16px;
  list-style: none;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── FAQ ── */
.faq-section { padding: 80px 0; background: var(--surface); }
.faq-list { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.faq-item[open] { background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  gap: 16px;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 18px; }
.faq-a p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-a p + p { margin-top: 10px; }

/* ── Подвал ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
}
.footer-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand {}
.footer-logo {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.2px;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  max-width: 220px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 32px;
  font-size: 12px;
  color: rgba(255,255,255,.30);
  text-align: center;
}

/* ================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ================================================================ */

/* Герой внутренней страницы */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e40af 100%);
  color: #fff;
  padding: 48px 32px 52px;
  text-align: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.70); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { font-size: 10px; opacity: .5; }
.page-hero h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.page-hero-lead {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Основной контент */
.inner-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

/* Prose — читаемый текст */
.prose {}
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.3px;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 2px solid var(--navy-light);
}
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}
.prose p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose p strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol {
  padding-left: 0;
  list-style: none;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose ul li, .prose ol li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.prose ul li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-mid);
  flex-shrink: 0;
  margin-top: 8px;
}
.prose ol { counter-reset: steps; }
.prose ol li { counter-increment: steps; }
.prose ol li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Инфо-блок */
.info-box {
  background: var(--navy-light);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.info-box p { margin: 0; color: var(--navy); }

/* Карточки источников */
.source-cards { display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.source-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}
.source-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.source-card-icon { font-size: 28px; }
.source-card-name { font-size: 17px; font-weight: 700; color: var(--navy); }
.source-card-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--navy-light);
  color: var(--navy);
  border-radius: 20px;
  padding: 2px 10px;
  margin-left: auto;
}
.source-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.source-card-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.source-meta-item { font-size: 12px; color: var(--text-muted); }
.source-meta-item strong { color: var(--text); font-weight: 600; }

/* Контакты */
.contact-methods { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.contact-method-icon { font-size: 24px; flex-shrink: 0; }
.contact-method-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.contact-method-value { font-size: 15px; color: var(--navy); }
.contact-method-value a { color: var(--navy); text-decoration: none; }
.contact-method-value a:hover { text-decoration: underline; }
.contact-method-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* API заглушка */
.api-soon-card {
  background: linear-gradient(135deg, var(--navy-light), #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 24px 0;
}
.api-soon-icon { font-size: 48px; margin-bottom: 16px; }
.api-soon-title { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.api-soon-text { font-size: 16px; color: var(--text-muted); max-width: 480px; margin: 0 auto 24px; }
.api-feature-list { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.api-feature-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Мета документа */
.doc-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.doc-meta span strong { color: var(--text); font-weight: 600; }

/* Методология */
.method-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.method-step:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.method-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.method-step-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.method-step-body p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── Autocomplete ── */
.ac-wrapper { position: relative; }
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  overflow: hidden;
}
.ac-item {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  transition: background .12s;
  outline: none;
}
.ac-item:hover,
.ac-item:focus {
  background: var(--navy-light);
  color: var(--navy);
}

/* ── Адаптив ── */
@media (max-width: 680px) {
  .hero { padding: 52px 20px 60px; }
  .search-card { padding: 20px 16px 16px; }
  .search-row { flex-direction: column; }
  .btn-primary { height: 48px; }
  .steps { flex-direction: column; align-items: center; gap: 24px; }
  .step-arrow { transform: rotate(90deg); margin: 0; padding: 4px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .what-section, .how-section, .faq-section { padding: 52px 0; }
  .footer-body { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 20px; }
  .footer-brand { grid-column: span 2; }
  .inner-main { padding: 36px 20px 56px; }
  .page-hero { padding: 36px 20px 40px; }
}
