/* =========================================================
   ТендерAI · общий дизайн-система
   Палитра/типографика выровнены по референсу (Маяк)
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f6f8fe;          /* светлая голубая подложка секций */
  --surface-2: #eef2fd;
  --text: #171717;             /* основной текст */
  --muted: #6b7280;            /* вторичный серый */
  --border: #e5e7eb;
  --border-strong: #d6dbe6;

  --accent: #0b56f7;           /* акцентный синий */
  --accent-2: #2d6bff;
  --accent-soft: #e8efff;      /* светло-синяя заливка */
  --accent-text: #0a45c4;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 6px 16px -4px rgba(16, 24, 40, 0.12), 0 2px 6px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, 0.18), 0 8px 20px -8px rgba(16, 24, 40, 0.12);

  --font: "Manrope", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; color: var(--text); font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(11, 86, 247, 0.6);
}
.btn-primary:hover { background: var(--accent-2); }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--text); background: #fafbfe; }

.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 4px 20px -12px rgba(16,24,40,0.12); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #7a5bff);
  color: #fff; font-weight: 800; font-size: 13px;
  box-shadow: 0 6px 14px -6px rgba(11,86,247,.6);
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { background: var(--surface); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 16px; }

.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 86px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(11,86,247,0.10), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(122,91,255,0.08), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 13.5px; font-weight: 600; border: 1px solid #d6e2ff;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.hero h1 { font-size: 60px; font-weight: 800; margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), #7a5bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-bottom: 34px; }
.hero-note b { color: var(--text); font-weight: 600; }

.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 600px; }
.fact {
  position: relative; overflow: hidden;
  display: flex; gap: 13px; align-items: center;
  padding: 18px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.fact::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: .55;
}
.fact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.fact:nth-child(1)::before { background: linear-gradient(90deg, #0b56f7, #7a5bff); }
.fact:nth-child(2)::before { background: linear-gradient(90deg, #0ea5e9, #22d3ee); }
.fact:nth-child(3)::before { background: linear-gradient(90deg, #7a5bff, #ec4899); }
.fact-icon {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px; color: #fff;
}
.fact:nth-child(1) .fact-icon { background: linear-gradient(135deg, #0b56f7, #7a5bff); box-shadow: 0 6px 14px -6px rgba(11,86,247,.6); }
.fact:nth-child(2) .fact-icon { background: linear-gradient(135deg, #0ea5e9, #22d3ee); box-shadow: 0 6px 14px -6px rgba(14,165,233,.6); }
.fact:nth-child(3) .fact-icon { background: linear-gradient(135deg, #7a5bff, #ec4899); box-shadow: 0 6px 14px -6px rgba(122,91,255,.6); }
.fact b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.fact span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Мокап дашборда */
.hero-visual { position: relative; }
.dash {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.dash-circles { display: flex; gap: 6px; }
.dash-circles i { width: 12px; height: 12px; border-radius: 50%; background: #e5e7eb; display: block; }
.dash-circles i:nth-child(1){ background:#ff5f57; } .dash-circles i:nth-child(2){ background:#febc2e; } .dash-circles i:nth-child(3){ background:#28c840; }
.dash-search {
  font-size: 12px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px;
}
.dash-body { padding: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.kpi small { color: var(--muted); font-size: 11px; display: block; }
.kpi b { font-size: 20px; letter-spacing: -0.02em; }
.kpi .up { color: var(--success); font-size: 11px; font-weight: 700; }

.dash-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dash-row {
  display: grid; grid-template-columns: 1.6fr 1fr .7fr .8fr; column-gap: 10px;
  padding: 11px 14px; font-size: 12.5px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.dash-row:last-child { border-bottom: none; }
.dash-row.head { background: var(--surface); color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.dash-row .tname { font-weight: 600; }
.dash-row .tag {
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; justify-self: start;
}
.tag.high { background: #fee2e2; color: var(--danger); }
.tag.mid { background: #fef3c7; color: var(--warning); }
.tag.win { background: #dcfce7; color: var(--success); }
.score { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.score i { height: 6px; border-radius: 4px; background: var(--accent-soft); flex: 1; max-width: 48px; }
.score i em { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

.ai-chip {
  position: absolute; right: -14px; top: 84px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.ai-chip .ai-ico { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,var(--accent),#7a5bff); color:#fff; display:grid; place-items:center; font-weight:800; font-size:12px; }
.ai-chip b { display: block; font-size: 13px; line-height: 1.2; }
.ai-chip span { font-size: 11.5px; color: var(--muted); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }
.section.tinted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: 40px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Модули / фичи ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-ico {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--accent-soft); color: var(--accent-text);
}
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.feature-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--text); }
.feature-list li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: 0 0 auto; }

/* Демо-панель под модулями */
.demo-panel {
  margin-top: 40px; background: var(--text); color: #fff;
  border-radius: var(--radius-xl); padding: 34px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
}
.demo-panel h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.demo-panel p { color: rgba(255,255,255,.72); font-size: 15px; margin: 0 0 6px; }
.demo-panel .small-mrk { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.demo-panel .small-mrk span { font-size:12px; background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); padding:5px 11px; border-radius:999px; }
.upload-box {
  background: rgba(255,255,255,.06); border: 1.5px dashed rgba(255,255,255,.28);
  border-radius: var(--radius-lg); padding: 26px; text-align: center;
}
.upload-box .ico { font-size: 30px; margin-bottom: 8px; }
.upload-box b { display:block; font-size: 15px; margin-bottom:4px; }
.upload-box span { font-size: 13px; color: rgba(255,255,255,.6); }
.upload-box .file { display:flex; flex-direction:column; gap:8px; text-align:left; }
.file .frow { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.07); border-radius:10px; padding:9px 12px; font-size:13px; }
.file .frow .nm { flex:1; }
.file .bar { height:6px; border-radius:5px; background:rgba(255,255,255,.14); overflow:hidden; width:70px; }
.file .bar i { display:block; height:100%; width:70%; background:linear-gradient(90deg,var(--accent-2),#7a5bff); }

/* ---------- Тарифы ---------- */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; font-weight: 600; }
.switch { position: relative; width: 54px; height: 30px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; cursor: pointer; transition: .2s; }
.switch .sl::before { content:""; position:absolute; width:24px; height:24px; border-radius:50%; background:#fff; left:3px; top:3px; transition:.2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .sl { background: var(--accent); }
.switch input:checked + .sl::before { transform: translateX(24px); }
.period-save { background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.prices-per { text-align:center; color: var(--muted); font-size: 14px; margin-bottom: 36px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.plan.popular { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.badge-pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan-price .num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price .per { color: var(--muted); font-size: 14px; }
.plan.delayed .perc { font-size: 15px; font-weight: 700; color: var(--text); }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan-list li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: 0 0 auto; }
.plan-list li.off { color: var(--muted); }
.plan-list li.off::before { content: "✕"; color: #b6bdc9; }
.plan .btn { width: 100%; }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background:#fff; border:1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; }
.step-num {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: var(--accent); color:#fff; box-shadow: 0 8px 16px -6px rgba(11,86,247,.5);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 20px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q .chev { flex: 0 0 auto; transition: transform .2s ease; color: var(--muted); font-size: 18px; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 20px 20px; margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Финальный CTA ---------- */
.cta-final {
  text-align: center; padding: 70px 0;
  background:
    radial-gradient(760px 300px at 50% -40%, rgba(11,86,247,.16), transparent 65%),
    var(--surface);
  border-top: 1px solid var(--border);
}
.cta-final h2 { font-size: 40px; margin-bottom: 14px; }
.cta-final p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Футер ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 40px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-desc { color: var(--muted); font-size: 14px; max-width: 280px; margin-top: 14px; }
.footer-col h4 { font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px;
}

/* ---------- Виджет AI-консультант ---------- */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 60px; height: 60px; border-radius: 18px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #7a5bff);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  box-shadow: 0 12px 28px -8px rgba(11,86,247,.6);
  transition: transform .15s ease;
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab .pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(11,86,247,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11,86,247,.45); } 70% { box-shadow: 0 0 0 16px rgba(11,86,247,0); } 100% { box-shadow: 0 0 0 0 rgba(11,86,247,0); } }

.chat-window {
  position: fixed; right: 26px; bottom: 96px; z-index: 71;
  width: 380px; height: 520px; max-height: calc(100vh - 120px);
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.chat-window.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  background: linear-gradient(135deg, var(--accent), #7a5bff); color: #fff;
}
.chat-head .ai-ico { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; }
.chat-head b { display:block; line-height:1.2; font-size: 15px; }
.chat-head span { font-size: 12px; opacity: .85; }
.chat-close { margin-left: auto; background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.msg { max-width: 82%; font-size: 14px; line-height: 1.5; padding: 11px 14px; border-radius: 14px; white-space: pre-wrap; }
.msg.ai { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--accent); color:#fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-quick button { background: var(--accent-soft); color: var(--accent-text); border: 1px solid #d6e2ff; border-radius: 999px; font-size: 12.5px; font-weight: 600; padding: 7px 12px; cursor: pointer; font-family: inherit; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-input input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; outline: none; }
.chat-input input:focus { border-color: var(--accent); }
.chat-input button { border: none; background: var(--accent); color:#fff; border-radius: 10px; padding: 0 16px; font-weight: 700; cursor: pointer; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 26px; bottom: 26px; z-index: 69;
  max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 18px; display: none;
}
.cookie.show { display: block; }
.cookie p { margin: 0 0 14px; font-size: 13.5px; color: var(--text); }
.cookie .row { display: flex; gap: 10px; }
.cookie .row button { flex: 1; }

/* ---------- Страницы-формы ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 430px; background:#fff; border:1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 26px; margin: 18px 0 6px; }
.auth-card > p { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 15px; outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,86,247,.12); }
.auth-submit { width: 100%; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.divider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; margin: 18px 0; }
.divider::before,.divider::after { content:""; flex:1; height:1px; background: var(--border); }
.soc-row { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soc-row .btn { font-size:13.5px; }
.check-row { display:flex; gap:9px; align-items:flex-start; font-size:13px; color:var(--muted); margin-bottom:18px; }
.check-row input { margin-top:2px; }

/* ---------- Документы (privacy/terms) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 60px 24px 80px; }
.doc h1 { font-size: 34px; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.doc h2 { font-size: 21px; margin: 30px 0 12px; }
.doc p, .doc li { color: #3c4043; font-size: 15.5px; line-height: 1.7; }
.doc ul { padding-left: 20px; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero h1 { font-size: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-facts { max-width: 100%; }
  .features, .plans, .steps { grid-template-columns: 1fr 1fr; }
  .demo-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn:first-child { display: none; }
  .nav-burger { display: flex; }
  .nav-menu-open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px 18px; gap: 6px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu-open a { padding: 11px 12px; font-size: 17px; }
  .features, .plans, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-head h2, .cta-final h2 { font-size: 30px; }
  .hero h1 { font-size: 36px; }
  .chat-window { width: calc(100vw - 32px); right: 16px; bottom: 92px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }