/* ============================================================
   НПО «ЦИТ» (cent-it.ru) — дизайн-токены и базовые элементы
   Канон: светлая витрина vyshka.cloud. Один файл, без зависимостей.
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  /* Фоны и плиты */
  --bg: #f6f8fc;
  --bg-plate-1: #eef2fa;
  --bg-plate-2: #ffffff;

  /* Текст */
  --tx: #0f172a;
  --tx-2: #516180;
  --tx-3: #64748b;

  /* Акценты */
  --accent: #1a56db;
  --accent-2: #3b82f6;

  /* Борды */
  --border: #e2e8f4;
  --border-strong: #cbd5ea;
  --border-hover: #1a56db;

  /* Градиенты */
  --grad-cta: linear-gradient(90deg, #1a56db 0%, #3b82f6 52%, #2a9dd3 100%);
  --grad-title: linear-gradient(90deg, #1a56db, #3b82f6);

  /* Тени */
  --shadow-card: 0 10px 34px rgba(23, 43, 99, .10);
  --shadow-lg: 0 24px 60px rgba(23, 43, 99, .14);
  --shadow-primary-btn: 0 6px 20px rgba(26, 86, 219, .30);
  --shadow-primary-btn-hover: 0 10px 28px rgba(26, 86, 219, .42);

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Отступы */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;

  /* Контент и шрифт */
  --content-w: 1180px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- 2. Reset и base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

img { max-width: 100%; height: auto; }

::selection {
  background: rgba(26, 86, 219, .16);
  color: var(--tx);
}

/* ---------- 3. Типографика ---------- */
h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
}

h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-3);
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 var(--sp-2);
}

p {
  color: var(--tx-2);
  margin: 0 0 var(--sp-3);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent-2); }

/* ---------- 4. Контейнеры ---------- */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 860px; }

/* ---------- 5. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease;
}

.btn.primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-primary-btn);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-btn-hover);
}
.btn.primary:active { transform: scale(.97); }

.btn.ghost {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: #1a56db;
}
.btn.ghost:hover {
  border-color: var(--border-hover);
  background: #f1f5fd;
}

/* ---------- 6. Бейдж-чип ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(26, 86, 219, .08);
  color: #1a56db;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- 7. Формы ---------- */
.inp {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--tx);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.inp::placeholder { color: var(--tx-3); }
.inp:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}
.inp.error { border-color: #dc2626; }

label.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tx-3);
  cursor: pointer;
}
label.chk input[type="checkbox"] {
  accent-color: #1a56db;
  transform: scale(1.15);
  flex: none;
  margin-top: 2px;
}

.lead-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tx-3);
}

.form-ok {
  padding: 14px 16px;
  border: 1px solid rgba(14, 168, 106, .3);
  border-radius: var(--r-md);
  background: rgba(14, 168, 106, .08);
  color: #0ea86a;
  font-weight: 600;
}

/* ---------- 8. Заголовки секций ---------- */
.sec-head {
  text-align: center;
  margin-bottom: 48px;
}
.sec-sub {
  font-size: 18px;
  line-height: 1.55;
  color: #516180;
  max-width: 640px;
  margin: 12px auto 0;
}

/* ---------- 9. Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 10. Полоса прогресса чтения ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-cta);
  z-index: 1001;

  /* алиасы совместимости (C-волна) */
  --accent-cyan: #1a56db;
  --bg-base: #eef2fa;
  --bg-card: #ffffff;
  --tx-dim: #64748b;
  --tx-muted: #516180;
}
