/* LEADAX — общие стили лендингов (клиенты, вакансия оператора, юр. страницы) */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #12201d;
  --muted: #5b6b67;
  --line: #e3dfd5;
  --accent: #0e8f7e;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3ef;
  --warm: #f2b84b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 32, 29, 0.06), 0 8px 24px rgba(18, 32, 29, 0.06);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

img, svg { display: block; }

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

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: 0.06em; }
.logo small { display: block; font-weight: 600; letter-spacing: 0; color: var(--muted); font-size: 12px; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
@media (max-width: 760px) { .nav .hide-m { display: none; } }
@media (max-width: 480px) { .logo small { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #0b7a6c; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.small { padding: 10px 16px; font-size: 15px; }

/* Первый экран */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { padding: 40px 0 32px; } .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 18px 0 18px; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* Иллюстрация чата */
.chat {
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 18px;
  border: 1px solid var(--line);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; font-size: 14px; }
.chat-head b { display: block; font-size: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22b573; display: inline-block; margin-right: 6px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-weight: 800; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; margin: 8px 0; }
.msg.in { background: #f1efe9; border-bottom-left-radius: 4px; }
.msg.out { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg-meta { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.channels { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.channels span { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: #f6f4ef; font-weight: 600; }

/* Секции */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.015em; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 12px 0 6px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

/* Этапы */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
section.alt .step { background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 0 0 4px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* Список с галочками */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230e8f7e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Оплата на странице вакансии */
.pay { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.pay b { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; }
.pay span { color: var(--muted); }

/* Вопросы и ответы */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
section.alt details { background: var(--bg); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Форма */
.form-box { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .form-box { grid-template-columns: 1fr; gap: 24px; } }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfaf7;
  margin: 0 0 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
form .btn { width: 100%; margin-top: 4px; }
.consent { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form-msg { margin: 12px 0 0; font-weight: 700; display: none; }
.form-msg.ok { color: var(--accent); display: block; }
.form-msg.err { color: #c0392b; display: block; }
.req { color: var(--accent); }

/* Подвал */
footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer b { color: var(--ink); display: block; margin-bottom: 8px; }
footer a { color: var(--muted); }
footer p { margin: 0 0 6px; }
.legal-line { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }

/* Юридические страницы */
.doc { max-width: 820px; margin: 0 auto; padding: 40px 20px 64px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc p, .doc li { color: #2b3a37; }
.doc table { border-collapse: collapse; margin: 16px 0; width: 100%; }
.doc td { padding: 6px 12px 6px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc td:first-child { color: var(--muted); white-space: nowrap; }
