/* Сайт продукта UNS CRM AI (crm-ai.uns.kz) — website/README.md */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-dark: #0b1b33;
  --text: #13233d;
  --muted: #5b6b82;
  --line: #dde5ef;
  --brand: #1463ff;
  --brand-dark: #0b47c4;
  --accent: #10b981;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 70, .08);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.5vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 14px; }
code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre {
  background: var(--bg-dark); color: #e6eefc; padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; line-height: 1.5; margin: 0 0 1.2em;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); font-size: 15px; }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { text-decoration: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* первый экран */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 420px at 85% -10%, #dfe9ff 0%, transparent 70%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero .note { font-size: 14px; color: var(--muted); }
.hero-shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; overflow: hidden; }

/* сетки карточек */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 4px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { font-size: 26px; line-height: 1; }
.pain { border-left: 4px solid var(--warn); }
.pain .fix { color: var(--text); margin-top: 10px; }
.pain .fix::before { content: "→ "; color: var(--accent); font-weight: 700; }

/* кто мы */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fact { padding: 26px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.fact .num { font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.fact .label { font-weight: 700; margin: 6px 0 10px; }
.fact p { color: var(--muted); margin: 0; }
.quote { margin: 28px 0 0; padding: 28px 32px; border-radius: var(--radius); background: var(--bg-dark); color: #e6eefc; position: relative; }
.quote p { font-size: 19px; line-height: 1.55; margin: 0 0 14px; }
.quote footer { color: #9fb3d6; display: flex; align-items: center; gap: 18px; }
.quote footer img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid #2a4a7a; flex: none; }
.quote footer b { display: block; color: #fff; font-size: 17px; }
.quote footer span { font-size: 15px; }

/* как это работает */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step p { color: var(--muted); margin: 0; }

/* скриншоты */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shot { min-width: 0; }
.shot figure { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* список возможностей */
.features { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.features li { break-inside: avoid; padding: 10px 0 10px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.features li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--accent); font-weight: 700; }
.features b { display: block; }
.features span { color: var(--muted); font-size: 15px; }

/* размещение и цены */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 30px; font-weight: 700; margin: 6px 0; }
.plan ul { padding-left: 20px; color: var(--muted); margin: 10px 0 20px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; background: #e8f0ff; color: var(--brand); border-radius: 999px; padding: 3px 10px; }
.tariffs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.tariff { flex: 1 1 200px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tariff .name { color: var(--muted); }
.tariff .price { font-size: 26px; font-weight: 700; }

/* форма */
.try { background: var(--bg-dark); color: #e6eefc; }
.try h2, .try .section-head p { color: #fff; }
.try .section-head p { opacity: .8; }
.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #b9cffc; border-color: var(--brand); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-weight: 400; cursor: pointer; }
.choice input { width: auto; margin-top: 4px; }
.choice small { display: block; color: var(--muted); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 8px 0 18px; }
.agree input { margin-top: 4px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 9px; display: none; }
.form-msg.ok { display: block; background: #e7f8f1; color: #065f46; }
.form-msg.err { display: block; background: #fdecec; color: #991b1b; }
.try-side li { margin-bottom: 12px; }
.try-side { list-style: none; padding: 0; }
.try-side li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* документы (инструкция, FAQ, оферта) */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.doc aside { position: sticky; top: 88px; align-self: start; font-size: 15px; }
.doc aside a { display: block; padding: 5px 0; color: var(--muted); }
.doc aside a:hover { color: var(--brand); }
.doc article { min-width: 0; max-width: 780px; }
.doc article h2 { margin-top: 1.6em; padding-top: 8px; }
.doc article h2:first-of-type { margin-top: 0; }
.doc article h3 { margin-top: 1.4em; }
.doc article li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }
.callout { border-left: 4px solid var(--brand); background: #f1f6ff; padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; }
.callout.warn { border-color: var(--warn); background: #fff8eb; }
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.page-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 720px; }
.fill { background: #fff3c4; border-radius: 4px; padding: 0 4px; }
.legal article { font-size: 15.5px; }
.legal article h2 { font-size: 21px; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 12px; background: #fff; }
details summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 16px; color: var(--muted); }

/* поддержка и подвал */
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot { background: var(--bg-dark); color: #a9b8d0; padding: 48px 0 32px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot a { color: #dbe6f7; display: block; padding: 3px 0; }
.foot h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.foot .copy { grid-column: 1 / -1; border-top: 1px solid #22385c; padding-top: 18px; margin-top: 8px; font-size: 13px; }

@media (max-width: 960px) {
  .hero .wrap, .grid-3, .grid-2, .shots, .support, .doc, .facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { columns: 1; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .doc aside { position: static; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .menu-btn { display: block; }
  .section { padding: 52px 0; }
  .steps, .form .row, .choice { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
}
