/* stemcrm.kz: сайт продукта. Светлая «бумага», чернила и голубой из логотипа. */

:root {
  --paper: #f6f5f1;
  --paper-2: #efede7;
  --card: #ffffff;
  --ink: #0f1a22;
  --ink-2: #46525d;
  --muted: #858d95;
  --line: #e3e0d8;
  --brand: #2db1e5;
  --brand-deep: #0a86b8;
  --brand-soft: #e3f4fb;
  --night: #0d1820;
  --night-2: #15232d;
  --win: #1f9d6a;
  --lose: #d4523c;
  --pause: #c48a10;

  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 14px;
  --shadow: 0 1px 0 rgba(15,26,34,.04), 0 12px 32px -12px rgba(15,26,34,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep);
  margin-bottom: 18px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(10,134,184,.55); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--brand); color: #fff; }
.btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--line:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px #fff; }

/* Шапка */
.head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.head.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 26px); margin-left: 12px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { display: grid; gap: 4px; padding: 8px 28px 24px; border-top: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a { padding: 12px 0; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--line); }
.mnav .btn { margin-top: 14px; }

/* Первый экран */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-pills { position: absolute; right: -180px; top: -60px; width: 900px; color: var(--brand); opacity: .22; pointer-events: none; }
.hero h1 { font-size: clamp(36px, 5.6vw, 72px); max-width: 15ch; position: relative; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 560px) auto; gap: 40px; align-items: end; justify-content: space-between; margin-top: 30px; position: relative; }
.lead { font-size: 19px; color: var(--ink-2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.reveal-load { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Макет CRM */
.stage { position: relative; margin-top: 64px; padding-bottom: 40px; }
.app {
  position: relative; z-index: 1;
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15,26,34,.06), 0 40px 80px -40px rgba(15,26,34,.35), 0 18px 36px -24px rgba(15,26,34,.2);
}
.app-bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9d5cb; }
.url { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--card); padding: 3px 14px; border-radius: 999px; margin: 0 auto; }
.app-body { display: grid; grid-template-columns: 60px 1fr; min-height: 420px; }
.app-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; border-right: 1px solid var(--line); background: #fbfaf8; }
.app-side img { margin-bottom: 10px; }
.side-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.side-i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-i.is-on { background: var(--brand-soft); color: var(--brand-deep); }
.app-main { padding: 18px 20px 20px; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.app-top b { font-weight: 600; font-size: 16px; margin-right: 12px; }
.app-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg { display: flex; padding: 3px; background: var(--paper-2); border-radius: 9px; font-size: 13px; }
.seg span { padding: 4px 12px; border-radius: 7px; color: var(--muted); }
.seg .is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.col { background: var(--paper); border-radius: 12px; padding: 10px; min-height: 330px; }
.col-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.col-h em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-b { display: grid; gap: 8px; align-content: start; }
.deal {
  background: var(--card); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.35;
  box-shadow: 0 0 0 1px rgba(15,26,34,.06), 0 1px 2px rgba(15,26,34,.04);
}
.deal b { display: block; font-weight: 500; margin-bottom: 6px; }
.deal-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.deal-f .sum { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ava { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; background: var(--c, var(--brand)); flex: none; }
.deal.is-moving { box-shadow: 0 0 0 2px var(--brand), 0 14px 28px -10px rgba(10,134,184,.45); z-index: 2; position: relative; }
.deal.is-new { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.t-new { background: var(--brand-soft); color: var(--brand-deep); }
.t-work { background: #eceae4; color: var(--ink-2); }
.t-win { background: #ddf3e9; color: var(--win); }
.t-lose { background: #fbe5e0; color: var(--lose); }
.t-pause { background: #f8edd3; color: var(--pause); }

.float {
  position: absolute; z-index: 2; background: var(--card); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(15,26,34,.06), 0 24px 48px -20px rgba(15,26,34,.35);
}
.toast {
  top: -26px; right: 28px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; min-width: 270px;
  transition: opacity .35s, transform .35s var(--ease);
}
.toast.is-hidden { opacity: 0; transform: translateY(-8px); }
.toast b { display: block; font-size: 13px; font-weight: 600; }
.toast span { font-size: 13px; color: var(--ink-2); }
.toast-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.toast-ico svg { width: 18px; height: 18px; fill: #fff; }
.forecast { left: -28px; bottom: 0; padding: 16px 18px; width: 230px; }
.forecast b { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; margin: 4px 0 12px; letter-spacing: -.02em; white-space: nowrap; }
.bars { display: flex; align-items: end; gap: 6px; height: 44px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--brand-soft); }
.bars i:last-child { background: var(--brand); }

/* Факты */
.facts { padding: 32px 0 24px; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 26px 22px; display: grid; gap: 4px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.015em; }
.fact span { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Секции */
.section { padding: 110px 0; }
.section--tight { padding: 0 0 110px; }
.section--alt { background: var(--paper-2); }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Вкладки возможностей */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
.tab-list { display: grid; align-content: start; gap: 4px; }
.tab-list button {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 12px;
  font-size: 16px; color: var(--ink-2); transition: background .2s, color .2s;
}
.tab-list button .mono { transition: color .2s; }
.tab-list button:hover { background: var(--paper-2); color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tab-list button[aria-selected="true"] .mono { color: var(--brand-deep); }
.tab-panels { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 40px; min-height: 380px; }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.panel[hidden] { display: none; }
.panel.is-on { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.panel-text h3 { font-size: 24px; margin-bottom: 14px; }
.panel-text p { color: var(--ink-2); }
.mock { background: var(--paper); border-radius: 14px; padding: 18px; display: grid; gap: 8px; }
.m-cap { margin-bottom: 6px; }
.m-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 9px; padding: 9px 12px; font-size: 14px; box-shadow: 0 0 0 1px rgba(15,26,34,.05); }
.m-row .tag { margin-left: auto; }
.grip { width: 8px; height: 14px; background-image: radial-gradient(var(--muted) 1.2px, transparent 1.3px); background-size: 4px 4px; opacity: .6; }
.steps { list-style: none; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 16px 30px; font-size: 14px; line-height: 1.35; }
.steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.steps li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--brand); border-color: var(--brand); }
.steps li.done::after { background: var(--brand); }
.steps li.now::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.steps b { display: block; font-weight: 500; }
.steps span { color: var(--muted); font-size: 13px; }
.funnel { display: grid; gap: 8px; }
.funnel div { position: relative; display: flex; justify-content: space-between; padding: 9px 12px; font-size: 14px; border-radius: 8px; overflow: hidden; background: var(--card); }
.funnel div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brand-soft); border-right: 2px solid var(--brand); }
.funnel span, .funnel b { position: relative; } .funnel b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rule { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--card); border-radius: 9px; padding: 10px 12px; font-size: 14px; }
.rule > span:first-child { flex: 1 1 auto; }
.rule i { font-style: normal; color: var(--muted); }
.ch { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.ch-tg { background: var(--brand-soft); color: var(--brand-deep); }
.ch-mail { background: #f8edd3; color: var(--pause); }
.sheet { gap: 0; padding: 0; overflow: hidden; font-size: 13px; }
.sh-row { display: grid; grid-template-columns: 34px 1.6fr 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--card); }
.sh-row span { padding: 9px 10px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-row span:first-child { border-left: 0; color: var(--muted); text-align: center; background: var(--paper); }
.sh-h span { background: var(--paper); color: var(--muted); font-weight: 500; }
.sh-row.is-sync span:not(:first-child) { background: #e9f8ef; }
.sync-note { padding: 10px 12px; color: var(--win); text-transform: none; letter-spacing: 0; }

/* Модули */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mod { background: var(--paper); padding: 28px 24px 30px; transition: background .25s; }
.mod:hover { background: var(--card); }
.mod h3 { font-size: 16px; margin-bottom: 8px; }
.mod p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* Отрасли */
.ind { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.ind-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ind-list button {
  height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, box-shadow .2s;
}
.ind-list button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ind-list button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ind-card { background: var(--card); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.ind-card > .mono { margin-bottom: 18px; color: var(--brand-deep); }
.ind-stages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 26px; }
.ind-stages .stg { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; background: var(--paper); font-size: 14px; animation: fade .4s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.ind-stages .stg:last-child { background: #ddf3e9; color: var(--win); }
.ind-stages .arr { color: var(--muted); font-size: 13px; }
.ind-fields-cap { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ind-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-fields span { font-size: 13px; padding: 4px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.ind-extra { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }

/* Как работаем */
.how { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: how; }
.how li { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.how li:nth-child(n+2) { border-top-color: var(--line); }
.how-n { font-family: var(--display); font-size: 48px; font-weight: 400; color: var(--brand); line-height: 1; display: block; margin-bottom: 18px; }
.how h3 { margin-bottom: 10px; }
.how p { font-size: 15px; color: var(--ink-2); }

/* Размещение: две карточки, первая отмечена как частый выбор */
.hosts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 32px 30px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s var(--ease);
}
.hcard:hover { border-color: #cfd6db; transform: translateY(-2px); }
.hcard--main { border: 1.5px solid var(--brand); }
.hcard--main:hover { border-color: var(--brand-deep); }
.hcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; min-height: 44px; }
.hcard-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
}
.hcard--main .hcard-ico { background: var(--brand-soft); color: var(--brand-deep); }
.hcard-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hcard-badge {
  font-size: 13px; font-weight: 500; color: var(--brand-deep); background: var(--brand-soft);
  padding: 5px 11px; border-radius: 100px;
}
.hcard h3 { font-size: 26px; }
.hcard-lead { color: var(--ink-2); font-size: 16px; margin: 10px 0 22px; }
.hcard-list { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; flex: 1; }
.hcard-list li { position: relative; padding-left: 28px; font-size: 16px; color: var(--ink); }
.hcard-list li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 11px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.hcard-list b { font-weight: 600; }
.hcard .btn { align-self: flex-start; }
.plans-note { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 640px; }

/* Вопросы */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; color: var(--brand-deep); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }

/* Заявка */
.contact { background: var(--brand-soft); position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-points { list-style: none; margin-top: 32px; display: grid; gap: 10px; }
.contact-points li { display: flex; gap: 16px; align-items: baseline; }
.contact-points span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 70px; }
.contact-points a { font-size: 20px; font-family: var(--display); font-weight: 500; text-decoration: none; letter-spacing: -.01em; }
.contact-points a:hover { color: var(--brand-deep); }
.form { background: var(--card); border-radius: 22px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(10,134,184,.35); }
.form label { display: grid; gap: 6px; }
.form label span { font-size: 14px; color: var(--ink-2); }
.form input, .form textarea, .addr input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 90px; }
.form input:hover, .form textarea:hover { border-color: var(--line); }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--brand); }
.form input.is-bad { border-color: var(--lose); }
.form .btn { margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); }

/* Подвал */
.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; margin-left: auto; }
.foot-nav a, .foot-nav button { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot-nav a:hover, .foot-nav button:hover { color: var(--ink); }
.foot-copy { font-size: 14px; color: var(--muted); }

/* Окно входа */
.login {
  margin: auto; border: 0; border-radius: 20px; padding: 34px 32px 26px; width: min(420px, calc(100% - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 30px 70px -30px rgba(15,26,34,.45);
}
.login::backdrop { background: rgba(13,24,32,.4); }
.login[open] { animation: fade .25s var(--ease); }
.login h3 { font-size: 22px; margin-bottom: 6px; }
.login > p { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.login-x { position: absolute; top: 14px; right: 14px; }
.login-x button { width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--muted); }
.login-x button:hover { background: var(--paper); color: var(--ink); }
.login-form { display: grid; gap: 8px; }
.addr-label { font-size: 14px; color: var(--ink-2); }
.addr {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.addr:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.addr.is-bad { border-color: var(--lose); }
/* Поле по ширине текста: окончание .stemcrm.kz идёт сразу за адресом */
.addr { cursor: text; }
.addr input { flex: 0 1 auto; width: auto; min-width: 3ch; max-width: 100%; background: transparent; border: 0; padding: 13px 0 13px 14px; font: inherit; font-size: 17px; }
.addr input:focus { outline: none; }
.addr input::placeholder { color: #b7bcc1; }
.addr span { flex: 1; padding-right: 14px; color: var(--muted); font-size: 17px; white-space: nowrap; }
.login-form .btn { margin-top: 10px; width: 100%; }
.login-err { font-size: 13px; color: var(--lose); }
.login-help { margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.login-help a { color: var(--brand-deep); }

/* Адаптив */
@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: block; }
  .head-actions .btn--ghost { display: none; }
  .hero-sub { grid-template-columns: 1fr; gap: 28px; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -28px; padding: 4px 28px 8px; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list button { white-space: nowrap; flex: none; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .ind, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
  .contact-grid { gap: 40px; }
  .forecast { left: 12px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .head-actions > .btn:not(.btn--ghost) { display: none; }
  .hero { padding-top: 44px; }
  .hero-pills { width: 600px; right: -260px; top: 0; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1; }
  .stage { margin-top: 44px; padding-bottom: 96px; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 14px; }
  .app-top .seg { display: none; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col[data-col="0"], .col[data-col="1"] { display: none; }
  .col { min-height: 250px; }
  .toast { top: auto; bottom: 8px; right: 10px; left: 10px; min-width: 0; }
  .forecast { display: none; }
  .col-h { flex-wrap: wrap; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 14px; }
  .fact b { font-size: 16px; }
  .fact span { font-size: 14px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .section--tight { padding: 0 0 80px; }
  .sec-head { margin-bottom: 36px; }
  .tab-list { margin: 0 -20px; padding: 4px 20px 8px; }
  .tab-panels { padding: 22px; }
  .panel { grid-template-columns: 1fr; gap: 24px; }
  .modules { grid-template-columns: 1fr; }
  .mod { padding: 20px 20px 22px; }
  .how { grid-template-columns: 1fr; }
  .hosts { grid-template-columns: 1fr; }
  .hcard { padding: 26px 22px 24px; }
  .hcard h3 { font-size: 23px; }
  .ind-card, .form { padding: 24px; }
  .foot-nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-load { opacity: 1; transform: none; }
}

/* Документы: политика и условия */
.doc { max-width: 760px; padding-top: 120px; padding-bottom: 80px; }
.doc h1 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 10px; }
.doc h2 { font-family: var(--body); font-size: 20px; font-weight: 600; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 16px; color: var(--ink-2); }
.doc p + p, .doc ul + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0 22px; display: flex; flex-direction: column; gap: 6px; }
.doc a { color: var(--brand-deep); }
.doc code { font-family: var(--mono); font-size: 13px; background: var(--brand-soft); padding: 1px 5px; border-radius: 5px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.doc .pub-muted { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.doc section h1 { font-size: 30px; }

/* Скрытое поле-ловушка формы заявки */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Переключатель языка */
.lang { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.lang a {
  font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 6px 8px; border-radius: 8px; letter-spacing: .02em;
}
.lang a:hover { color: var(--ink); background: var(--paper-2); }
.lang a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.lang--m { display: none; }
@media (max-width: 1020px) {
  .head-actions .lang { display: none; }
  .lang--m { display: flex; margin: 8px 0 0; }
}
