/* AI Бригада — лендинг. Две темы: светлая (синий, спокойное доверие) и тёмная (стиль приложения, оранжевый).
   Переключение — атрибут data-theme на <html>; контраст текста и кнопок проверен по WCAG AA. */

:root,
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg2: #f3f6fb;
  --bg3: #e8eef8;
  --ink: #0b1b33;
  --muted: #4b5b75;
  --line: #dbe3ef;
  --acc: #1b5fd6;
  --acc-text: #1b5fd6;
  --btn: #1b5fd6;
  --btn-hover: #164fb4;
  --on-btn: #ffffff;
  --shadow: 0 10px 30px rgba(11, 27, 51, .10);
  --chip-bg: rgba(255, 255, 255, .92);
  --chip-ink: #0b1b33;
  --focus: #1b5fd6;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #07080a;
  --bg2: #0e0f12;
  --bg3: #17181c;
  --ink: #f1f1f4;
  --muted: #9a9ba6;
  --line: #232429;
  --acc: #c8631a;
  --acc-text: #e88a42;
  --btn: #b3541a;
  --btn-hover: #9a4715;
  --on-btn: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55);
  --chip-bg: rgba(7, 8, 10, .82);
  --chip-ink: #f1f1f4;
  --focus: #ffb877;
  --glow: radial-gradient(60% 55% at 18% 12%, rgba(200, 99, 26, .22), transparent 60%), radial-gradient(45% 40% at 90% 0%, rgba(232, 138, 66, .12), transparent 60%);
  color-scheme: dark;
}
:root[data-theme="light"] { --glow: none; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Кнопки */
.btn { display: inline-block; text-align: center; line-height: 24px; min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 0; background: var(--btn); color: var(--on-btn); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--acc); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.logo b { color: var(--acc-text); font-weight: 800; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.theme { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); }
.theme button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); }
.theme svg { width: 16px; height: 16px; }

/* Общие блоки */
section { padding: 72px 0; }
.kicker { display: inline-block; color: var(--acc-text); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.08; }
h1, h2, h3 { text-wrap: balance; }   /* заголовки переносятся ровно, без одного слова на последней строке */
.lead, .card p { text-wrap: pretty; }
h1 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 700; }
h1 em { font-style: normal; font-weight: 800; color: var(--acc-text); }
h2 em { font-style: normal; color: var(--acc-text); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 40em; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Строка-статус над шапкой: живой, «редакционный» штрих — реальные факты о сервисе, без придуманных цифр */
.status-bar { background: var(--bg2); border-bottom: 1px solid var(--line); overflow: hidden; }
.status-bar .wrap { display: flex; align-items: center; gap: 28px; min-height: 28px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.status-bar .wrap::-webkit-scrollbar { display: none; }
.status-bar b { color: var(--ink); font-weight: 700; }
.status-bar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acc); flex: none; }
.status-bar span + span::before { content: '·'; margin-right: 8px; color: var(--acc); font-weight: 700; }
@media (max-width: 720px) { .status-bar span:nth-child(n+5) { display: none; } }

/* Плашки подключённых моделей — честный «трастбар»: настоящие названия, без придуманных чисел */
.model-strip { padding: 12px 0; border-bottom: 1px solid var(--line); }
.model-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.model-strip .ms-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.model-pill { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); font-size: 14px; font-weight: 600; color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 22px 0 28px; background-image: var(--glow); background-repeat: no-repeat; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.hero h1 { margin-bottom: 12px; }
.hero .lead { margin-bottom: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.fine { font-size: 14px; color: var(--muted); }
.fine[data-bonus-note] { font-size: clamp(17px, 2vw, 20px); color: var(--ink); }
.mosaic { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: auto auto; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg3); box-shadow: var(--shadow); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile.big { grid-row: span 2; aspect-ratio: 4 / 5; transform: rotate(-3.5deg) scale(1.04); transition: transform .35s ease; }
.tile.big:hover { transform: rotate(0deg) scale(1.02); }
@media (max-width: 960px) { .tile.big { transform: none; } }
.tile.wide { aspect-ratio: 1 / 1; }
.tile.tall { aspect-ratio: 9 / 13; }
.chip { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); font-size: 12.5px; font-weight: 600; backdrop-filter: blur(6px); }

/* Боль */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); border-color: var(--acc); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg3); color: var(--acc-text); margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; }
.solve { margin-top: 28px; padding: 22px 26px; border-radius: 16px; background: var(--bg3); font-size: 18px; font-weight: 600; }
.solve em { font-style: normal; color: var(--acc-text); }

/* Возможности: строки «текст + пример» */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .fx-media { order: -1; }
.fx-text h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.fx-text p { color: var(--muted); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--bg2); }
.link { color: var(--acc-text); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.fx-media { display: grid; gap: 12px; }
.fx-media.pair { grid-template-columns: 1fr 1fr; }
.fx-media .tile { aspect-ratio: 4 / 3; }
.fx-media .tile.sq { aspect-ratio: 1 / 1; }

/* Стандарт / Высокое */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare figure .tile { aspect-ratio: 16 / 9; }
.compare figcaption { margin-top: 10px; font-weight: 600; }
.compare figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 14.5px; }

/* Агенты */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.agents .card { padding: 22px; }
.agents .card h3 { font-size: 18px; }
.custom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; border-style: dashed; border-color: var(--acc); }
.custom h3 { margin-bottom: 4px; }

/* Как это работает */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 26px 26px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--btn); color: var(--on-btn); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* Яркое предложение */
.offer { padding: 0; background: var(--btn); color: var(--on-btn); }
.offer .wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; padding-top: 34px; padding-bottom: 34px; }
.offer strong { display: block; font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.offer small { display: block; margin-top: 8px; font-size: 14px; opacity: .92; max-width: 46em; }
.offer .btn { background: #fff; color: #0b1b33; }
.offer .btn:hover { background: #f1f4fa; }

/* Доверие */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.slot { border: 1px dashed var(--line); border-radius: 16px; padding: 22px; color: var(--muted); font-size: 15px; background: var(--bg2); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.slot strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Отзывы — горизонтальная лента карточек, скролл как у статус-бара (перетаскивание/свайп, без JS-карусели) */
.reviews-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: thin; }
.review-card { flex: 0 0 auto; width: min(320px, 82vw); scroll-snap-align: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.review-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--acc); color: var(--on-btn); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.review-name-wrap { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.review-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.review-handle { color: var(--muted); font-size: 12.5px; }
.review-date { color: var(--muted); font-size: 12px; white-space: nowrap; margin-top: 2px; }
.review-text { color: var(--ink); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Цены */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pack { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.pack.best { border: 2px solid var(--acc); position: relative; }
.pack .tag { position: absolute; top: -13px; left: 20px; padding: 3px 12px; border-radius: 999px; background: var(--btn); color: var(--on-btn); font-size: 13px; font-weight: 700; }
.pack h3 { margin-bottom: 4px; }
.pack .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.pack .toks { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.pack ul { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; flex: 1; }
.pack ul li::before { content: '✓ '; color: var(--acc-text); font-weight: 800; }
.note-line { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

/* Форма */
.formbox { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
form.lead-form { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--ink); font: inherit; font-size: 16px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); outline: 2px solid var(--focus); outline-offset: 1px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--btn); flex: none; }
.check a { color: var(--acc-text); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.msg { font-size: 15px; min-height: 22px; }
.msg.ok { color: #1c7c3c; font-weight: 600; }
.msg.err { color: #c0392b; font-weight: 600; }
:root[data-theme="dark"] .msg.ok { color: #57d182; }
:root[data-theme="dark"] .msg.err { color: #ff8a80; }

/* FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--acc-text); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; max-width: 46em; }

/* Контакты и футер */
.contacts { display: flex; flex-wrap: wrap; gap: 14px; }
.contacts .card { flex: 1 1 260px; }
.footer-mark { overflow: hidden; padding: 8px 0 0; }
.footer-mark span { display: block; text-align: center; font-weight: 800; letter-spacing: -.04em; line-height: .8; font-size: clamp(64px, 15vw, 190px); color: var(--ink); opacity: .06; white-space: nowrap; user-select: none; }
footer { border-top: 1px solid var(--line); padding: 36px 0 0; color: var(--muted); font-size: 14.5px; background: var(--bg2); }
footer .foot-body { padding-bottom: 44px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
footer a { color: var(--ink); }
footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.pd { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* Появление при прокрутке */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Планшет и телефон */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero .wrap, .feature, .formbox { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .fx-media { order: 0; }
  .pain, .steps { grid-template-columns: 1fr; }
  .trust, .packs { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .hero { padding-top: 32px; }
  .top .wrap { gap: 10px; }
  .theme button span { display: none; }
  .theme button { padding: 0 11px; }
  .trust, .packs, .slots, .compare { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .mosaic { gap: 10px; }
  .offer .btn { width: 100%; }
}

/* Страницы документов (политика, согласие) */
.doc { max-width: 820px; padding-top: 44px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--acc-text); }
.doc .meta { font-size: 14px; }
.doc mark { background: color-mix(in srgb, var(--acc) 22%, transparent); color: var(--ink); padding: 1px 6px; border-radius: 6px; }

/* Мозаика hero: левая большая плитка занимает всю высоту правой колонки */
.tile.big { aspect-ratio: auto; min-height: 320px; }
.tile.big img { position: absolute; inset: 0; }
.pack ul { align-content: start; }

/* Агенты: диалог, группы «для бизнеса / для жизни», агент под заказ */
.agent-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; margin-bottom: 44px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg2); }
.chat { display: grid; gap: 10px; }
.chat-cap { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; }
.bubble.user { justify-self: end; background: var(--btn); color: var(--on-btn); border-bottom-right-radius: 4px; }
.bubble.bot { justify-self: start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.agent-how h3 { font-size: 22px; margin-bottom: 12px; }
.agent-how ol { padding-left: 22px; display: grid; gap: 8px; color: var(--muted); margin-bottom: 16px; }
.agent-how strong { color: var(--ink); }
.agent-groups { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.group-title { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 16px; }
.group-title .ico { margin: 0; width: 40px; height: 40px; }
.agent-group .agents { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.group-note { margin-top: 14px; }
.custom-agent { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-top: 44px; padding: 32px; border: 2px dashed var(--acc); border-radius: 20px; }
.custom-agent > div { flex: 1 1 520px; }
.custom-agent h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.custom-agent p { color: var(--muted); max-width: 46em; }
.mini-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: m; }
.mini-steps li { counter-increment: m; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); font-size: 14.5px; }
.mini-steps li::before { content: counter(m); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--btn); color: var(--on-btn); font-size: 13px; font-weight: 800; }
@media (max-width: 960px) {
  .agent-hero, .agent-groups { grid-template-columns: 1fr; }
  .agent-hero { padding: 20px; }
  .custom-agent { padding: 24px; }
}
@media (max-width: 560px) {
  .bubble { max-width: 96%; }
  .custom-agent .btn { width: 100%; }
}

/* Страница «Для бизнеса»: пример-диалог в hero, 4 шага, калькулятор экономии */
.hero .chat { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg2); box-shadow: var(--shadow); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-4 li { background: var(--bg); }
.roi { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.roi-box { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); box-shadow: var(--shadow); }
.roi-box label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.roi-box input[type=number] { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.roi-box input[type=range] { width: 100%; accent-color: var(--btn); min-height: 32px; }
.roi-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-out div { padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.roi-out span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.roi-out strong { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; color: var(--acc-text); }
@media (max-width: 960px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } .roi { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } .roi-out { grid-template-columns: 1fr; } .hero .chat { padding: 18px; } }

.custom-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .custom-actions { width: 100%; } .custom-actions .btn { width: 100%; } }

/* Калькулятор стоимости рутины по областям */
.roi2 { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--bg2); box-shadow: var(--shadow); }
.roi2-in { padding: 28px; display: grid; gap: 14px; align-content: start; }
.roi2-out { padding: 28px; background: var(--bg); border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.roi-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.roi-row label { font-weight: 600; font-size: 15px; }
.roi-row output { font-weight: 800; color: var(--acc-text); font-size: 16px; }
.roi-row input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--btn); min-height: 30px; }
.roi-sub { margin-top: 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.big-num { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--acc-text); }
.bars { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 2px; }
.bars li { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.bars li i { display: block; height: 6px; border-radius: 3px; background: var(--btn); min-width: 4px; }
.bars li b { font-variant-numeric: tabular-nums; }
.save-box { margin: 8px 0 4px; padding: 16px 18px; border-radius: 14px; background: var(--bg3); display: grid; gap: 2px; }
.save-box span { font-size: 13.5px; color: var(--muted); }
.save-box strong { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.save-box small { color: var(--muted); font-size: 14px; }
.tag-line { display: block; margin-bottom: 8px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
@media (max-width: 960px) { .roi2 { grid-template-columns: 1fr; } .roi2-out { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .roi2-in, .roi2-out { padding: 20px; } .bars li { grid-template-columns: 1fr auto; } .bars li i { grid-column: 1 / -1; order: 3; } }
.bars li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 118px; }
.bars li b { text-align: right; }
@media (max-width: 560px) { .bars li { grid-template-columns: 1fr auto; } }

.quick-cta { margin-top: 28px; }
@media (max-width: 560px) { .quick-cta .btn { width: 100%; } }

/* Заголовок «Знакомо?» на широком экране — в одну строку */
@media (min-width: 1000px) {
  .one-line { max-width: none; }
  .one-line h2 { font-size: min(2.7vw, 34px); text-wrap: nowrap; }
}

/* Калькулятор: одинаковый шрифт в подписях слева и в списке справа */
.roi-row label, .bars li span { font-size: 15px; font-weight: 500; line-height: 1.35; }
.bars li { font-size: 15px; font-weight: 500; }
.bars li b { font-weight: 700; }
.roi2 { text-rendering: optimizeLegibility; }

/* Заголовки блоков «Возможности» — в одну строку на широком экране */
@media (min-width: 1000px) {
  .fx-text h3 { font-size: 26px; text-wrap: nowrap; }
}

/* Футер: перечень подключённых нейросетей столбцами */
.models { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.models[hidden] { display: none; }
.models-title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.models-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.models-col h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.models-col ul { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) { .models-cols { grid-template-columns: 1fr; } }
