/* Onest — селф-хост, кириллица + латиница */
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/static/fonts/onest-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/static/fonts/onest-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('/static/fonts/onest-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('/static/fonts/onest-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-weight: 800; font-display: swap; src: url('/static/fonts/onest-cyrillic-800.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-weight: 800; font-display: swap; src: url('/static/fonts/onest-latin-800.woff2') format('woff2'); }

:root {
  --ink: #0F1E2B; --navy: #16324C; --navy2: #1D4E7E; --blue: #2E77B8;
  --sky: #EAF2F9; --bg2: #F5F8FB; --line: #E3EAF0; --muted: #5D6B78;
  --red: #A63A2B; --green: #2F7D46; --amber: #94660F;
  --r: 18px;
  --shadow-lg: 0 24px 60px -16px rgba(15, 40, 64, .22);
  --shadow-md: 0 12px 32px -10px rgba(15, 40, 64, .14);
  --shadow-sm: 0 4px 14px -4px rgba(15, 40, 64, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
a { color: var(--navy2); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* появление при скролле */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none !important; }
}

/* ---------- шапка ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.wordmark { font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.wordmark span { color: var(--blue); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 14px 26px; border-radius: 12px; border: none; text-decoration: none;
  font-weight: 600; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--navy2), var(--blue));
  box-shadow: 0 8px 24px -8px rgba(29, 78, 126, .5);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 32px -8px rgba(29, 78, 126, .55); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--blue); color: var(--navy2); filter: none; }
.btn.small { padding: 10px 18px; font-size: 14.5px; border-radius: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--sky); color: var(--navy2); border-radius: 999px;
  padding: 7px 15px; font-size: 13.5px; font-weight: 600;
}

/* ---------- герой ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -280px; right: -220px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(46, 119, 184, .14), rgba(46, 119, 184, 0) 65%);
  pointer-events: none;
}
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 44px 0 52px; }
.hero h1 { font-size: clamp(38px, 5vw, 56px); margin: 14px 0 16px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--navy2), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 33em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* макет отчёта в герое */
.mockwrap { position: relative; }
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 20px 22px 44px;
}
.mock .filebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mock .fname { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; }
.mock .fname svg { flex: none; }
.mock .fname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; }
.chip.ok { background: #E4F1E7; color: var(--green); }
.chip.crit { background: #F6E4E0; color: var(--red); }
.chip.major { background: #F5EDDA; color: var(--amber); }

.finding {
  border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; background: #fff;
}
.finding + .finding { margin-top: 10px; }
.finding.major { border-left-color: var(--amber); }
.finding.calc { border-left-color: var(--navy2); }
.finding .lbl { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.finding b { color: var(--ink); }
.finding .quote {
  background: var(--bg2); border-left: 3px solid var(--navy2); border-radius: 0 8px 8px 0;
  padding: 8px 12px; margin-top: 10px; font-size: 13.5px; font-style: italic; color: var(--ink);
}
.finding .quote .src { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 5px; letter-spacing: .4px; text-transform: uppercase; }
.finding table { border-collapse: collapse; width: 100%; font-size: 14px; }
.finding td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.finding td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.finding tr:last-child td { border-bottom: none; font-weight: 800; color: var(--navy2); }
.mock .sumline { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* плавающие чипы */
.float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 10px 16px; font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.float.f1 { top: -22px; left: -30px; }
.float.f2 { bottom: -14px; right: -10px; }
.float svg { flex: none; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,125,70,.35);} 50% { box-shadow: 0 0 0 7px rgba(47,125,70,0);} }

/* ---------- полоса цифр ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0 64px; }
.stat {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px;
}
.stat .v { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; color: var(--navy2); }
.stat .v.r { color: var(--red); }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- секции ---------- */
section.band { padding: 84px 0; }
section.band.tint { background: var(--bg2); }
.band .heading { max-width: 640px; margin-bottom: 44px; }
.band h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 14px 0 12px; }
.band .sub { color: var(--muted); font-size: 17.5px; margin: 0; }

/* как работает */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step3 {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.step3:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step3 .ic {
  width: 46px; height: 46px; border-radius: 13px; background: var(--sky); color: var(--navy2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step3 h3 { font-size: 18.5px; margin-bottom: 7px; }
.step3 p { margin: 0; color: var(--muted); font-size: 15px; }

/* фичи */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 84px; }
.feature.rev .txt { order: 2; }
.feature.rev .vis { order: 1; }
.feature h2 { font-size: 28px; margin: 14px 0 10px; }
.feature p.desc { color: var(--muted); margin: 0 0 20px; }
.feature .vis .finding { box-shadow: var(--shadow-md); }
ul.checks { list-style: none; margin: 0; padding: 0; }
ul.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15.5px; }
ul.checks .ck {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--sky); color: var(--navy2); display: flex; align-items: center; justify-content: center;
}

/* честные границы — тёмная полоса */
section.dark { background: linear-gradient(150deg, #12283C, var(--navy)); padding: 84px 0; }
section.dark h2 { color: #fff; }
section.dark .sub { color: #A9BCCC; }
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.limit {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r); padding: 26px;
}
.limit h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.limit p { margin: 0; color: #A9BCCC; font-size: 15px; }

/* конфиденциальность */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.priv {
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: #fff;
}
.priv .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--navy2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.priv h3 { font-size: 17px; margin-bottom: 6px; }
.priv p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- финал ---------- */
.finalwrap { padding: 30px 0 90px; }
.final {
  background: linear-gradient(150deg, #12283C, var(--navy) 55%, var(--navy2));
  border-radius: 26px; padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start; box-shadow: var(--shadow-lg);
}
.final h2 { color: #fff; font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 14px; }
.final .sub { color: #B9CBDA; font-size: 17px; margin: 0 0 24px; max-width: 30em; }
.final .pilotline { color: #8FA6B9; font-size: 14px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }
.formcard { position: relative; background: #fff; border-radius: 20px; padding: 30px 32px; box-shadow: 0 20px 56px rgba(0,0,0,.35); }
.formcard .stamp {
  position: absolute; top: -16px; right: 22px; transform: rotate(-3deg);
  border: 2.5px solid var(--red); color: var(--red); background: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 8px;
}
.formcard h3 { font-size: 21px; margin-bottom: 4px; }
.formcard .note { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.formcard label { display: block; margin: 13px 0 5px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.formcard input, .formcard textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15.5px; background: #FBFCFD; transition: border-color .2s ease;
}
.formcard input:focus, .formcard textarea:focus { border-color: var(--blue); outline: none; }
.formcard textarea { resize: vertical; }
.formcard .btn { width: 100%; margin-top: 18px; justify-content: center; padding: 15px; }
.formcard .fine { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.hp { position: absolute; left: -5000px; top: -5000px; }
.agree { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px;
         font-size: 13px; color: var(--muted); line-height: 1.45; }
.agree input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--navy2); flex: none; }
.agree a { color: var(--navy2); }
.sentbox {
  background: #E4F1E7; border: 1px solid #BFDCC7; color: var(--green);
  padding: 13px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14.5px; font-weight: 600;
}

/* ---------- футер ---------- */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 36px; display: flex;
  justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }

.bigfoot { background: linear-gradient(150deg, #12283C, var(--navy)); color: #A9BCCC; padding: 46px 0 30px; }
.bf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
          flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.16); }
.bf-logo { font-weight: 800; font-size: 23px; letter-spacing: -0.02em; color: #fff; }
.bf-logo span { color: var(--blue); }
.bf-brand p { margin: 8px 0 0; font-size: 14px; color: #8FA6B9; max-width: 30em; }
.bf-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.bf-links a { color: #C9D6E2; text-decoration: none; font-size: 14.5px; font-weight: 600;
              transition: color .15s ease; }
.bf-links a:hover { color: #fff; }
.bf-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
             padding-top: 18px; font-size: 13px; color: #8FA6B9; }
@media (max-width: 860px) {
  .bf-top { flex-direction: column; gap: 18px; }
  .bf-bottom { flex-direction: column; gap: 6px; }
}

/* ---------- мобильный ---------- */
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; gap: 46px; padding: 48px 0 52px; }
  .stats, .steps3, .limits, .privacy { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.rev .txt { order: 1; }
  .feature.rev .vis { order: 2; }
  .feature + .feature { margin-top: 56px; }
  section.band, section.dark { padding: 56px 0; }
  .final { grid-template-columns: 1fr; padding: 34px 26px; gap: 36px; }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
}

/* ===== ИИ-ассистент (виджет, вариант 1 «фирменный синий») ===== */
.aw-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; }
.aw-hint { background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13px;
  padding: 8px 13px; border-radius: 11px; box-shadow: var(--shadow-sm); cursor: pointer; }
.aw-btn { width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer; flex: none;
  background: linear-gradient(160deg, var(--navy), var(--navy2)); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(15,40,64,.32);
  transition: transform .15s ease; }
.aw-btn:hover { transform: scale(1.06); }
.aw-panel { position: fixed; right: 20px; bottom: 86px; z-index: 95; width: 330px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 44px rgba(15,40,64,.30);
  display: none; flex-direction: column; }
.aw-panel.open { display: flex; }
.aw-head { background: var(--navy); color: #fff; padding: 12px 15px; display: flex; align-items: flex-start; gap: 10px; }
.aw-head b { font-size: 14.5px; display: block; }
.aw-head span { font-size: 11px; opacity: .75; display: block; margin-top: 1px; }
.aw-close { margin-left: auto; background: none; border: none; color: #fff; opacity: .75; cursor: pointer;
  font-size: 20px; line-height: 1; padding: 0 2px; }
.aw-close:hover { opacity: 1; }
.aw-body { padding: 13px; display: flex; flex-direction: column; gap: 9px; background: var(--bg2);
  height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.aw-m { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word; }
.aw-m.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.aw-m.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.aw-m.wait { color: var(--muted); }
.aw-m.wait i { display: inline-block; animation: aw-b 1.2s infinite; font-style: normal; }
.aw-m.wait i:nth-child(2) { animation-delay: .2s; } .aw-m.wait i:nth-child(3) { animation-delay: .4s; }
@keyframes aw-b { 0%,60%,100% { opacity: .25 } 30% { opacity: 1 } }
.aw-foot { padding: 10px 13px 11px; background: #fff; border-top: 1px solid var(--line); }
.aw-inp { display: flex; gap: 8px; }
.aw-inp input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font: inherit; font-size: 16px; min-width: 0; }
.aw-send { width: 40px; height: 40px; border-radius: 10px; border: none; cursor: pointer; flex: none;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.aw-send:disabled { opacity: .5; cursor: default; }
.aw-alt { font-size: 12px; margin-top: 7px; }
.aw-legal { font-size: 10.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
@media (max-width: 480px) {
  .aw-panel { right: 0; bottom: 0; left: 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0; }
  .aw-body { height: min(52vh, 380px); }
  .aw-hint { display: none; }
}
