/* malahova-marketing.ru — общий стиль лендинга и правовых страниц.
   Статика без сборки: системные шрифты, один акцент, никаких внешних
   ресурсов (грузится мгновенно и работает без CDN). */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --muted: #6b6b70;
  --line: #e4e4e2;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --- header ------------------------------------------------------------ */

header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.brand { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }

.nav a.tg {
  font-size: 15px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.nav a.tg:hover { border-color: var(--accent); color: var(--accent); }

/* --- hero -------------------------------------------------------------- */

.hero { padding: 72px 0 80px; }

.hero-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 750;
}

.hero .sub {
  margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 46ch;
}

.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-size: 16px;
  font-weight: 600; border-radius: 999px; padding: 14px 28px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.22);
}
.btn-primary:hover { background: #1e40af; }

.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-photo {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 28, 30, 0.14);
}
.hero-photo img { display: block; width: 100%; height: auto; }

/* --- sections ---------------------------------------------------------- */

section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em;
  line-height: 1.15; font-weight: 720; max-width: 24ch;
}
.section-sub { margin-top: 14px; color: var(--muted); max-width: 58ch; }

/* услуги: две колонки с разделителями вместо трёх одинаковых карточек */
.services {
  margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.service {
  padding: 26px 0; border-top: 1px solid var(--line);
}
.service h3 { font-size: 19px; font-weight: 650; }
.service p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* шаги */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step .num {
  font-variant-numeric: tabular-nums; font-weight: 750; font-size: 15px;
  color: var(--accent);
}
.step h3 { margin-top: 10px; font-size: 18px; font-weight: 650; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* CTA-блок */
.cta-band {
  background: var(--ink); color: #f5f5f4; border-radius: var(--radius);
  padding: 56px; display: flex; align-items: center; gap: 40px;
  justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { color: #fafaf9; }
.cta-band p { color: #a9a9ad; margin-top: 10px; max-width: 48ch; }
.cta-band .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ghost-кнопка на тёмной подложке cta-band: светлая рамка и текст */
.btn-ghost-dark { border-color: rgba(255, 255, 255, 0.35); color: #fafaf9; }
.btn-ghost-dark:hover { border-color: #fafaf9; color: #ffffff; }

/* --- footer (контакты + реквизиты + документы) ------------------------- */

footer { border-top: 1px solid var(--line); background: var(--surface); padding: 44px 0 52px; }
.foot {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px 48px;
  color: var(--muted); font-size: 14.5px;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-title {
  font-size: 13px; font-weight: 650; color: var(--ink);
  margin-bottom: 4px;
}
.foot-copy { margin-top: 10px; font-size: 13px; }

/* --- правовые страницы -------------------------------------------------- */

.legal { padding: 56px 0 80px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; }
.legal h2 { font-size: 21px; margin-top: 40px; max-width: none; }
.legal p, .legal li { margin-top: 14px; color: #3a3a3e; font-size: 16px; }
.legal ul { margin-top: 10px; padding-left: 22px; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--accent); text-decoration: none; font-size: 15px; }
.legal .back:hover { text-decoration: underline; }
.legal .updated { margin-top: 32px; color: var(--muted); font-size: 14px; }

/* --- адаптив ----------------------------------------------------------- */

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { max-width: 420px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 36px 28px; }
  .foot { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

@media (max-width: 440px) {
  .brand { font-size: 15px; }
  .nav a.tg { font-size: 13.5px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav a.tg { transition: none; }
}
