/* === UI система как на cleardocs.ru === */
:root {
  --color-bg: #f2f7fd;
  --color-surface: #ffffff;
  --color-surface-alt: #e8eef5;
  --color-text: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.7);
  --color-accent: #1f5bff;
  --color-accent-hover: #4a90e2;
  --color-cta: #1f5bff;
  --color-cta-hover: #4a90e2;
  --font-sans: 'Tilda Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --container-max: 1140px;
  --radius-btn: 32px;
  --radius-card: 20px;
  --radius-input: 12px;
  --space-section: 5rem;
  --space-section-lg: 7rem;
  --header-border: 1px solid rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* === Шрифт Tilda Sans (аналог) === */
@font-face {
  font-family: 'Tilda Sans';
  src: local('Segoe UI'), local('-apple-system-blinkmacsystemfont');
  font-weight: 400 700;
  font-display: swap;
}

/* === Сброс === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* === Типографика === */
h1, h2, h3 { margin-top: 0; line-height: 1.25; color: var(--color-text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 1rem; font-weight: 700; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

/* === Секции и контейнер === */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--color-surface); padding: var(--space-section) 0; }
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Кнопки (как cleardocs: скругление 30–32px) === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.btn-primary {
  background: var(--color-cta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-cta-hover);
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: none;
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
  text-decoration: none;
}

/* === Шапка (как cleardocs: светлая, border-bottom) === */
.header {
  background: var(--color-bg);
  border-bottom: var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--color-text); }
.logo:hover { text-decoration: none; color: var(--color-accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; align-items: center; }
.nav a { color: var(--color-text); }
.nav a:hover { color: var(--color-accent); }

/* === Hero (светлый фон, центр) === */
.hero {
  padding: var(--space-section-lg) 0;
  text-align: center;
  background: var(--color-bg);
}
.hero h1 { margin-bottom: 0.75rem; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 48ch;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* === Карточки (белые, скругление, лёгкая тень) === */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: none;
}
.card h3 { margin-top: 0; color: var(--color-text); }
.card p { font-size: 0.95rem; color: var(--color-text-muted); }

/* === Список этапов === */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.steps .num { font-weight: 700; color: var(--color-accent); min-width: 1.5rem; }
.steps .title { font-weight: 600; color: var(--color-text); }

/* === Интеграции (теги) === */
.integrations { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.integrations a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-input);
  font-size: 0.9rem;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}
.integrations a:hover { background: var(--color-surface-alt); color: var(--color-accent); text-decoration: none; }

/* === FAQ === */
.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--color-text); }
.faq-item p { font-size: 0.95rem; color: var(--color-text-muted); }

/* === Форма (светлые инпуты) === */
.form-section { max-width: 28rem; margin: 0 auto; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--color-text); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  color: var(--color-text);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-muted); }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 1rem; }
.form-checkbox input { width: auto; margin-top: 0.2rem; }
.form-checkbox label { font-size: 0.85rem; color: var(--color-text-muted); }

/* === Подвал (как cleardocs: светлый) === */
.footer {
  background: var(--color-surface);
  padding: 2.5rem 0;
  margin-top: var(--space-section);
  border-top: var(--header-border);
}
.footer .container {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .footer .container { grid-template-columns: 1fr auto; align-items: start; }
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer-nav a { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--color-accent); }
.footer p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 0.5rem; }

/* === Бургер === */
.burger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}
@media (max-width: 767px) {
  .burger { display: block; }
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; width: 100%; }
  .header .container { flex-wrap: wrap; }
  .header .container .nav { order: 3; width: 100%; }
  .header { background: var(--color-bg); }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
}
