/* Страницы «Senso Radar в ChatGPT / Claude» (13.11): та же система, что у лендинга (index.html),
   но страница — справка, а не витрина: текст слева, без анимаций по прокрутке.
   Единственное движение — переписка в первом экране появляется по репликам. */
:root {
  --bg: #080809;
  --card: #151516;
  --raised: #1c1c1e;
  --line: #262627;
  --ink: #ffffff;
  --ink-inverse: #0a0a0b;
  --t2: #d1d5dc;
  --t3: #99a1af;
  --t4: #6a7282;
  --good: #00d796;
  --bad: #fb353d;
  --attention: #ffca11;
  --pro: #2b78f0;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 20px;
  --header-h: 64px;
  --sec-pad: clamp(56px, 41px + 4vw, 96px);
}
@media (min-width: 900px) { :root { --gutter: 48px; --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--pro); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1080px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.link { color: var(--t2); text-decoration: underline; text-decoration-color: rgba(209, 213, 220, 0.35); text-underline-offset: 3px; transition: color 150ms ease, text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: #ffffff; text-decoration-color: #ffffff; } }

/* Кнопки — как на лендинге */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 9999px; font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn-white { background: #ffffff; color: var(--ink-inverse); }
.btn-ghost { padding: 0 22px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(21, 21, 22, 0.5); color: #ffffff; }
@media (hover: hover) and (pointer: fine) {
  .btn-white:hover { background: #e5e7eb; }
  .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(38, 38, 39, 0.6); }
}

/* Шапка: на справочной странице сразу с фоном */
.header { position: sticky; top: 0; height: var(--header-h); z-index: 50; background: rgba(8, 8, 9, 0.8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 -1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: 90px; height: 33px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--t3); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 150ms ease; }
.nav a[aria-current="page"] { color: #ffffff; }
.nav .nav-wide { display: none; }
@media (min-width: 900px) {
  .logo img { width: 113px; height: 41px; }
  .nav { gap: 32px; }
  .nav a { font-size: 15px; }
  .nav .nav-wide { display: inline; }
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: #ffffff; } }

/* Первый экран: текст слева, переписка справа */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 24px + 4vw, 88px) 0 var(--sec-pad); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 85% 0%, rgba(30, 110, 230, 0.3) 0%, rgba(8, 8, 9, 0) 70%); }
.hero-grid { display: grid; gap: 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(21, 21, 22, 0.6); color: var(--t2); font-size: 12px; font-weight: 600; }
.badge .dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--good); }
.hero h1 { margin-top: 20px; font-size: clamp(34px, 24px + 2.6vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.hero .lead { margin-top: 18px; max-width: 34em; font-size: clamp(16px, 15px + 0.25vw, 19px); line-height: 1.55; color: var(--t2); text-wrap: pretty; }
.actions { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; max-width: 350px; }
.actions .btn { height: 50px; font-size: 16px; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--t3); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 64px; align-items: center; }
  .badge { height: 34px; padding: 0 16px; font-size: 13px; }
  .actions { flex-direction: row; max-width: none; gap: 12px; }
  .actions .btn { height: 52px; font-size: 17px; }
}

/* Переписка в чате — пример на демо-ресторане */
.convo { border-radius: 24px; background: var(--card); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.convo-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--t3); }
.convo-top b { color: var(--t2); font-weight: 600; }
.msg-user { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--raised); font-size: 15px; line-height: 1.4; }
.msg-bot { font-size: 14px; line-height: 1.5; color: var(--t2); }
.msg-bot > p + p, .msg-bot > p + ul, .msg-bot > ul + p { margin-top: 10px; }
.msg-bot ul { display: flex; flex-direction: column; gap: 8px; }
.msg-bot li { padding: 12px 14px; border-radius: 14px; background: var(--raised); }
.msg-bot li b { display: flex; justify-content: space-between; gap: 12px; color: #ffffff; font-weight: 600; }
.msg-bot li b span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.msg-bot li b .neg { color: var(--bad); }
.msg-bot li small { display: block; margin-top: 3px; font-size: 13px; color: var(--t3); }
.convo-note { font-size: 12px; color: var(--t4); }
@media (min-width: 900px) { .convo { padding: 24px; } }
@media (prefers-reduced-motion: no-preference) {
  .convo .msg-user, .convo .msg-bot { animation: msg-in 520ms var(--ease-out) both; }
  .convo .msg-user { animation-delay: 250ms; }
  .convo .msg-bot { animation-delay: 900ms; }
}
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Разделы */
.section { padding: var(--sec-pad) 0; border-top: 1px solid var(--line); }
.h2 { font-size: clamp(28px, 22px + 1.5vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.sub { margin-top: 14px; max-width: 38em; font-size: clamp(16px, 15.6px + 0.1vw, 17px); line-height: 1.55; color: var(--t2); text-wrap: pretty; }

/* Что можно спросить: вопрос и что придёт в ответ */
.asks { margin-top: 32px; display: grid; gap: 0; }
.ask { padding: 20px 0; border-top: 1px solid var(--line); }
.ask h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }
.ask p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--t3); max-width: 34em; }
@media (min-width: 900px) {
  .asks { margin-top: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
  .ask { padding: 24px 0; }
  .ask h3 { font-size: 19px; }
}

/* Подключение: настоящая последовательность — шаги с номерами */
.steps { margin-top: 32px; display: grid; gap: 12px; counter-reset: step; }
.step { position: relative; padding: 24px 24px 24px 64px; border-radius: 24px; background: var(--card); counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 24px; top: 22px; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--t4); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--t3); }
.step code { font-family: inherit; color: var(--t2); }
.demo-line { margin-top: 20px; font-size: 15px; line-height: 1.5; color: var(--t2); max-width: 40em; }
@media (min-width: 900px) {
  .steps { margin-top: 48px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .step { padding: 72px 28px 28px; }
  .step::before { left: 28px; top: 24px; font-size: 32px; }
  .step h3 { font-size: 19px; }
}

/* Что важно знать: термин и пояснение */
.facts { margin-top: 32px; display: grid; }
.fact { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.fact dt { font-size: 15px; font-weight: 600; }
.fact dd { font-size: 15px; line-height: 1.55; color: var(--t3); max-width: 40em; }
@media (min-width: 900px) {
  .facts { margin-top: 40px; }
  .fact { grid-template-columns: 240px minmax(0, 1fr); column-gap: 40px; padding: 22px 0; }
  .fact dt, .fact dd { font-size: 16px; }
}

/* Вопросы: нативные details — работают без скриптов */
.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq details { border-radius: 16px; background: var(--card); }
.faq summary { min-height: 60px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 500; line-height: 1.35; cursor: pointer; list-style: none; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex-shrink: 0; border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3); transform: rotate(45deg) translate(-2px, -2px); transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 20px 20px; font-size: 15px; line-height: 1.55; color: var(--t2); }
@media (min-width: 900px) {
  .faq { margin-top: 40px; }
  .faq summary { padding: 18px 24px; font-size: 17px; }
  .faq details p { padding: 0 24px 24px; }
}

/* Финальный призыв */
.cta { padding: clamp(28px, 20px + 3vw, 64px); border-radius: 24px; background: radial-gradient(70% 90% at 90% 0%, rgba(30, 110, 230, 0.32) 0%, rgba(21, 21, 22, 0) 70%), var(--card); }
.cta h2 { font-size: clamp(26px, 20px + 1.5vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; max-width: 18em; }
.cta p { margin-top: 14px; max-width: 36em; font-size: 16px; line-height: 1.55; color: var(--t2); }

/* Подвал */
.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--t3); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; }
.footer a { color: var(--t3); text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: #ffffff; } }
@media (min-width: 900px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
