/* ===== Внутренние страницы: вход, статус, тарифы, API, возможности, интеграции, мастер (2026-10-12) =====
   Работают поверх style.css и home.css: шапка, кнопки, подвал, финал, терминал, звонок, лестница, чат, лист разбора берутся оттуда.
   Здесь только то, чего на главной нет. Скрипт early.js на этих страницах не подключается, поэтому класса .js нет
   и блоки истории (чат, лист, полосы) сразу видны без анимации появления. */

[hidden] { display: none !important; }
.pg { background: var(--bg-0); }

/* ---------- первый экран страницы ---------- */
.pg-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0 clamp(32px, 5vw, 80px); align-items: end;
  padding: 156px clamp(16px, 4vw, 64px) 76px;
}
.pg-hero h1 {
  margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.035em; line-height: .95;
  font-size: clamp(44px, 5.4vw, 88px); overflow-wrap: anywhere;
}
.pg-hero .h1-split .l3 { width: auto; max-width: 15em; }
.pg-hero .lead { margin: 0; max-width: 480px; }
.pg-hero-side { display: grid; gap: 18px; }
.st-last { margin: 0; font-size: 12.5px; color: var(--txt-3); }
.st-last time { color: var(--txt); }

.pg-sec { padding: 76px clamp(16px, 4vw, 64px); border-top: 1px solid var(--line); }
.pg-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 0 60px; align-items: end; margin-bottom: 36px; }
.pg-sec-head h2 { margin: 0; font-size: clamp(28px, 3vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.pg-sec-head p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--txt-2); }

/* ---------- строка «текст + пример» (возможности, интеграции) ---------- */
.ft {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: center;
  padding: 84px clamp(16px, 4vw, 64px); border-top: 1px solid var(--line);
}
.ft--flip { background: #031209; }
.ft--flip .ft-tx { order: 2; }
.ft-tx { max-width: 540px; }
.ft-tag { display: block; margin-bottom: 18px; font-size: 12.5px; color: var(--txt-3); }
.ft h2 { margin: 0 0 20px; font-size: clamp(30px, 3.2vw, 50px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.ft-tx > p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--txt-2); }
.ft-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.5; color: var(--txt-2); }
.ft-list li { position: relative; padding-left: 22px; }
.ft-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--neon); }
.ft-list b { color: var(--txt); font-weight: 600; }
.ft-vis { min-width: 0; }

.term--flat { margin: 0; border-right: 1px solid rgba(120, 255, 170, .12); border-radius: 20px; }
.term--flat .term-body { height: auto; justify-content: flex-start; mask-image: none; -webkit-mask-image: none; overflow-x: auto; padding: 18px 20px; font-size: 12.5px; }
.room--flat { margin: 0; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); }
.room--flat .room-chat { min-height: 0; padding: 24px; }
.doc--flat { margin: 0; transform: rotate(1.2deg); justify-self: center; }
.ft-vis .call { max-width: 340px; }

.sp--mini, .sp--page { grid-column: auto; grid-row: auto; border-radius: 22px; }
.sp--mini .sp-row { grid-template-columns: 124px 1fr; }
.sp--mini .sp-row .u { display: none; }
.sp-alert.ok { background: rgba(92, 255, 92, .07); box-shadow: inset 3px 0 0 var(--neon); }
.sp-alert.ok i { background: var(--neon); border-radius: 50%; transform: none; }

.int-list { gap: 0; padding: 8px 24px; }
.int-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 17px; }
.int-row:last-child { border-bottom: 0; }
.int-row b { font-weight: 600; }
.int-row em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--txt-3); text-align: right; }

.tg { max-width: 420px; display: grid; gap: 8px; padding: 18px 20px; border-radius: 20px; background: #0b2616; box-shadow: inset 4px 0 0 var(--mint), 0 30px 60px rgba(0, 0, 0, .4); }
.tg-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--txt-3); }
.tg-top b { color: var(--mint); font-weight: 600; }
.tg p { margin: 0; font-size: 15px; line-height: 1.5; color: #cfe8d7; }
.tg .tg-b { font-family: var(--mono); font-weight: 500; letter-spacing: -.02em; color: var(--txt); }

.mailbox { max-width: 460px; display: grid; gap: 10px; padding: 22px 24px; border-radius: 16px; background: #e8f4ea; color: #0b1f12; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(-1deg); }
.mailbox-h { display: flex; justify-content: space-between; font-size: 12px; color: #4f6b57; }
.mailbox p { margin: 0; font-size: 15px; line-height: 1.55; }
.mailbox .mailbox-s { font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }

.code { margin: 0 0 14px; background: #010805; border: 1px solid rgba(120, 255, 170, .12); border-radius: 14px; overflow: hidden; }
.code-k { display: block; padding: 10px 16px; border-bottom: 1px solid rgba(120, 255, 170, .08); font-family: var(--mono); font-size: 11.5px; color: var(--txt-3); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #cfe8d7; tab-size: 2; }
code { font-family: var(--mono); font-size: .9em; color: var(--txt); background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; }

/* ---------- вход ---------- */
.lg {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 100px); align-items: start;
  padding: 150px clamp(16px, 4vw, 64px) 90px; min-height: 100vh; min-height: 100svh;
}
.lg-tag { margin: 0 0 22px; font-size: 12.5px; color: var(--txt-3); }
.lg-h1 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.035em; line-height: .95; font-size: clamp(40px, 4.8vw, 76px); overflow-wrap: anywhere; }
.lg-h1 .l2 { padding-left: 1.2em; }
.lg-list { margin: 34px 0 0; max-width: 460px; }
.lg-extra { margin: 6px 0 0; max-width: 460px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.55; background: rgba(62, 240, 176, .07); box-shadow: inset 3px 0 0 var(--mint); }
.lg-card { display: grid; gap: 20px; padding: 34px; border-radius: 24px; background: #061a0e; border: 1px solid rgba(160, 255, 200, .14); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.lg-card h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.lg-roles { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.lg-roles legend { padding: 0; margin-bottom: 10px; font-size: 13px; color: var(--txt-3); }
.lg-role { position: relative; display: block; cursor: pointer; }
.lg-role input { position: absolute; opacity: 0; }
.lg-role > span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(220, 255, 225, .12); transition: background .2s, box-shadow .2s;
}
.lg-role b { font-weight: 600; font-size: 15.5px; }
.lg-role small { font-size: 13px; color: var(--txt-3); text-align: right; }
.lg-role:hover > span { background: rgba(255, 255, 255, .05); }
.lg-role input:checked + span { background: linear-gradient(90deg, rgba(92, 255, 92, .08), transparent); box-shadow: inset 3px 0 0 var(--neon), inset 0 0 0 1px rgba(92, 255, 92, .35); }
.lg-role input:focus-visible + span { outline: 1px dashed var(--txt-3); outline-offset: 3px; }
.lg-f { display: grid; gap: 8px; font-size: 14px; color: var(--txt-2); }
.lg-f small { margin-left: 6px; font-size: 12.5px; color: var(--txt-3); }
.lg-f input {
  width: 100%; min-height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--txt);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(220, 255, 225, .18); border-radius: 14px; transition: border-color .2s, background .2s;
}
.lg-f input::placeholder { color: #5d8068; }
.lg-f input:hover { border-color: rgba(220, 255, 225, .32); }
.lg-f input:focus { outline: none; border-color: var(--neon); background: rgba(92, 255, 92, .04); }
.lg-f.bad input { border-color: var(--bad); }
.lg-err { font-style: normal; font-size: 13px; color: #ff9a9a; }
.lg-card .cta-note { margin: -4px 0 0; max-width: none; }
.lg-done { justify-items: start; gap: 16px; }
.lg-done p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--txt-2); }
.lg-done .cta-note { font-size: 14px; color: var(--txt-3); }
.lg-done b { color: var(--txt); font-weight: 600; overflow-wrap: anywhere; }
.lg-done-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 8px; }
.lg-back { padding-top: 0; background: none; border-width: 0 0 1px; cursor: pointer; font-family: inherit; color: inherit; }

/* ---------- статус ---------- */
.st-board { padding: 0 clamp(16px, 4vw, 64px) 90px; }
.sp--page { padding: 34px 36px 30px; }
.sp--page .sp-top { margin-bottom: 24px; }
.sp--page .sp-list { gap: 22px; }
.sp--page .sp-row { grid-template-columns: 190px 1fr 70px; gap: 18px; font-size: 15.5px; }
.sp--page .sp-bars { height: 34px; }
.sp--page .sp-foot { margin-left: 208px; margin-right: 88px; }
.hist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hi { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.hi time { font-family: var(--mono); font-size: 13px; color: var(--txt-3); }
.hi h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.hi h3 .mono { margin-left: 10px; font-size: 12.5px; font-weight: 400; color: var(--txt-3); }
.hi p { margin: 0; max-width: 620px; font-size: 15px; line-height: 1.55; color: var(--txt-2); }

/* ---------- тарифы ---------- */
.pr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 clamp(16px, 4vw, 64px); border-top: 1px solid var(--line); }
.pr-plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 34px 32px 38px; border-right: 1px solid var(--line); }
.pr-plan:last-child { border-right: 0; }
.pr-plan--main { background: #061a0e; border-radius: 0 0 24px 24px; border-right-color: transparent; }
.pr-plan--main::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--txt); }
.pr-plan h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.pr-sums { display: grid; gap: 10px; align-content: start; min-height: 108px; }
.pr-sum { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pr-sum b { font-family: var(--mono); font-weight: 500; font-size: clamp(32px, 3vw, 46px); letter-spacing: -.05em; line-height: 1; }
.pr-sum span { font-size: 14px; color: var(--txt-3); }
.pr-plan .ft-list { margin: 0; flex: 1; }
.pr-plan .btn-cut { margin-top: 8px; }
.pr-how { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 0 clamp(32px, 5vw, 80px); align-items: start; margin-top: 76px; }
.pr-how .pg-sec-head { grid-column: 1 / -1; grid-template-columns: 1fr; }
.pr-terms { margin: 0; border-top: 1px solid var(--line); }
.pr-terms div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pr-terms dt { font-weight: 600; }
.pr-terms dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--txt-2); }
.pr-ex { display: grid; gap: 10px; justify-items: start; padding: 28px; border-radius: 24px; background: #061a0e; border: 1px solid rgba(160, 255, 200, .14); }
.pr-ex-h { margin: 0 0 6px; font-weight: 600; font-size: 15.5px; }
.pr-ex .calc-lines { width: 100%; margin: 0 0 12px; font-size: 13px; }
.pr-ex-sum { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--txt); font-size: 15px; }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 4px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--txt-3); }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 1px dashed var(--txt-3); outline-offset: -2px; }
.faq details p { margin: 0 0 22px; max-width: 640px; font-size: 15.5px; line-height: 1.6; color: var(--txt-2); }

/* ---------- API ---------- */
.dx { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding: 0 clamp(16px, 4vw, 64px) 100px; border-top: 1px solid var(--line); }
.dx-toc { position: sticky; top: 84px; padding-top: 40px; }
.dx-toc-h { margin: 0 0 14px; font-size: 12px; color: var(--txt-3); }
.dx-toc nav { display: grid; gap: 2px; }
.dx-toc a { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; margin-left: -10px; border-radius: 10px; font-size: 14px; color: var(--txt-2); transition: color .2s, background .2s; }
.dx-toc a:hover { color: var(--txt); }
.dx-toc a.is-on { color: var(--txt); background: rgba(255, 255, 255, .05); }
.v { flex: none; width: 38px; font-family: var(--mono); font-size: 11px; }
.v-get { color: var(--mint); }
.v-post { color: var(--warn); }
.dx-main { min-width: 0; padding-top: 40px; }
.mt { scroll-margin-top: 92px; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.mt:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.mt h2 { margin: 0 0 20px; font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: -.03em; }
.mt h3 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; font-weight: 500; }
.mt h3 .v { width: auto; font-size: 13px; }
.mt-path { font-size: 18px; overflow-wrap: anywhere; }
.mt-h { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.mt-p { margin: 0 0 20px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--txt-2); }
.dx-facts { margin: 0; border-top: 1px solid var(--line); }
.dx-facts div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dx-facts dt { font-size: 14px; color: var(--txt-3); }
.dx-facts dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--txt-2); overflow-wrap: anywhere; }

/* ---------- мастер настройки ---------- */
.ob { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 100px); align-items: start; padding: 0 clamp(16px, 4vw, 64px) 90px; border-top: 1px solid var(--line); }
.ob-steps { position: relative; list-style: none; margin: 0; padding: 44px 0 0 44px; }
.ob-steps::before { content: ""; position: absolute; left: 11px; top: 62px; bottom: 40px; width: 1px; background: rgba(143, 191, 152, .3); }
.ob-steps li { position: relative; padding: 0 0 46px; }
.ob-steps li::before { content: ""; position: absolute; left: -39px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-0); box-shadow: 0 0 0 1.5px var(--txt-3); }
.ob-steps .ob-last { padding-bottom: 0; }
.ob-steps .ob-last::before { background: var(--neon); box-shadow: 0 0 0 4px rgba(92, 255, 92, .18); }
.ob-n { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--txt-3); }
.ob-steps h2 { margin: 0 0 10px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.ob-steps p { margin: 0; max-width: 540px; font-size: 16.5px; line-height: 1.6; color: var(--txt-2); }
.ob-side { position: sticky; top: 96px; display: grid; gap: 18px; padding-top: 44px; }
.ob-check { gap: 0; padding: 6px 24px; min-height: 0; }
.ob-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 15.5px; }
.ob-row:last-child { border-bottom: 0; }
.ob-row i { position: relative; flex: none; width: 20px; height: 20px; border-radius: 6px; background: #33e3a4; }
.ob-row i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #03281a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ob-note { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--txt-3); }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .ft, .lg, .ob, .pr-how { grid-template-columns: minmax(0, 1fr); }
  .ft--flip .ft-tx { order: 0; }
  .ft-tx { max-width: 720px; }
  .lg-list, .lg-extra { max-width: 620px; }
  .ob-side { position: static; padding-top: 0; }
  .sp--page .sp-row { grid-template-columns: 150px 1fr 66px; }
  .sp--page .sp-foot { margin-left: 164px; margin-right: 84px; }
}
@media (max-width: 900px) {
  .dx { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dx-toc { position: static; min-width: 0; padding-top: 28px; }
  .dx-toc nav { grid-auto-flow: column; grid-auto-columns: max-content; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .dx-toc a { margin-left: 0; border: 1px solid var(--line); white-space: nowrap; }
  .dx-toc .v-none { display: none; }
  .pr-plans { grid-template-columns: minmax(0, 1fr); }
  .pr-plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .pr-plan:last-child { border-bottom: 0; }
  .pr-plan--main { border-radius: 24px; margin: 8px 0; }
  .pr-sums { min-height: 0; }
}
@media (max-width: 820px) {
  .pg-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 118px; padding-bottom: 48px; }
  .pg-sec { padding-top: 52px; padding-bottom: 52px; }
  .pg-sec-head { grid-template-columns: 1fr; gap: 14px; }
  .ft { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .lg { padding-top: 112px; }
  .lg-card { padding: 24px 18px; }
  .st-board { padding-bottom: 56px; }
  .sp--page { padding: 22px 16px 20px; }
  .sp--page .sp-row { grid-template-columns: 1fr 52px; gap: 6px 10px; font-size: 14px; }
  .sp--page .sp-bars { height: 26px; }
  .sp--page .sp-foot { margin: 8px 0 0; }
  .sp--mini .sp-row { grid-template-columns: 1fr; }
  .hi { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .hi time { grid-column: 1 / -1; }
  .pr-terms div, .dx-facts div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .room--flat { grid-template-columns: 1fr; margin: 0; }
  .doc--flat { margin: 0; transform: rotate(.6deg); }
  .ob-steps { padding-top: 32px; }
  .ob { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .pg-hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .lg-h1 { font-size: clamp(36px, 10vw, 48px); }
  .lg-h1 .l2 { padding-left: .5em; }
  .pg-hero .h1-split .l3 { font-size: .56em; }
  .lg-role > span { flex-direction: column; gap: 2px; }
  .lg-role small { text-align: left; }
  .int-row { flex-direction: column; gap: 4px; }
  .int-row em { text-align: left; }
}
