/* 1С DataBridge — сайт проекта. Самодостаточный CSS: без внешних CDN, шрифтов и JS. */

:root {
  --brand: #1a2a6b;          /* глубокий индиго */
  --brand-2: #3b4fd6;        /* яркий синий (акцент градиента) */
  --accent: #12b3a3;         /* teal */
  --accent-2: #24b56a;       /* зелёный (успех/ценность) */
  --ink: #1b2230;            /* основной текст */
  --muted: #5c6473;          /* приглушённый текст */
  --bg: #ffffff;
  --bg-soft: #f5f7fb;        /* мягкий фон секций */
  --bg-dark: #121a33;        /* футер */
  --line: #e3e8f2;           /* границы */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(20, 30, 70, .08);
  --shadow-sm: 0 3px 12px rgba(20, 30, 70, .06);
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); }
code {
  font-family: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-size: .88em; background: #eef1f8; padding: .12em .4em; border-radius: 6px; color: #2a3566;
}
pre {
  background: #0f1630; color: #d7e2ff; padding: 16px 18px; border-radius: var(--radius-sm);
  overflow: auto; font-size: 14px; line-height: 1.5;
}
pre code { background: none; color: inherit; padding: 0; }

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand); font-size: 18px; }
.brand img { height: 30px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--brand-2); text-decoration: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 16px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand); cursor: pointer; transition: .15s;
}
.btn:hover { background: #142255; text-decoration: none; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #05221f; }
.btn-accent:hover { background: #0fa091; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cta-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 15% -10%, #2b3fb0 0%, transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, #26317f 55%, var(--brand-2) 100%);
  color: #eaf0ff; padding: 76px 0 64px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 20px; color: #d5deff; margin-bottom: 26px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700;
  color: var(--accent); margin-bottom: 14px; }
.hero-art { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.hero-art img { width: 100%; display: block; }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--bg-dark); color: #d7deff; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700;
  color: var(--accent); margin-bottom: 10px; }
.section-head p { font-size: 18px; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Сетки/карточки ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 6px; }
.card .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 21px; font-weight: 800; }
.card.accent { border-top: 3px solid var(--accent); }
.muted { color: var(--muted); }

/* ---------- Медиа/схемы ---------- */
.figure { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); }
.figure img { width: 100%; display: block; }
.figure figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---------- Таблица сравнения ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; background: var(--bg); font-size: 15.5px; min-width: 640px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--bg-soft); font-size: 14px; }
table.cmp td.yes { color: #12805f; font-weight: 600; }
table.cmp tr:last-child td { border-bottom: none; }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--brand-2); line-height: 1; letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- Callout / шаги ---------- */
.callout { background: linear-gradient(135deg, #eef2ff, #f0fbf8); border: 1px solid #dfe6fb;
  border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step .n { counter-increment: step; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; }
.step .n::before { content: counter(step); }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #e9edfb; color: var(--brand); margin: 0 6px 6px 0; }
.pill.accent { background: #d9f5ef; color: #0c6d61; }

/* ---------- FAQ ---------- */
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.faq details[open] summary::before { content: "－"; }
.faq p { padding-bottom: 12px; margin: 0; color: var(--muted); }

/* ---------- Хлебные крошки страниц ---------- */
.page-hero { background: linear-gradient(135deg, var(--brand), #26317f); color: #eaf0ff; padding: 56px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cdd7ff; font-size: 19px; max-width: 760px; margin: 0; }

/* ---------- Футер ---------- */
.footer { background: var(--bg-dark); color: #aeb8d6; padding: 46px 0 34px; font-size: 15px; }
.footer .container { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer a { color: #cdd7ff; }
.footer .brand { color: #fff; }
.footer-note { color: #7f8bb3; font-size: 13px; margin-top: 18px; }

/* ---------- Утилиты ---------- */
.lead-list { list-style: none; padding: 0; margin: 0; }
.lead-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.lead-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-2); font-weight: 800; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.value { color: #0c6d61; font-weight: 600; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .nav .container { height: auto; padding: 10px 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links { gap: 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 34px 1fr; }
}

/* Список с галочками (сайзинг/требования) */
.ticks { list-style: none; padding-left: 0; margin: 6px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin: 7px 0; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-2, #24b56a); font-weight: 800; }
