/* ============================================================
   Юридическая компания «МФЦ» — стили лендинга
   Палитра/отступы — в :root (легко перекрасить).
   ============================================================ */
:root {
  --navy: #1b2a4a;
  --navy-700: #24365c;
  --navy-900: #121d33;
  --accent: #c9a24b;        /* золото — единственный акцент на всех CTA */
  --accent-600: #b78f38;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --line: #e5e8ee;
  --ink: #1a1a1a;
  --muted: #5c6472;
  --white: #ffffff;
  --success: #2e7d5b;
  --error: #b23b3b;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.10);
  --shadow-lg: 0 20px 50px rgba(27, 42, 74, 0.18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 64px 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #fff; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 4vw, 40px); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 12px; }
.section--navy .section-head p { color: rgba(255,255,255,.8); }
.accent { color: var(--accent); }

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; padding: 14px 26px; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; text-align: center;
}
.btn--accent { background: var(--accent); color: var(--navy-900); box-shadow: 0 8px 22px rgba(201,162,75,.35); }
.btn--accent:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--outline { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* ── Хедер ──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: padding .2s, box-shadow .2s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 16px; padding: 14px 0; transition: padding .2s; }
.header.scrolled .header__inner { padding: 9px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 42px; height: 42px; border-radius: 9px; background: var(--navy); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.brand__name { display: block; font-weight: 800; color: var(--navy); font-size: 18px; line-height: 1.1; }
.brand__sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.nav { display: none; gap: 22px; margin-left: 24px; }
.nav a { font-size: 15px; color: #37414f; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--navy); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; color: var(--accent); }
.header__cta { display: none; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: none; background: none; color: var(--navy); cursor: pointer; }
.burger svg { width: 26px; height: 26px; }

/* мобильное меню */
.mnav { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mnav.open { display: block; }
.mnav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: #2a3340; }
.mnav .btn { margin-top: 14px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(18,29,51,.94) 0%, rgba(18,29,51,.78) 55%, rgba(18,29,51,.62) 100%); }
.hero__inner { position: relative; display: grid; gap: 34px; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); }
.hero__sub { margin-top: 18px; font-size: clamp(16px, 2.4vw, 20px); color: rgba(255,255,255,.88); max-width: 640px; }
.hero__trust { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255,255,255,.8); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--accent); }
.hero__form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); }
.hero__form h2 { font-size: 21px; color: var(--navy); }
.hero__form p.small { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }

/* ── Форма ──────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 12px; }
.form input[type="text"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); }
.form textarea { min-height: 96px; resize: vertical; }
.form .field-error { color: var(--error); font-size: 13px; margin-top: -6px; }
.form .consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); }
.form .consent input { margin-top: 3px; accent-color: var(--navy); }
.form .consent a { color: var(--navy); text-decoration: underline; }
.form .note { font-size: 12px; color: var(--muted); }
.form .form-msg { font-size: 14px; }
.form .form-msg.ok { color: var(--success); }
.form .form-msg.err { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Cчётчики доверия ───────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat { text-align: center; padding: 18px 10px; }
.stat__num { font-size: clamp(30px, 6vw, 46px); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.section--navy .stat__num { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 4px; }
.section--navy .stat__label { color: rgba(255,255,255,.75); }

/* ── Услуги ─────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service__icon { width: 46px; height: 46px; border-radius: 11px; background: rgba(27,42,74,.06); color: var(--navy); display: grid; place-items: center; }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 18px; color: var(--navy); }
.service p { color: var(--muted); font-size: 15px; }
.service__link { margin-top: auto; color: var(--accent-600); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }

/* ── Команда ────────────────────────────────────────────── */
.team-lead { display: grid; gap: 24px; align-items: center; margin-bottom: 40px; }
.team-lead__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-lead__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-lead h2 { font-size: clamp(24px, 4vw, 36px); color: var(--navy); }
.team-lead p { color: var(--muted); margin-top: 12px; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.member:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.member__photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  /* единый тон для разнородных фото (§7.2) */
  filter: grayscale(0.15) contrast(1.03) brightness(1.02); transition: transform .35s, filter .35s;
}
.member:hover .member__photo img { transform: scale(1.04); filter: grayscale(0) contrast(1.03); }
.member__body { padding: 14px 16px 18px; }
.member__role { font-weight: 800; color: var(--navy); font-size: 16px; }
.member__spec { color: var(--muted); font-size: 14px; margin-top: 3px; }
.member__tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.member__tags span { font-size: 12px; background: rgba(27,42,74,.06); color: var(--navy); padding: 4px 9px; border-radius: 999px; }

/* ── Как работаем ───────────────────────────────────────── */
.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 17px; color: var(--navy); }
.step p { color: var(--muted); font-size: 15px; margin-top: 3px; }

/* ── Отзывы ─────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review__stars { color: var(--accent); letter-spacing: 2px; }
.review__text { margin-top: 8px; color: var(--ink); font-size: 15px; }
.review__author { margin-top: 12px; font-weight: 700; color: var(--navy); font-size: 14px; }
.review__src { color: var(--muted); font-weight: 500; }

/* ── Финальный блок заявки ──────────────────────────────── */
.cta-final { display: grid; gap: 30px; align-items: start; }
.cta-final__info { color: rgba(255,255,255,.9); }
.cta-final__info li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; list-style: none; }
.cta-final__info ul { padding: 0; margin: 18px 0 0; }
.cta-final__info svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.cta-final .form { background: #fff; color: var(--ink); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ── Подвал ─────────────────────────────────────────────── */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); }
.footer__inner { display: grid; gap: 28px; padding: 48px 0; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer a:hover { color: #fff; }
.footer__req { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 12px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.5); text-align: center; }
.footer__row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.footer__row svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ── Плавающие элементы ─────────────────────────────────── */
.floats { position: fixed; right: 16px; bottom: 84px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-chat { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--navy-900); font-weight: 800; font-size: 15px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.fab-chat:hover { background: var(--accent-600); }
.fab-chat svg { width: 22px; height: 22px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); color: #fff; }
.fab--wa { background: #25d366; }
.fab--tg { background: #29a9eb; }
.fab--top { background: var(--navy); opacity: 0; pointer-events: none; transition: opacity .25s; }
.fab--top.show { opacity: 1; pointer-events: auto; }
.fab svg { width: 26px; height: 26px; }
.mobile-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; }
.mobile-call a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 800; }
.mobile-call .call { background: var(--navy); color: #fff; }
.mobile-call .lead { background: var(--accent); color: var(--navy-900); }
.mobile-call svg { width: 20px; height: 20px; }

/* ── Анимация появления ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

body { padding-bottom: 56px; } /* место под мобильную панель звонка */

/* ── Адаптив ────────────────────────────────────────────── */
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .team-lead { grid-template-columns: 0.85fr 1.15fr; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-call { display: none; }
  .burger { display: none; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 72px 0 84px; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { flex-direction: column; }
  .cta-final { grid-template-columns: 1fr 0.9fr; }
  .floats { bottom: 24px; }
}
