/* ===== Протоколист — компоненты поверх общей дизайн-системы (styles.css из amobridge.ru) ===== */

/* ----- Демо разбора звонка в первом экране (тёмная панель .dash) ----- */
.call-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 12px; padding: 10px 13px;
}
.call-head__ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(245,199,126,.16); color: var(--p-accent); display: grid; place-items: center; flex-shrink: 0; }
.call-head__ico svg { width: 16px; height: 16px; }
.call-head__t { font-size: 13px; font-weight: 600; color: #fff; }
.call-head__m { font-family: var(--p-mono); font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--p-faint); margin-top: 2px; }
.call-wave { margin-left: auto; display: flex; align-items: center; gap: 2px; height: 22px; }
.call-wave i { display: block; width: 3px; border-radius: 2px; background: var(--p-accent); opacity: .55; }

.tr { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tr__line { font-size: 12.5px; line-height: 1.45; color: var(--p-muted); }
.tr__who { font-family: var(--p-mono); font-size: 10px; letter-spacing: .5px; text-transform: uppercase; margin-right: 6px; }
.tr__who.m { color: #6ea9e0; }
.tr__who.c { color: var(--p-accent); }
.tr__line mark { background: rgba(245,199,126,.18); color: #fff; border-radius: 3px; padding: 0 2px; }

.steps-run { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.steps-run .chat__toolcall { margin-bottom: 0; }

.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.res {
  background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 12px; padding: 10px 12px; min-width: 0;
}
.res__l { font-family: var(--p-mono); font-size: 9.5px; letter-spacing: .7px; text-transform: uppercase; color: var(--p-faint); font-weight: 600; margin-bottom: 5px; }
.res__v { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.35; }
.res__v .old { color: var(--p-faint); font-weight: 500; }
.res__v .arrow { color: var(--p-faint); margin: 0 4px; }
.res__v .new { color: var(--p-active); }
.res__q { font-size: 11px; color: var(--p-muted); margin-top: 4px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res--wide { grid-column: span 2; }
.score { display: flex; align-items: baseline; gap: 6px; }
.score b { font-family: var(--p-display); font-size: 22px; color: #fff; }
.score span { font-size: 11px; color: var(--p-faint); }
.score-bar { height: 5px; border-radius: 99px; background: var(--p-surface-hi); margin-top: 6px; overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,var(--p-active),var(--p-accent)); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-s { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--p-surface-hi); color: #cdd9ef; border: 1px solid var(--p-border); }
.chip-s.warn { color: var(--p-accent); border-color: rgba(245,199,126,.3); }
.chip-s.bad { color: #e9a0a0; border-color: rgba(196,107,107,.4); }
.chip-s.ok { color: var(--p-active); border-color: rgba(123,190,146,.35); }

/* плавающая карточка «примечание в amoCRM» */
.note-float {
  position: absolute; right: -30px; bottom: -54px; width: 280px; z-index: 5;
  background: var(--white); border-radius: 16px; padding: 14px 15px; color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(2,6,23,.45), inset 0 0 0 1px rgba(15,23,44,.06);
}
.note-float__head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.note-float__ava { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg,var(--accent),#3b74e6); color: #fff; display: grid; place-items: center; }
.note-float__ava svg { width: 15px; height: 15px; }
.note-float__name { font-size: 12.5px; font-weight: 700; }
.note-float__meta { font-size: 11px; color: var(--muted-2); }
.note-float__body { font-size: 12px; line-height: 1.5; color: #2b3852; background: #f6f8fc; border-radius: 10px; padding: 9px 11px; }
.note-float__body b { color: var(--ink); }
.note-float__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.note-float__tags span { font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-10); border-radius: 6px; padding: 2px 7px; }

/* ----- Цепочка обработки ----- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: chain; }
.chain__node {
  background: var(--white); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow-card);
  position: relative; display: flex; flex-direction: column; gap: 8px;
}
.chain__num { font-family: var(--p-mono); font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .5px; }
.chain__node h3 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.chain__node p { font-size: 14px; line-height: 1.45; color: var(--muted); }
.chain__node.is-key { background: var(--dark); }
.chain__node.is-key h3 { color: #fff; }
.chain__node.is-key p { color: #9fb0d4; }
.chain__node.is-key .chain__num { color: var(--orange); }
.chain__node::after {
  content: ''; position: absolute; right: -10px; top: 30px; width: 8px; height: 8px; z-index: 2;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); opacity: .5;
}
.chain__node:nth-child(5n)::after, .chain__node:last-child::after { display: none; }
.chain-out { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chain-out__i {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); border-radius: 12px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-card);
}
.chain-out__i svg { width: 17px; height: 17px; color: var(--accent); }

/* ----- Карточки возможностей: мини-визуалы ----- */
.ftable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ftable th { text-align: left; font-family: var(--p-mono); font-size: 10px; letter-spacing: .7px; text-transform: uppercase; color: #7f8ca3; font-weight: 600; padding: 0 10px 9px 0; }
.ftable td { padding: 9px 10px 9px 0; border-top: 1px solid rgba(255,255,255,.07); color: #cdd9ef; vertical-align: top; }
.ftable td.f { color: #fff; font-weight: 600; white-space: nowrap; }
.ftable .old { color: #6f7c96; }
.ftable .new { color: var(--p-active); font-weight: 700; white-space: nowrap; }
.ftable .keep { color: #7f8ca3; }
.ftable .q { color: #93a3c6; font-style: italic; }

.types { display: flex; flex-direction: column; gap: 8px; }
.types__row { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 12px; padding: 10px 12px; }
.types__t { font-size: 13.5px; font-weight: 700; color: var(--ink); width: 104px; flex-shrink: 0; }
.types__c { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 0; }
.types__s { font-size: 13px; font-weight: 800; color: var(--accent); }

.merge { display: flex; flex-direction: column; gap: 8px; }
.merge__calls { display: flex; align-items: center; gap: 6px; }
.merge__call { height: 30px; border-radius: 8px; background: rgba(110,169,224,.18); border: 1px solid rgba(110,169,224,.45); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #2b5d99; }
.merge__gap { font-family: var(--p-mono); font-size: 10px; color: var(--muted-2); }
.merge__one { height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.rules { display: flex; flex-direction: column; gap: 8px; }
.rule { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #cdd9ef; line-height: 1.45; }
.rule b { color: var(--orange); font-weight: 700; }
.rule i { font-style: normal; color: #fff; font-weight: 600; }

.mini-list { display: flex; flex-direction: column; gap: 7px; }
.mini-list__i { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--white); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--ink); }
.mini-list__i span:last-child { font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-wait { color: #b7791f; }
.st-ok { color: #1f8a5b; }
.st-free { color: var(--muted-2); }

/* ----- Агент: черновик изменений ----- */
.draft { background: rgba(255,255,255,.05); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 13px; color: #cdd9ef; }
.draft div { padding: 3px 0; }
.draft b { color: #7bbe92; font-weight: 700; margin-right: 6px; }
.draft-btns { display: flex; gap: 8px; margin-top: 12px; }
.draft-btns span { font-size: 12.5px; font-weight: 700; border-radius: 9px; padding: 7px 12px; }
.draft-btns .y { background: #1a53c6; color: #fff; }
.draft-btns .n { background: rgba(255,255,255,.08); color: #cdd9ef; }
.agent-where { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ----- Сравнение ----- */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.cmp th, .cmp td { padding: 16px 22px; text-align: left; font-size: 15px; line-height: 1.4; border-top: 1px solid var(--line); vertical-align: top; }
.cmp thead th { border-top: none; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--bg); }
.cmp thead th.us { color: var(--accent); background: var(--accent-10); }
.cmp td:first-child { font-weight: 600; color: var(--ink); width: 30%; }
.cmp td { color: var(--muted); }
.cmp td.us { color: var(--ink); background: rgba(26,83,198,.04); font-weight: 500; }
.cmp .yes, .cmp .no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; vertical-align: -4px; }
.cmp .yes { background: rgba(31,138,91,.12); color: #1f8a5b; }
.cmp .no { background: rgba(196,107,107,.12); color: var(--idle); }
.cmp .yes svg, .cmp .no svg { width: 11px; height: 11px; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 24px; }
.cmp-note { margin-top: 16px; font-size: 13.5px; color: var(--muted-2); line-height: 1.5; max-width: 90ch; }

/* ----- Калькулятор ----- */
.calc {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,0.85fr); gap: 0; align-items: stretch;
  background: var(--white); border-radius: 24px; border: 1.5px solid var(--line); margin-bottom: 20px;
}
.calc__in { padding: 30px 32px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.calc__h { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.calc__h span { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-10); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.calc__row { margin-bottom: 14px; }
.calc__row label { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.calc__row label output { color: var(--accent); font-weight: 800; }
.calc__row input[type=range] { width: 100%; accent-color: var(--accent); height: 22px; }
.calc__share { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 10px; }

.calc-tabs { display: inline-flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.calc-tabs button { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: none; border-radius: 9px; padding: 9px 14px; cursor: pointer; }
.calc-tabs button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,44,.12); }

.calc-num { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.calc-num input {
  width: 150px; font-family: inherit; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px;
}
.calc-num input:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px var(--accent-10); }
.calc-num span { font-size: 15px; color: var(--muted); }

.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chips button {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 13px; cursor: pointer; transition: .15s;
}
.calc-chips button:hover { border-color: var(--accent); }
.calc-chips button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.calc-opts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.calc-opts--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.calc-opt {
  position: relative; display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; transition: .15s; background: var(--white);
}
.calc-opt:hover { border-color: rgba(26,83,198,.45); }
.calc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.calc-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-10); box-shadow: 0 0 0 3px rgba(26,83,198,.08); }
.calc-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-opt__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.calc-opt__top b { font-size: 15px; color: var(--ink); }
.calc-opt__top em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.calc-opt__d { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.calc__out { background: var(--dark); color: #e9eefc; border-radius: 0 22px 22px 0; }
.calc__out-in { position: sticky; top: 100px; padding: 30px 30px; display: flex; flex-direction: column; gap: 6px; }
.calc__out .l { font-size: 13px; color: #9fb0d4; }
.calc__out .v { font-size: 46px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.05; }
.calc__out .s { font-size: 15px; color: #9fb0d4; }
.calc__out .s b { color: #fff; }
.calc-break { margin: 16px 0 6px; border-top: 1px solid rgba(255,255,255,.1); }
.calc-break div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
.calc-break span { color: #9fb0d4; }
.calc-break b { color: #fff; font-weight: 700; white-space: nowrap; }
.calc-note { font-size: 13.5px; color: #cdd9ef; line-height: 1.45; padding: 4px 0; }
.calc-note b { color: var(--orange); }
.calc__out .btn { width: 100%; margin-top: 10px; }
.calc-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.calc-ghost:hover { background: rgba(255,255,255,.16); }
.calc-foot { font-size: 12px; color: #7f8ca3; margin-top: 8px; line-height: 1.4; }

/* ----- Карточки денег (тариф без абонплаты) ----- */
.money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.money__i { background: var(--white); border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.money__i b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 6px; }
.money__i span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ----- Команда поддержки ----- */
.team { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.team__p { display: flex; align-items: center; gap: 11px; background: var(--white); border-radius: 14px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow-card); }
.team__p img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.team__p b { display: block; font-size: 14.5px; color: var(--ink); }
.team__p span { font-size: 12.5px; color: var(--muted); }

/* ----- Каналы связи ----- */
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-row .btn svg { width: 18px; height: 18px; }

/* ----- Пометки для владельца (видны только с ?draft) ----- */
.todo { display: none; }
html.show-todo .todo {
  display: inline-block; margin: 6px 0; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 700;
  background: #fff3cd; color: #8a5a00; border: 1px dashed #e0b84d;
}

/* ----- Адаптив ----- */
@media (max-width: 1200px) {
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain__node::after { display: none; }
}
@media (max-width: 1080px) {
  .note-float { position: relative; right: auto; bottom: auto; width: auto; margin-top: 14px; }
  .calc { grid-template-columns: minmax(0,1fr); }
  .calc__out { border-radius: 0 0 22px 22px; }
  .calc-opts--3 { grid-template-columns: 1fr; }
  .money { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .chain { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .res--wide { grid-column: span 1; }
  .money { grid-template-columns: 1fr; }
  .cmp th, .cmp td { padding: 12px 14px; font-size: 14px; }
  .cmp { min-width: 620px; }
  .calc__in, .calc__out-in { padding: 24px 20px; }
  .calc__out .v { font-size: 38px; }
  .calc-opts { grid-template-columns: 1fr; }
  .calc-num input { width: 130px; font-size: 22px; }
  .faq-q { font-size: 17px; padding: 20px 20px; }
  .faq-a__inner { padding: 0 20px 20px; }
  .types__t { width: 86px; }
  .call-wave { display: none; }
  .note-float { display: none; }
  .ftable { font-size: 12.5px; }
  .ftable td.f { white-space: normal; }
}

/* ----- Сравнение: три ключевых отличия и сценарии ----- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.diff {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
}
.diff__n { font-family: var(--p-mono); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .5px; }
.diff h3 { font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.diff__lbl { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.diff__was { font-size: 14.5px; line-height: 1.5; color: var(--muted); background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.diff__was .diff__lbl { color: var(--muted-2); }
.diff__now { font-size: 14.5px; line-height: 1.5; color: #2b3852; background: var(--accent-10); border-radius: 14px; padding: 14px 16px; }
.diff__now .diff__lbl { color: var(--accent); }
.diff__ex { margin-top: auto; font-size: 13.5px; line-height: 1.5; color: #cdd9ef; background: var(--dark); border-radius: 14px; padding: 13px 16px; }
.diff__ex b { color: var(--orange); font-weight: 700; }

.scen { margin-top: 12px; background: var(--dark); border-radius: var(--radius); padding: 30px; color: #e9eefc; }
.scen__head { margin-bottom: 18px; }
.scen__head .tag { font-size: 12.5px; font-weight: 700; color: var(--orange); margin-bottom: 10px; }
.scen__head h3 { font-size: 23px; font-weight: 700; color: #fff; }
.scen-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scen__t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.scen__t th { text-align: left; font-family: var(--p-mono); font-size: 10.5px; letter-spacing: .7px; text-transform: uppercase; color: #7f8ca3; font-weight: 600; padding: 0 14px 10px 0; }
.scen__t td { padding: 13px 14px 13px 0; border-top: 1px solid rgba(255,255,255,.08); color: #cdd9ef; vertical-align: top; line-height: 1.4; }
.scen__t td b { display: block; color: #fff; font-weight: 700; }
.scen__t td span { font-size: 12.5px; color: #7f8ca3; }
.scen__t td:last-child { color: #fff; }

.cmp-sub { font-size: 21px; font-weight: 700; color: var(--ink); margin: 40px 0 16px; }

@media (max-width: 1080px) {
  .diff-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .diff, .scen { padding: 22px 20px; }
}

/* шапка при прокрутке на телефоне: у базовой отступ уходит в минус, кнопка вылезает за край */
@media (max-width: 720px) {
  .nav-shell.scrolled { padding: 0 8px; }
  .nav.scrolled { padding: 0 12px; }
  .nav { gap: 10px; }
  .nav__right .btn { padding: 0 16px; height: 44px; font-size: 14.5px; }
  .brand__name { font-size: 19px; }
}

/* ===== Правки по отзывам 16.11 ===== */
/* контраст мелких подписей не ниже 4,5:1 */
:root { --muted-2: #677388; }
.st-wait { color: #8a5a12; }
.st-free { color: #677388; }
.client-strip { color: #677388; }

/* цепочка под тремя шагами */
.steps + .chain { margin-top: 28px; grid-template-columns: repeat(5, 1fr); }

/* две карточки цены по центру */
.plans--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }

/* примечание внутри демо */
.res-note { font-size: 12.5px; line-height: 1.5; color: #cdd9ef; font-weight: 500; }
.res-note b { color: #fff; }
.res-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.res-tags span { font-size: 10.5px; font-weight: 600; color: #9cc0ff; background: rgba(26,83,198,.25); border-radius: 6px; padding: 2px 7px; }

/* мобильная кнопка внизу экрана */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120;
    background: var(--white); border-radius: 16px; padding: 8px; box-shadow: 0 12px 34px -8px rgba(2,6,23,.35);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .mbar.show { transform: translateY(0); }
  .mbar .btn { height: 46px; }
  .mbar .btn--primary { flex: 1; }
  .mbar__price { background: var(--bg); color: var(--ink); padding: 0 18px; }
  .foot { padding-bottom: 96px; }
}
@media (max-width: 1200px) { .steps + .chain { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .steps + .chain { grid-template-columns: 1fr; } .plans--2 { grid-template-columns: 1fr; } }

/* калькулятор: где обрабатываются данные */
.calc-opts--1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.calc-opts--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.geo { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-right: 4px; background: rgba(196,107,107,.12); color: #9c3f3f; }
.geo--ru { background: rgba(31,138,91,.12); color: #1d7a52; }
.calc-opt--soon { cursor: default; opacity: .75; border-style: dashed; }
.calc-opt--soon:hover { border-color: var(--line); }
.calc-opt--soon em { color: var(--muted) !important; }
.calc__share a { color: var(--accent); }
@media (max-width: 720px) { .calc-opts--2x2 { grid-template-columns: 1fr; } }

/* очень узкие телефоны (320): логотип и кнопка в шапке помещаются */
@media (max-width: 360px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 17px; }
  .nav__right .btn { padding: 0 12px; font-size: 14px; }
}

/* ===== Демо в первом экране: карточка разговора в дизайн-коде кабинета (protokolist/docs/DESIGN.md) ===== */
.pk-stage {
  --pk-bg: #f4f4f4; --pk-surface: #fff; --pk-muted: #f5f5f5; --pk-sunken: #efefef;
  --pk-border: #e6e6e6; --pk-border-soft: #eeeeee;
  --pk-text: #333; --pk-strong: #2c2c2c; --pk-text-muted: #626262; --pk-faint: #767676;
  --pk-accent: #0072ec; --pk-accent-strong: #0058b8; --pk-accent-soft: #e6f2fe;
  --pk-side: #21252d; --pk-side-active: #2f3440; --pk-side-text: #bbc3d6; --pk-side-faint: #8a93a6;
  --pk-success: #197c0f; --pk-success-soft: #e7fad1;
  --pk-danger: #b91e1e; --pk-danger-soft: #fde7e7;
  --pk-warning: #7a4900; --pk-warning-soft: #fff3cd;
  --pk-info: #0058b8; --pk-info-soft: #d8eefe;
  --pk-shadow: 0 1px 2px rgba(33,33,33,.14), 0 0 1px rgba(0,0,0,.14);
  position: relative; min-width: 0;
}
.pk-app {
  font-family: 'PT Sans', 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .14px;
  color: var(--pk-text); background: var(--pk-bg); border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 90px -34px rgba(2,6,23,.45), 0 0 0 1px rgba(15,23,44,.08);
}
.pk-app b { font-weight: 700; }
.pk-app__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #e9e9e9; border-bottom: 1px solid var(--pk-border); }
.pk-app__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d0d0d0; }
.pk-app__bar span { margin-left: 10px; font-size: 11.5px; color: var(--pk-faint); background: #fff; border-radius: 3px; padding: 1px 10px; }
.pk-app__body { display: flex; min-height: 540px; }

.pk-side { width: 168px; flex-shrink: 0; background: var(--pk-side); padding: 12px 0; display: flex; flex-direction: column; gap: 1px; }
.pk-side__brand { display: flex; align-items: center; gap: 8px; padding: 2px 16px 14px; color: #fff; font-size: 16px; font-weight: 700; }
.pk-side__brand svg { width: 18px; height: 18px; color: #fff; }
.pk-side__cap { padding: 4px 16px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--pk-side-faint); }
.pk-side__item { display: flex; align-items: center; gap: 9px; padding: 7px 16px; font-size: 13px; font-weight: 700; color: var(--pk-side-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-side__item svg { width: 15px; height: 15px; flex-shrink: 0; }
.pk-side__item.is-active { background: var(--pk-side-active); color: #fff; box-shadow: inset 3px 0 0 var(--pk-accent); }

.pk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-head { height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; background: var(--pk-surface); border-bottom: 1px solid var(--pk-border); }
.pk-head__title { font-size: 18px; font-weight: 700; color: var(--pk-strong); white-space: nowrap; }
.pk-seg { display: inline-flex; border: 1px solid #d3d3d3; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.pk-seg button { font: inherit; font-size: 12.5px; color: var(--pk-text); background: #fff; border: 0; padding: 4px 10px; cursor: pointer; transition: background .1s linear; }
.pk-seg button + button { border-left: 1px solid #d3d3d3; }
.pk-seg button:hover { background: var(--pk-muted); }
.pk-seg button.is-active { background: var(--pk-accent); color: #fff; }

.pk-content { flex: 1; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.pk-card { background: var(--pk-surface); border-radius: 3px; box-shadow: var(--pk-shadow); padding: 12px 14px; }
.pk-card__title { font-size: 14px; font-weight: 700; color: var(--pk-strong); margin-bottom: 8px; }
.pk-cap { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--pk-strong); }
.pk-num { font-variant-numeric: tabular-nums; }
.pk-link { color: var(--pk-accent); cursor: default; }

.pk-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pk-sum__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pk-sum__who { font-size: 14px; }
.pk-sum__where { font-size: 12.5px; color: var(--pk-text-muted); }
.pk-sum__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.pk-score { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.pk-score__v { font-size: 30px; line-height: 34px; font-variant-numeric: tabular-nums; color: var(--pk-strong); }
.pk-score--low { color: var(--pk-danger); }
.pk-score__of { font-size: 12px; color: var(--pk-faint); }

.pk-badge { display: inline-block; padding: 4px 8px; border-radius: 16px; font-size: 12px; line-height: 12px; white-space: nowrap; }
.pk-badge--neutral { background: var(--pk-sunken); color: var(--pk-text-muted); }
.pk-badge--success { background: var(--pk-success-soft); color: var(--pk-success); }
.pk-badge--danger { background: var(--pk-danger-soft); color: var(--pk-danger); }
.pk-badge--warning { background: var(--pk-warning-soft); color: var(--pk-warning); }
.pk-badge--info { background: var(--pk-info-soft); color: var(--pk-info); }

.pk-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-step { font-size: 12px; line-height: 12px; padding: 5px 9px 5px 22px; border-radius: 16px; background: var(--pk-sunken); color: var(--pk-faint); position: relative; transition: background .3s, color .3s; }
.pk-step::before { content: ''; position: absolute; left: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.pk-step.is-done { background: var(--pk-success-soft); color: var(--pk-success); }
.pk-step.is-done::before { background: currentColor; }

.pk-chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pk-chat__row { display: flex; justify-content: flex-start; }
.pk-chat__row--a { justify-content: flex-end; }
.pk-chat__row--cont { margin-top: -3px; }
.pk-chat__bubble { max-width: 82%; padding: 6px 11px 7px; border-radius: 3px; background: var(--pk-muted); display: flex; flex-direction: column; gap: 1px; }
.pk-chat__row--a .pk-chat__bubble { background: var(--pk-accent-soft); }
.pk-chat__meta { display: flex; gap: 8px; font-size: 11.5px; line-height: 15px; }
.pk-chat__row--a .pk-chat__meta { justify-content: flex-end; }
.pk-chat__speaker { font-weight: 700; color: var(--pk-success); }
.pk-chat__row--a .pk-chat__speaker { color: var(--pk-accent); }
.pk-chat__time { color: var(--pk-accent); font-variant-numeric: tabular-nums; }
.pk-chat__text { font-size: 13px; line-height: 18px; }
.pk-chat__text mark { background: #ffe58a; color: inherit; border-radius: 2px; padding: 0 1px; }

.pk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pk-table th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--pk-strong); padding: 0 8px 6px 0; border-bottom: 1px solid var(--pk-border); }
.pk-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--pk-border-soft); vertical-align: top; }
.pk-table td:first-child { white-space: nowrap; color: var(--pk-strong); }
.pk-table td b { color: var(--pk-success); }
.pk-empty { color: var(--pk-faint); }
.pk-quote { font-size: 12px; color: var(--pk-text-muted); font-style: italic; }
.pk-rules { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; min-height: 22px; }
.pk-rules .pk-cap { margin-right: 2px; }
.pk-caption { margin-top: 10px; font-size: 12.5px; color: var(--muted-2); text-align: center; }

@media (max-width: 720px) {
  .pk-side { display: none; }
  .pk-head { height: auto; flex-wrap: wrap; padding: 10px 12px; }
  .pk-content { padding: 10px; }
  .pk-table th:nth-child(3), .pk-table td:nth-child(3) { display: none; }
  .pk-chat__bubble { max-width: 90%; }
  .pk-app__body { min-height: 0; }
}

/* меню кабинета в демо — узкая полоса значков: внимание на разговор, а не на меню */
.pk-side { width: 48px; padding: 10px 0; gap: 2px; }
.pk-side__item span, .pk-side__brand span, .pk-side__cap { display: none; }
.pk-side__brand { justify-content: center; padding: 2px 0 12px; }
.pk-side__item { justify-content: center; padding: 8px 0; }
.pk-side__item svg { width: 17px; height: 17px; }

/* восемь пунктов меню: на средних экранах плотнее, на узких — прячем (как и раньше ниже 1080) */
@media (max-width: 1360px) { .nav__links { gap: 0; } .nav__links a { padding: 9px 9px; font-size: 14px; } }
@media (max-width: 1240px) { .nav__links { display: none; } }
