/* Public surfaces share theme.css. Editorial brand type and product demos stay intact. */
.bt-landing .bt-l-cta .btn { min-height: 48px; padding: 12px 22px; font-size: 15px; font-weight: 500; border-radius: var(--r-pill); }
.bt-landing .bt-l-final .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; font-weight: 500; border-radius: var(--r-pill); }
.bt-landing .bt-l-chip { background: var(--surface); border-color: var(--border); }
.bt-landing .bt-l-hero::before { opacity: .65; }
.bt-landing .bt-l-tile { border-radius: var(--r-lg); border-color: var(--border); }
.bt-landing .bt-l-tile:hover { border-color: var(--ui-border-strong); }
.bt-landing .bt-l-steps li, .bt-landing .bt-l-b {
  background: var(--surface);
  border-color: var(--border);
  border-radius: var(--r-lg);
  box-shadow: none;
}
.bt-landing .bt-l-steps b { font-weight: 600; }
.bt-landing .bt-l-polosa { font-weight: 500; color: var(--muted); }
.bt-landing .bt-l-final { border-radius: var(--r-xl); }
.bt-landing .bt-l-final .btn-primary { color: #b13b00; background: #fff8f2; }
.bt-landing .bt-l-final .btn-ghost { color: #fff; background: rgba(0, 0, 0, .1); border-color: rgba(255, 255, 255, .5); }

/* Document content, sellers and prices are deliberately unmodified. */
body.bt-document { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.bt-document > .bt-top { flex-shrink: 0; }
body.bt-document main { flex: 1 0 auto; width: 100%; }
.bt-document footer { margin-top: auto; flex-shrink: 0; }
body.bt-document main { padding-block: 48px 72px; }
.bt-document h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; font-weight: 600; }
.bt-document h2 { letter-spacing: -.025em; font-weight: 600; }
.bt-document h3 { color: var(--text); font-weight: 600; }
.bt-document :is(p, li) { color: #ccc; }
.bt-document main a { color: #ffab80; text-underline-offset: 3px; }
.bt-document main a:hover { color: var(--text); }
.bt-document .red { color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.bt-document main > :is(ul, ol) { line-height: 1.85; }
.bt-document dt { color: var(--muted); }
.bt-document dd { color: var(--text); }
.bt-document .tarif { border-radius: var(--r-md); }
.bt-document footer { background: var(--bg2); }
.bt-document footer a { color: var(--silver-hi); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .bt-document .bt-top { flex-wrap: wrap; gap: 12px; }
  .bt-document .bt-top .bt-nav {
    order: 3;
    flex: 0 0 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block: 4px;
  }
}

/* Pricing reuses the same cards and comparison cells at every breakpoint. */
.tk-plan-tabs[hidden], .bt-pricing .tk[hidden] { display: none; }
.bt-pricing .tk-tablica [hidden] { display: none; }
.bt-pricing .tk-tablica.ui-plan-comparison table { min-width: 0; table-layout: fixed; }
.bt-pricing .tk-tablica.ui-plan-comparison tr > :first-child { width: 60%; }
.bt-pricing .tk-tablica.ui-plan-comparison :is(th, td) { padding: 12px; overflow-wrap: anywhere; }
.bt-pricing .tk-tablica.ui-plan-comparison tr:first-child th:not(:first-child) { white-space: nowrap; overflow-wrap: normal; }
.tk-plan-tabs {
  display: flex; gap: 4px; overflow-x: auto;
  position: sticky; top: var(--ui-header-height, 0px); z-index: 20;
  padding: 6px; margin-bottom: 14px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--r-md);
}
.tk-plan-tabs > button {
  flex: 1 0 auto; min-width: 0; min-height: 44px; padding: 8px 8px; border: 1px solid transparent;
  border-radius: var(--r-sm); background: transparent; color: var(--muted);
  font: 500 12px/18px var(--ui-font); cursor: pointer; white-space: nowrap;
}
.tk-plan-tabs > button[aria-selected=true] { background: var(--ui-selected); color: var(--ui-selected-text); border-color: var(--ui-selected-border); }
.tk-plan-tabs > button:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: -2px; }
@media (max-width: 1000px) {
  .bt-pricing .tk-setka { grid-template-columns: minmax(0, 1fr); max-width: 580px; margin-inline: auto; }
  .tk-plan-tabs { max-width: 580px; margin-inline: auto; }
  .bt-pricing .tk { gap: 12px; }
  .bt-pricing .tk-komu { min-height: 0; }
}
@media (max-width: 600px) {
  .tk-okno-tovar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .tk-okno-tovar > div:not(.tk-cena) { display: contents; }
  .tk-okno-tovar b { grid-column: 1; grid-row: 1; }
  .tk-okno-tovar span { grid-column: 1 / -1; grid-row: 2; }
  .tk-okno-tovar > .tk-cena { grid-column: 2; grid-row: 1; }
  .tk-sposob { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; }
  .tk-sposob > i { grid-column: 1; grid-row: 1; width: 30px; height: 30px; }
  .tk-sposob > em { grid-column: 2; grid-row: 1; }
  .tk-sposob > span { grid-column: 1 / -1; min-width: 0; }
  .tk-sposob b { font-size: 13px; }
  .bt-document main { overflow-wrap: anywhere; padding-block: 28px 40px; }
  .bt-document dl { grid-template-columns: minmax(0, 1fr); }
  .bt-document dd { margin-left: 0; }
  .bt-pricing .tk { padding: 18px; }
  .bt-pricing .tk header { flex-wrap: wrap; }
  .bt-pricing .tk-stroka { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bt-pricing .tk-stroka .btn { width: 100%; }
  .bt-landing .bt-l-final { margin-block: 40px 24px; }
}
.bt-pricing .geroy::before { opacity: .55; }
.bt-pricing .tk { border-radius: var(--r-lg); background: var(--surface); border-color: var(--border); }
.bt-pricing .tk h2 { font-weight: 600; }
.bt-pricing .tk-glavnyi { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 180px), var(--surface); box-shadow: none; }
.bt-pricing .tk-tokeny { border-radius: var(--r-sm); background: var(--bg2); }
.bt-pricing .tk-cena { font-weight: 600; letter-spacing: -.04em; }
.bt-pricing .tk-metka { border-radius: 5px; font-weight: 600; }
.bt-pricing .tk-skidka, .bt-pricing .tk-metka-vygoda { color: #ffc49e; background: #40251c; }
.bt-pricing .tk-vygodno { border-color: #69402b; }
.bt-pricing .tk-p-ekonomiya { color: #ffad7d; }
.bt-pricing .tk-polzunok > div, .bt-pricing .tk-stroka, .bt-pricing .tk-tablica,
.bt-pricing .voprosy details { border-radius: var(--r-lg); background: var(--surface); border-color: var(--border); }
.bt-pricing .tk-polzunok-pravo { box-shadow: none; }
.bt-pricing .tk-tablica tr:first-child th { background: var(--bg2); }
.bt-pricing .tk-tablica tr > th:first-child, .bt-pricing .tk-vhodit li { color: #ccc; }
.bt-pricing .tk-tablica td { color: var(--silver-hi); }
.bt-pricing .voprosy summary { font-weight: 550; }
.bt-pricing .voprosy details[open] { border-color: var(--ui-border-strong); }
.bt-pricing footer { border-top-color: var(--border); }

@media (prefers-reduced-motion: reduce) {
  .bt-landing .bt-l-hero h1 mark { animation: none; }
  .bt-landing .bt-l-tile { transition: none; }
}

/* ЗАЯВКА С САЙТА (16.11, assets/ui/zayavka.js) — страницы «API и MCP» и «Партнёрская программа». Поля — пилюли той же
   высоты и вида, что поле промокода на тарифах и кнопки рядом: квадратов на сайте нет. */
.bt-zayavka { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; margin: 18px auto 0; }
.bt-zayavka input { width: 100%; height: 44px; padding: 0 20px; border-radius: 999px; box-sizing: border-box;
                    background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text);
                    font: 500 14px/1 inherit; outline: none; transition: border-color .15s; }
.bt-zayavka input::placeholder { color: var(--muted); }
.bt-zayavka input:focus { border-color: var(--accent); }
.bt-zayavka input:disabled { opacity: .55; }
.bt-zayavka .btn { height: 44px; justify-content: center; }
.bt-zayavka-msg { font-size: 13px; color: var(--muted); min-height: 1em; text-align: center; }
.bt-zayavka-msg.ok { color: var(--text); font-weight: 600; }

/* API И MCP (16.11, stranicy/sluzhebnye/mcp.html + assets/ui/vkladki.js) — только раскладка: вкладки — кнопки шапки
   (.bt-navbtn), раздел API — сетка справки (.сп из spravka.css, меню у левого края за чертой), первый экран и шаги —
   классы лендинга. Своих кнопок, карточек и цветов здесь нет (владелец, 16.11: «любую новую страничку — под наш стиль»). */
.bt-mcp [hidden] { display: none !important; }
.bt-landing:has(.bt-mcp) { max-width: none; padding: 0 0 40px; }
.bt-landing:has(.bt-mcp) > footer { max-width: 1180px; margin-inline: auto; padding-inline: 28px; box-sizing: border-box; }
.bt-mcp-uzko { max-width: 1180px; margin: 0 auto; padding: 0 28px; box-sizing: border-box; }
.bt-mcp-vkladki { display: flex; justify-content: center; gap: 4px; margin: 24px auto 0; overflow-x: auto; scrollbar-width: none; }
.bt-mcp-vkladki .bt-navbtn { gap: 8px; flex: none; }
.bt-mcp-vkladki .bt-ik { flex: none; }
/* MCP | API — подменю (.bt-podmenu, shapka.css): кнопки как у меню шапки, без отступа сверху — линии задают ряд */
.bt-mcp-vkladki.bt-podmenu { margin: 0; justify-content: center; }
.bt-klienty { margin-top: 8px; }

/* первый экран клиента — по центру, знак клиента в круглой плашке, свечение лендинга */
.bt-mcp-hero { position: relative; isolation: isolate; text-align: center; padding: 48px 0 16px; }
.bt-mcp-hero::before { content: ''; position: absolute; left: 15%; top: -10%; width: 70%; height: 120%; z-index: -1;
                       background: radial-gradient(closest-side, var(--accent-soft), transparent); opacity: .65; pointer-events: none; }
.bt-mcp-znak { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%;
               background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.bt-mcp-hero h1, .bt-mcp-hero .bt-mcp-zag { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.5px; margin: 20px auto; max-width: 18ch;
                  text-wrap: balance; }
/* Знак клиента — бейджем прямо в заголовке, как у Higgsfield (владелец, 17.11): фирменный цвет, белый знак.
   Имя с бейджем не разрываются переносом. */
.bt-mcp-imya { white-space: nowrap; }
.bt-mcp-beydzh { display: inline-flex; align-items: center; justify-content: center; width: .9em; height: .9em;
                 margin: 0 .16em 0 .04em; vertical-align: -.1em; border-radius: .26em;
                 background: var(--b, var(--text)); color: var(--bc, #fff); }
.bt-mcp-beydzh svg { width: 60%; height: 60%; }
/* «Скопируйте и отправьте в Claude Code» — текст для агента одной кнопкой */
.bt-mcp-kopir { max-width: 620px; margin: 24px auto 0; text-align: left; border-radius: 22px; background: var(--surface);
                border: 1px solid var(--border); overflow: hidden; }
.bt-mcp-kopir-shapka { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; }
.bt-mcp-kopir-shapka b { font-size: 14.5px; }
.bt-mcp-kopir-shapka .btn { flex: none; gap: 6px; }
.bt-mcp-kopir-tekst { padding: 14px 20px 16px; border-top: 1px solid var(--border); background: rgba(0,0,0,.25);
                      font: 500 12.5px/1.6 ui-monospace, Consolas, monospace; color: var(--muted); }
.bt-mcp-kopir-tekst p { margin: 0; }
/* команда — своей строкой и целиком: адрес посреди не рвём, узкому экрану — прокрутка */
.bt-mcp-kopir-tekst code { display: block; color: var(--accent); font: inherit; white-space: nowrap; overflow-x: auto;
                           scrollbar-width: none; }
.bt-mcp-kopir + .bt-l-cta { margin-top: 24px; }
.bt-mcp-hero .bt-l-lead { margin-inline: auto; }
.bt-mcp-hero .bt-l-cta { justify-content: center; }
/* Чип «В разработке» (/plugin) — отдельной строкой под знаком, не рядом с ним */
.bt-mcp-hero > .bt-l-chip { display: flex; width: max-content; margin: 16px auto 0; }
.bt-mcp-hero > .bt-l-chip + h1, .bt-mcp-hero > .bt-l-chip + .bt-mcp-zag { margin-top: 14px; }
.bt-mcp .bt-l-sekciya { padding-top: 48px; }
.bt-mcp-zametka { color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }
.bt-mcp-kod { display: block; margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: rgba(0,0,0,.35);
              border: 1px solid var(--border); color: var(--text); font: 500 12.5px/1.55 ui-monospace, Consolas, monospace;
              overflow-x: auto; white-space: pre; }
.bt-mcp-prosby { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bt-mcp-prosby p { margin: 0; padding: 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border);
                   font-size: 16px; line-height: 1.5; font-weight: 500; }

/* раздел API — сетка справки во всю ширину; пункты меню — кнопки разделов справки с иконкой */
.bt-api-sloy { margin-top: 0; }   /* черта сверху — у подменю */
.bt-api-menu .сп-раздел-кнопка { gap: 10px; cursor: default; }
.bt-api-menu .сп-раздел-кнопка:not(.on) { color: var(--muted); }
.bt-api-menu .сп-раздел-кнопка:not(.on):hover { background: none; }
.bt-api-menu small { margin-left: auto; color: var(--muted); font: 500 12px/1 var(--ui-font, inherit); }
.bt-api-sloy .сп-тело .bt-l-cta { margin-bottom: 30px; }
.bt-api-ik { flex: none; color: var(--accent); }
.bt-api-sloy .сп-тело .bt-mcp-kod { margin: 0 0 8px; }
.bt-api-sloy .сп-тело .bt-l-final { margin-top: 48px; }

@media (max-width: 900px) {
  .bt-mcp-prosby { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .bt-api-menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .bt-api-menu .сп-раздел-кнопка { flex: none; width: auto; }
}
@media (max-width: 600px) {
  .bt-mcp-uzko { padding: 0 16px; }
  .bt-mcp-vkladki { justify-content: flex-start; }
  .bt-mcp-hero { padding-top: 32px; }
}
