/* 1crm.shop — лендинг.
   Логические свойства (margin-inline, padding-inline) вместо left/right:
   у сайта есть арабская версия, и на RTL вёрстка должна зеркалиться сама. */

:root {
  --accent: #6d4aff;
  --accent-hover: #5b38f0;
  --accent-soft: #efeaff;
  --ink: #16141f;
  --muted: #6b6880;
  --bg: #ffffff;
  --band: #f7f6fc;
  --line: #e7e4f2;
  --ok: #0f9d58;
  --err: #d93025;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 20, 31, .04), 0 8px 24px rgba(22, 20, 31, .06);
}

* { box-sizing: border-box; }

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

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: .6em 0; }
a { color: var(--accent); }

/* ---------- Шапка ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #9a7bff);
  color: #fff;
  font-weight: 800;
}

.logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }

.nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--accent); }

.langs { display: flex; gap: 4px; }
.lang {
  border: 0; background: none; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  color: var(--muted); font-size: .85rem; font-family: inherit;
}
.lang:hover { background: var(--band); }
.lang.active { color: var(--accent); font-weight: 700; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 15px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--band); border-color: var(--accent); color: var(--accent); }

/* ---------- Экран приветствия ---------- */

.hero { padding: 72px 0 64px; background: radial-gradient(1100px 380px at 50% -120px, var(--accent-soft), transparent); }
.hero-inner { max-width: 760px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: .35em; }
.lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); margin: 0 auto; max-width: 620px; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 16px; }

/* ---------- Секции ---------- */

.section { padding: 64px 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); text-align: center; }
.section-sub { text-align: center; margin: .5em auto 0; max-width: 560px; }

.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.pain, .feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.pain h3, .feature h3 { font-size: 1.08rem; margin-bottom: .3em; }
.pain-icon { font-size: 1.7rem; margin-bottom: 10px; }
.feature h3 { color: var(--accent); }

/* ---------- Цены ---------- */

.pricing { align-items: stretch; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.plan-popular {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan-tag {
  position: absolute;
  top: -12px;
  inset-inline-start: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
}

.price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.price-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-cur { color: var(--muted); font-weight: 600; }

.plan-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; }
.plan-list li { position: relative; padding-inline-start: 26px; font-size: .95rem; }
.plan-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 800;
}
.plan .btn { margin-top: auto; }

.referral {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent-soft), #fff);
  border: 1px solid var(--line);
}
.referral h3 { font-size: 1.15rem; }

/* ---------- Форма ---------- */

.form-wrap { max-width: 560px; }

.lead-form {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }

.lead-form input[type=text],
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
}
.lead-form input[type=text]:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 74, 255, .16);
}
.lead-form textarea { resize: vertical; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.lead-form .btn { width: 100%; margin-top: 20px; }

/* Ловушка для ботов: убрана из потока, но не display:none — часть ботов
   заполняет именно скрытые через display поля, а часть их игнорирует. */
.trap { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

.err { display: block; color: var(--err); font-size: .85rem; margin-top: 5px; }

.msg { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 16px; font-size: .95rem; }
.msg-success { background: #e7f6ec; color: #14663a; }
.msg-error { background: #fdecea; color: var(--err); }

/* ---------- Подвал ---------- */

.site-foot { border-top: 1px solid var(--line); padding: 36px 0; background: var(--band); }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: var(--accent); }

/* ---------- Текстовые страницы (политика) ---------- */

.doc { max-width: 760px; padding-block: 48px; }
.doc h1 { font-size: 1.8rem; margin-bottom: .4em; }
.doc h2 { font-size: 1.15rem; margin-top: 1.8em; margin-bottom: .3em; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: .35em 0; }

/* ---------- Телефон ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0; }
  .head-inner { min-height: 60px; gap: 12px; }
  .nav { gap: 14px; order: 3; width: 100%; margin-inline-start: 0; justify-content: space-between; }
  .langs { margin-inline-start: auto; }
  .referral { flex-direction: column; align-items: flex-start; }
}

/* ---------- Экран обзвона (внутренний, для Ани) ----------
   Плотнее и суше публичной части: это рабочий инструмент, за которым сидят
   по часу, а не витрина. Крупные попадания мышью и никакого JS — человек
   говорит по телефону и печатает одной рукой. */

.row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.board-title { font-size: 1.05rem; margin: 32px 0 12px; display: flex; align-items: center; gap: 10px; }
.cnt { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 10px; font-size: .85rem; }

.call-list { display: grid; gap: 8px; }
.call-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; text-decoration: none; color: var(--ink);
}
.call-row:hover { border-color: var(--accent); background: var(--band); }
.call-name { font-weight: 600; }
.call-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.pill { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--band); color: var(--muted); }
.pill-interested { background: #e7f6ec; color: #14663a; }
.pill-won { background: var(--accent); color: #fff; }
.pill-trial { background: #fff4d6; color: #8a5a00; }
.pill-refused { background: #fdecea; color: var(--err); }

.call-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.call-side { display: grid; gap: 16px; }
.call-main { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 1rem; margin-bottom: 12px; }

.phone { font-size: 1.15rem; font-weight: 700; text-decoration: none; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.hist { padding: 10px 0; border-top: 1px solid var(--line); }
.hist:first-of-type { border-top: 0; }

/* Пункт скрипта: то, что Аня читает и отмечает по ходу разговора. */
.script-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.script-item:last-child { border-bottom: 0; }
.script-say .say { font-weight: 600; color: var(--accent); }
.script-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.script-check input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
/* Подсказка — только для неё, клиент её не слышит. */
.hint { margin: 6px 0 0 30px; padding: 8px 12px; background: var(--band); border-inline-start: 3px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .88rem; }
.answer { width: 100%; margin: 8px 0 0 30px; max-width: calc(100% - 30px); padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .95rem; }
.answer:focus { outline: none; border-color: var(--accent); }

.card select, .card textarea, .card input[type=datetime-local] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: .95rem; background: #fff;
}

@media (max-width: 860px) {
  .call-grid { grid-template-columns: 1fr; }
  .hint, .answer { margin-inline-start: 0; max-width: 100%; }
}
.rec { width: 100%; margin: 8px 0 4px; height: 34px; }
.transcript { margin: 6px 0 4px; font-size: .88rem; }
.transcript summary { cursor: pointer; color: var(--accent); }
.transcript pre { white-space: pre-wrap; margin: 8px 0 0; padding: 10px 12px; background: var(--band); border-radius: 8px; font: inherit; font-size: .88rem; }
