/* ================================================================
   check-fio.ru — современный, практичный, двухколоночный стиль
   Палитра: насыщенный тёмно-бирюзовый + оранжевый акцент + чистый белый
   ================================================================ */

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

:root {
  --teal:        #0F766E;   /* teal-700 — основной */
  --teal-dark:   #134E4A;   /* teal-900 */
  --teal-mid:    #0D9488;   /* teal-600 */
  --teal-light:  #F0FDFA;   /* teal-50 */
  --teal-soft:   #CCFBF1;   /* teal-100 */
  --orange:      #F97316;   /* orange-500 */
  --orange-dark: #EA580C;   /* orange-600 */
  --rose:        #E11D48;
  --amber:       #D97706;
  --green-dot:   #22C55E;
  --bg:          #FFFFFF;
  --surface:     #F8FAFC;
  --text:        #0F172A;
  --text-muted:  #64748B;
  --border:      #E2E8F0;
  --border-teal: rgba(15,118,110,.2);
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   24px;
  --shadow:      0 4px 20px rgba(15,118,110,.12);
  --shadow-lg:   0 12px 40px rgba(15,118,110,.16);
  --font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:       1120px;
}

@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 32px;
}

/* ── Шапка ── */
.site-header {
  background: var(--teal-dark);
  height: 64px;
  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: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.logo-accent { color: var(--orange); }
.header-nav { display: flex; gap: 4px; }
.header-nav a {
  color: rgba(255,255,255,.70);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.header-nav a:hover { background: rgba(255,255,255,.10); color: #fff; }

/* ── Герой (двухколоночный) ── */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 72px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 100%;
}
.hero-left { max-width: 560px; }
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 16px;
}
.hero-left h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 20px;
}
.h1-accent {
  background: linear-gradient(90deg, var(--orange), #FDBA74);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Форма в герое ── */
#searchForm {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(4px);
}
.search-row {
  display: flex;
  gap: 10px;
}
.search-row input[type="text"] {
  flex: 1;
  height: 52px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 16px;
  font-family: var(--font);
  color: #fff;
  background: rgba(255,255,255,.10);
  outline: none;
  transition: border-color .2s, background .2s;
}
.search-row input:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,.15);
}
.search-row input::placeholder { color: rgba(255,255,255,.45); font-size: 15px; }

.btn-primary {
  height: 52px;
  padding: 0 24px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 4px 16px rgba(249,115,22,.4); }
.btn-primary:disabled { opacity: .5; cursor: default; }

.error-msg {
  display: none;
  background: rgba(220,38,38,.15);
  border: 1px solid rgba(220,38,38,.35);
  color: #FCA5A5;
  border-radius: var(--radius-sm);
  font-size: 13px;
  padding: 10px 14px;
  margin-top: 10px;
}
.error-msg.visible { display: block; }
.search-note { font-size: 13px; color: rgba(255,255,255,.50); margin-top: 12px; }

/* ── Карточка-превью (справа в герое) ── */
.hero-right { display: flex; justify-content: center; }
.preview-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.15);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.preview-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--teal-soft);
}
.preview-name { font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.3; }
.preview-region { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.preview-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  padding: 3px 10px;
}
.badge--blue  { background: #EFF6FF; color: #1D4ED8; }
.badge--amber { background: #FFFBEB; color: #B45309; }
.badge--rose  { background: #FFF1F2; color: #BE123C; }

.preview-section { margin-bottom: 14px; }
.preview-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 3px 0;
}
.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.preview-dot--green { background: #22C55E; }
.preview-dot--gray  { background: #CBD5E1; }
.preview-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

/* ── Полоса статистики ── */
.stats-strip {
  background: var(--teal-dark);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 40px;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.stat-desc { font-size: 13px; color: rgba(255,255,255,.60); margin-top: 2px; }
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* ── Секции источников ── */
.source-section { padding: 80px 0; }
.source-section--light { background: var(--bg); }
.source-section--teal  { background: var(--teal-light); }

.source-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.source-inner--reverse { direction: rtl; }
.source-inner--reverse > * { direction: ltr; }

.source-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-mid);
  margin-bottom: 12px;
}
.source-text h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--teal-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.source-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.source-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.source-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── Визуальный блок источника ── */
.source-visual { display: flex; justify-content: center; }
.vis-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow);
}
.vis-card--dark {
  background: var(--teal-dark);
  border-color: rgba(255,255,255,.1);
}
.vis-icon { font-size: 28px; margin-bottom: 12px; }
.vis-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.vis-card--dark .vis-title {
  color: rgba(255,255,255,.9);
  border-bottom-color: rgba(255,255,255,.1);
}
.vis-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 5px 0;
}
.vis-card--dark .vis-row { color: rgba(255,255,255,.8); }
.vis-row--detail {
  padding-left: 15px;
  color: var(--text-muted);
  font-size: 12px;
}
.vis-card--dark .vis-row--detail { color: rgba(255,255,255,.5); }
.vis-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.vis-dot--green  { background: #22C55E; }
.vis-dot--gray   { background: #CBD5E1; }
.vis-dot--orange { background: var(--orange); }
.vis-dot--rose   { background: var(--rose); }

/* ── Кому нужно ── */
.who-section { padding: 80px 0; background: var(--surface); }
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--teal-dark);
  margin-bottom: 36px;
  text-align: center;
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.who-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--teal-mid);
  transition: box-shadow .2s, transform .2s;
}
.who-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.who-icon { font-size: 28px; margin-bottom: 14px; }
.who-card h3 { font-size: 16px; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.who-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Подвал ── */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.65); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-logo {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.footer-desc { font-size: 14px; line-height: 1.6; max-width: 260px; }
.footer-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li, .footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 32px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ── Адаптив ── */
/* ================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — сайдбар-лэйаут
   ================================================================ */

.inner-page {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* Левый сайдбар */
.inner-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--teal-dark);
  padding: 32px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: none;
}
.inner-sidebar::-webkit-scrollbar { display: none; }
.sidebar-logo {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 12px;
}
.sidebar-logo span { color: var(--orange); }
.sidebar-group { margin-bottom: 8px; }
.sidebar-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.3);
  padding: 8px 20px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar-link:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); }
.sidebar-link.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--orange); }
.sidebar-link .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

/* Основной контент */
.inner-content {
  flex: 1;
  padding: 48px 56px 80px;
  max-width: 820px;
  min-width: 0;
}
.inner-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 10px;
}
.inner-content h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--teal-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}
.inner-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* Prose */
.prose {}
.prose h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 40px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}
.prose p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose p strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.prose ol { counter-reset: item; }
.prose ol li {
  counter-increment: item;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 32px;
  position: relative;
}
.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

/* Инфо-блок */
.info-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.info-box p { margin: 0; font-size: 14.5px; color: var(--teal-dark); }

/* Мета документа */
.doc-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.doc-meta span strong { color: var(--text); }

/* Карточки источников */
.source-table { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.src-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.src-row-icon { font-size: 28px; }
.src-row-title { font-size: 15px; font-weight: 700; color: var(--teal-dark); margin-bottom: 4px; }
.src-row-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.src-row-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Шаги методологии */
.steps-timeline { margin: 24px 0; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--teal-soft);
}
.timeline-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; margin-top: 4px; }
.timeline-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* API страница */
.api-banner {
  background: var(--teal-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 24px 0;
}
.api-banner h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.api-banner p { color: rgba(255,255,255,.70); font-size: 16px; max-width: 440px; margin: 0 auto 24px; line-height: 1.7; }
.api-endpoints { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.api-endpoint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.api-method {
  font-size: 11px;
  font-weight: 700;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 4px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.api-path { font-family: monospace; font-size: 14px; color: var(--text); }
.api-desc { font-size: 13px; color: var(--text-muted); margin-left: auto; }

/* Контакт-форма-заглушка */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 16px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card-icon { font-size: 28px; flex-shrink: 0; }
.contact-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-card-value { font-size: 16px; color: var(--teal); }
.contact-card-value a { color: var(--teal); text-decoration: none; }
.contact-card-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ── Autocomplete ── */
.ac-wrapper { position: relative; }
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg);
  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(--teal-light);
  color: var(--teal-dark);
}

/* ── Адаптив ── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 52px 24px 60px;
  }
  .hero-right { display: none; }
  .source-inner { grid-template-columns: 1fr; gap: 32px; }
  .source-inner--reverse { direction: ltr; }
  .source-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .search-row { flex-direction: column; }
  .btn-primary { height: 48px; width: 100%; justify-content: center; }
  .stats-strip { padding: 24px 16px; gap: 16px; flex-direction: column; }
  .stat-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-header { padding: 0 16px; }
  .header-nav { display: none; }
  .inner-sidebar { display: none; }
  .inner-content { padding: 32px 20px 56px; }
  .inner-page { flex-direction: column; }
}
