/* Помощник UMAI на /tariffs.php: виджет слева внизу (макет 12) и четыре окна
   из макетов маркетолога: калькулятор срока (06), подбор тарифа из 10 вопросов
   (07–09), расчёт для партнёра с PDF (10), демо по номеру WhatsApp (11).
   Разметка — include/_tariff_helper_panel.php, логика — js/tariff-helper.js. */
.tph-w,.tph-m{--tph-blue:#0027F3;--tph-text:#151D48;--tph-soft:#5B6378;--tph-line:#E3E6F5;--tph-bg:#F4F6FB;--tph-yel:#FFC700;--tph-green:#16893E;font-family:inherit;color:var(--tph-text);-webkit-font-smoothing:antialiased}
.tph-w *,.tph-m *{box-sizing:border-box}
.tph-w button,.tph-m button{font-family:inherit}

/* ── Виджет ─────────────────────────────────────────── */
.tph-w{position:fixed;left:20px;bottom:20px;z-index:1050;width:344px;max-width:calc(100vw - 32px);border-radius:22px;overflow:hidden;background:#EEF1F8;box-shadow:0 22px 60px rgba(5,0,78,.22),0 0 0 1px rgba(0,39,243,.08);opacity:0;visibility:hidden;transform:translateY(16px);transition:opacity .22s ease,transform .22s ease,visibility 0s linear .22s}
.tph-w.is-open{opacity:1;visibility:visible;transform:none;transition:opacity .22s ease,transform .22s ease,visibility 0s}
.tph-w__head{position:relative;overflow:hidden;padding:16px 16px 26px;background:linear-gradient(160deg,#0a33ff 0%,#0027F3 45%,#001ab0 100%);color:#fff}
.tph-w__head::after{content:"";position:absolute;right:-70px;top:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.06)}
.tph-w__top{position:relative;z-index:1;display:flex;align-items:center;gap:10px;padding-right:40px}
.tph-w__logo{flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center}
.tph-w__logo svg{display:block;color:var(--tph-blue)}
.tph-w__name{margin:0;font-size:15px;font-weight:700;line-height:1.2;color:#fff}
.tph-w__status{display:flex;align-items:center;gap:6px;margin:2px 0 0;font-size:12px;color:rgba(255,255,255,.82)}
.tph-w__status::before{content:"";width:8px;height:8px;border-radius:50%;background:#2BD46B;box-shadow:0 0 0 2px rgba(43,212,107,.25)}
.tph-w__hello{position:relative;z-index:1;margin:16px 0 2px;font-size:15px;color:rgba(255,255,255,.88)}
.tph-w__ask{position:relative;z-index:1;margin:0;font-size:22px;font-weight:800;line-height:1.2;color:#fff}
.tph-w__x{position:absolute;z-index:2;top:14px;right:14px;width:32px;height:32px;border:0;border-radius:10px;background:rgba(255,255,255,.16);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tph-w__x:hover{background:rgba(255,255,255,.26)}
.tph-w__body{position:relative;margin-top:-12px;border-radius:18px 18px 0 0;background:#EEF1F8;padding:12px 12px 8px}
.tph-w__bubble{margin:0 0 8px;padding:12px 14px;border-radius:14px;background:#fff;font-size:13.5px;line-height:1.45;color:var(--tph-text)}
.tph-w__opts{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.tph-w__opt{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border:0;border-radius:12px;background:#fff;color:var(--tph-text);font-size:14px;font-weight:600;line-height:1.25;text-align:left;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.tph-w__opt:hover{transform:translateX(2px);box-shadow:0 0 0 1.5px rgba(0,39,243,.35)}
.tph-w__ico{flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:#EEF1FE;color:var(--tph-blue);display:flex;align-items:center;justify-content:center}
.tph-w__opt span:nth-child(2){flex:1 1 auto}
.tph-w__opt .tph-chev{color:#A3A9C2}
.tph-w__time{margin:6px 0 0 4px;font-size:11px;color:#8A90A8}
.tph-w__foot{background:#fff;padding:10px 12px 12px}
.tph-w__ask-form{display:flex;align-items:center;gap:8px;height:46px;padding:0 6px 0 14px;border:1px solid var(--tph-line);border-radius:14px;background:#fff}
.tph-w__ask-form:focus-within{border-color:var(--tph-blue)}
.tph-w__ask-form input{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px;color:var(--tph-text)}
.tph-w__ask-form input::placeholder{color:#8A90A8}
.tph-w__send{flex:0 0 32px;width:32px;height:32px;border:0;border-radius:50%;background:var(--tph-blue);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tph-w__send:hover{background:#001fc4}
.tph-w :focus-visible,.tph-m :focus-visible{outline:2px solid var(--tph-yel);outline-offset:2px}

/* ── Окно ───────────────────────────────────────────── */
html.tph-lock,html.tph-lock body{overflow:hidden}
.tph-m{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(13,19,56,.55);opacity:0;transition:opacity .2s ease}
.tph-m[hidden]{display:none}
/* hidden сильнее любых display у вложенных блоков (подсказка, бонус, альтернатива) */
.tph-m [hidden],.tph-w [hidden]{display:none!important}
.tph-m.is-open{opacity:1}
.tph-m__dlg{position:relative;display:grid;grid-template-columns:330px 1fr;width:min(900px,100%);min-height:580px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border-radius:28px;background:#fff;overflow:hidden;box-shadow:0 40px 100px rgba(5,0,78,.35);transform:translateY(12px) scale(.98);transition:transform .22s ease}
.tph-m.is-open .tph-m__dlg{transform:none}
.tph-scr{display:contents}
.tph-scr[hidden]{display:none}
.tph-l{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:28px 24px 24px;background:var(--tph-blue);color:#fff}
.tph-l::before,.tph-l::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.06);pointer-events:none}
.tph-l::before{width:300px;height:300px;right:-150px;top:-120px}
.tph-l::after{width:420px;height:420px;left:-170px;bottom:-250px}
.tph-l>*{position:relative;z-index:1}
.tph-back{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:4px 0;border:0;background:none;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.tph-back:hover{opacity:.85}
.tph-cap{margin:0;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.88)}
.tph-r{position:relative;display:flex;flex-direction:column;min-width:0;overflow-y:auto;padding:30px 36px 26px 32px}
.tph-x{position:absolute;z-index:3;top:14px;right:14px;width:44px;height:44px;border:0;border-radius:50%;background:var(--tph-bg);color:var(--tph-text);cursor:pointer;display:flex;align-items:center;justify-content:center}
.tph-x:hover{background:#E8EBF5}
.tph-h{margin:0 0 8px;padding-right:48px;font-size:28px;font-weight:800;line-height:1.18;letter-spacing:-.01em;color:var(--tph-text)}
.tph-sub{margin:0 0 16px;font-size:15px;line-height:1.5;color:var(--tph-soft)}
.tph-grow{flex:1 1 auto}
.tph-pane{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.tph-pane[hidden]{display:none}
.tph-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:10px 22px;border:0;border-radius:14px;background:var(--tph-yel);color:var(--tph-text);font-size:16px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background .15s ease,transform .15s ease}
.tph-btn:hover{background:#FFB800;color:var(--tph-text);text-decoration:none}
.tph-btn:active{transform:translateY(1px)}
.tph-btn[disabled]{opacity:.65;cursor:default}
.tph-btn--ghost{background:#fff;border:1.5px solid #D9DDEE;font-weight:600}
.tph-btn--ghost:hover{background:var(--tph-bg)}
.tph-btn--wide{width:100%}
.tph-row-btns{display:flex;gap:12px}
.tph-row-btns .tph-btn{flex:1 1 0}
.tph-row-btns .tph-btn--ghost{flex:0 0 auto}
.tph-refund{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px 0 0;font-size:13px;font-weight:600;color:var(--tph-green)}
.tph-note{margin:8px 0 0;font-size:12.5px;color:var(--tph-soft);text-align:center}
.tph-pill{display:inline-flex;align-items:center;padding:2px 7px;border-radius:6px;font-size:11px;font-weight:700;line-height:1.4;white-space:nowrap}
.tph-pill--red{background:#F04438;color:#fff}
.tph-pill--yel{background:var(--tph-yel);color:var(--tph-text)}
.tph-green{color:var(--tph-green)}
.tph-err{margin:8px 0 0;font-size:13px;color:#D92D20}
.tph-err[hidden]{display:none}

/* Сегменты и строки выбора */
.tph-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 12px}
.tph-seg button{min-height:40px;padding:6px 8px;border:1.5px solid var(--tph-line);border-radius:12px;background:#fff;color:var(--tph-text);font-size:14px;font-weight:600;line-height:1.2;cursor:pointer}
.tph-seg button:hover{border-color:#B9C2EE}
.tph-seg button[aria-pressed="true"]{border:2px solid var(--tph-blue);background:#F1F4FF;color:var(--tph-blue)}
.tph-opt{display:flex;align-items:center;gap:14px;width:100%;margin:0 0 8px;padding:12px 16px;border:1.5px solid var(--tph-line);border-radius:14px;background:#fff;color:var(--tph-text);text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.tph-opt:hover{border-color:#B9C2EE}
.tph-opt.is-on{border:2px solid var(--tph-blue);background:#F7F8FF;padding:11.5px 15.5px}
.tph-radio{flex:0 0 20px;width:20px;height:20px;border-radius:50%;border:1.5px solid #C5CAE0;background:#fff;position:relative}
.tph-opt.is-on .tph-radio{border:6px solid var(--tph-blue)}
.tph-opt__main{flex:1 1 auto;min-width:0}
.tph-opt__t{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:16px;font-weight:700}
.tph-opt__s{display:block;margin-top:3px;font-size:12.5px;color:var(--tph-soft)}
.tph-opt__s.tph-green{color:var(--tph-green);font-weight:600}
.tph-opt__p{flex:0 0 auto;text-align:right}
.tph-opt__p b{display:block;font-size:20px;font-weight:800;color:var(--tph-blue);white-space:nowrap}
.tph-opt__p small{font-size:11px;color:var(--tph-soft)}
.tph-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:4px 0 18px;font-size:14px;color:var(--tph-soft)}
.tph-total b{color:var(--tph-green);font-weight:700}

/* Калькулятор: левая колонка */
.tph-badge{position:relative;width:180px;height:180px;margin:28px auto 0;transform:rotate(-8deg)}
.tph-badge svg{position:absolute;inset:0;width:100%;height:100%}
.tph-badge__txt{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--tph-text);font-size:13px;font-weight:600;line-height:1.2}
.tph-badge__txt b{font-size:24px;font-weight:800;margin:3px 0}
.tph-card{margin-top:auto;padding:16px 18px;border-radius:16px;background:#fff;color:var(--tph-text);box-shadow:0 16px 40px rgba(0,10,80,.25);transform:rotate(-2deg)}
.tph-card__t{margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--tph-green)}
.tph-card__r{display:flex;justify-content:space-between;gap:8px;padding:6px 0;font-size:13px;border-bottom:1px solid #EEF0F7}
.tph-card__r:last-of-type{border-bottom:0}
.tph-card__r s{color:#8A90A8}
.tph-card__r b{font-weight:800}
.tph-card__gift{display:flex;gap:8px;margin:10px 0 0;font-size:12.5px;font-weight:600;line-height:1.4;color:var(--tph-green)}
.tph-card__gift.is-soft{color:var(--tph-soft)}

/* Подбор: профиль, вопросы, анализ, результат */
.tph-prof{margin:14px 0 0;padding:6px 16px;border-radius:18px;background:#fff;color:var(--tph-text)}
.tph-prof__r{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;padding:5px 0;border-bottom:1px solid #EEF0F7;font-size:13px}
.tph-prof__r:last-child{border-bottom:0}
.tph-prof__k{color:var(--tph-soft);white-space:nowrap}
.tph-prof__v{font-size:12px;font-weight:700;text-align:right;line-height:1.25}
.tph-prof__bar{display:block;width:62px;height:8px;border-radius:4px;background:#EEF0F7}
.tph-prof__r.is-cur .tph-prof__bar{background:#C9D2FF}
.tph-hint{display:flex;align-items:flex-start;gap:10px;margin-top:auto;padding-top:18px;font-size:13.5px;font-weight:600;line-height:1.4;color:#fff}
.tph-hint svg{flex:0 0 18px;margin-top:2px}
.tph-qhead{display:flex;align-items:center;gap:12px;padding-right:56px;margin:2px 0 10px;font-size:13px;font-weight:600;color:var(--tph-soft)}
.tph-qback{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:var(--tph-blue);font-size:13px;font-weight:600;cursor:pointer}
.tph-progress{height:6px;margin:0 56px 22px 0;border-radius:3px;background:#EEF0F7;overflow:hidden}
.tph-progress i{display:block;height:100%;border-radius:3px;background:var(--tph-blue);transition:width .25s ease}
.tph-q .tph-h{padding-right:0;font-size:26px}
.tph-q .tph-opt{min-height:50px;padding:12px 16px;font-size:16px;font-weight:600}
.tph-q .tph-opt.is-on{padding:11.5px 15.5px}
.tph-q .tph-opt .tph-chev{margin-left:auto;color:#A3A9C2}
.tph-foot{margin:14px 0 0;font-size:12.5px;color:#8A90A8}
.tph-anl{display:flex;flex-direction:column;justify-content:center;flex:1 1 auto;padding:20px 0 40px 20px}
.tph-anl__ico{width:56px;height:56px;margin:0 0 20px;border-radius:14px;background:#EEF1FE;color:var(--tph-blue);display:flex;align-items:center;justify-content:center}
.tph-steps{margin:8px 0 0;padding:0;list-style:none}
.tph-steps li{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:16px;font-weight:600;color:#A3A9C2}
.tph-steps i{flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#EEF0F7;display:flex;align-items:center;justify-content:center}
.tph-steps li.is-act{color:var(--tph-blue)}
.tph-steps li.is-act i{background:#fff;border:2px solid var(--tph-blue)}
.tph-steps li.is-act i::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--tph-blue)}
.tph-steps li.is-done{color:var(--tph-text)}
.tph-steps li.is-done i{background:#22B35E;color:#fff}
.tph-ring{position:relative;width:190px;height:190px;margin:24px auto 0;border-radius:50%;background:conic-gradient(var(--tph-yel) 0 var(--p,0%),rgba(255,255,255,.22) 0)}
.tph-ring__in{position:absolute;inset:26px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--tph-text)}
.tph-ring__in b{font-size:42px;font-weight:800;line-height:1;color:var(--tph-blue)}
.tph-ring__in small{margin-top:6px;font-size:12px;font-weight:600;line-height:1.3}
.tph-for{margin-top:auto;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.12)}
.tph-for small{display:block;font-size:12.5px;color:rgba(255,255,255,.8)}
.tph-for b{display:block;margin-top:4px;font-size:14.5px;line-height:1.35}
.tph-res__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 14px}
.tph-res__price b{font-size:26px;font-weight:800;color:var(--tph-blue)}
.tph-res__price span{font-size:13px;color:var(--tph-soft)}
.tph-res__match{display:none}
.tph-res__tag{align-self:flex-start;margin:0 0 12px;padding:5px 12px;border-radius:8px;font-size:12.5px}
.tph-why{margin:0 0 8px;font-size:14px;font-weight:700}
.tph-checks{margin:0 0 12px;padding:0;list-style:none}
.tph-checks li{display:flex;gap:10px;margin:0 0 7px;font-size:14px;line-height:1.4}
.tph-checks svg{flex:0 0 16px;margin-top:2px;color:#22B35E}
.tph-bonus{margin:0 0 10px;padding:10px 14px;border-radius:12px;background:#E8F7EE;color:var(--tph-green);font-size:13px;font-weight:600;line-height:1.45}
.tph-alt{margin:0 0 14px;padding:10px 14px;border:1.5px dashed #D3D8EA;border-radius:12px;font-size:13px;line-height:1.45;color:var(--tph-soft)}
.tph-alt b{color:var(--tph-text)}
.tph-res__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.tph-res__foot .tph-refund{margin:0;justify-content:flex-start;text-align:left}
.tph-res__foot .tph-link{flex:0 0 auto;white-space:nowrap}
.tph-link{padding:0;border:0;background:none;color:var(--tph-soft);font-size:13px;font-weight:600;cursor:pointer}
.tph-link:hover{color:var(--tph-blue)}

/* Партнёр: превью PDF */
.tph-doc-wrap{position:relative;margin:22px 8px 0}
.tph-doc-wrap::before{content:"";position:absolute;inset:14px -10px -6px 18px;border-radius:16px;background:rgba(255,255,255,.55);transform:rotate(5deg)}
.tph-doc{position:relative;padding:16px 16px 12px;border-radius:16px;background:#fff;color:var(--tph-text);box-shadow:0 18px 44px rgba(0,10,80,.28);transform:rotate(-3deg);font-size:10px;line-height:1.35}
.tph-doc__top{display:flex;justify-content:space-between;align-items:flex-start}
.tph-doc__top img{width:34px;height:auto}
.tph-doc__brand{margin-top:3px;font-size:11px;font-weight:800}
.tph-doc__date{font-size:10px;font-weight:600}
.tph-doc__h{margin:10px 0 0;font-size:15px;font-weight:800}
.tph-doc__for{margin:0 0 8px;color:var(--tph-soft)}
.tph-doc__row{display:flex;justify-content:space-between;gap:6px;margin:0 0 4px;padding:5px 8px;border-radius:6px;background:var(--tph-bg)}
.tph-doc__row.is-hl{background:#E3E9FF;color:var(--tph-blue);font-weight:700}
.tph-doc__head{display:flex;justify-content:space-between;margin:0 0 4px;padding:0 8px;font-weight:700}
.tph-doc__save{display:inline-block;margin:4px 0 8px;padding:3px 8px;border-radius:10px;background:#E8F7EE;color:var(--tph-green);font-weight:700}
.tph-doc__cmp{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.tph-doc__cmp div{padding:5px 4px;border-radius:6px;background:var(--tph-bg);text-align:center}
.tph-doc__cmp div.is-hl{background:#E3E9FF;color:var(--tph-blue)}
.tph-doc__cmp b{display:block;font-size:10.5px}
.tph-doc__foot{display:flex;justify-content:space-between;margin-top:8px;color:var(--tph-soft);font-size:9px}
.tph-tag{position:absolute;padding:8px 14px;border-radius:12px;background:var(--tph-yel);color:var(--tph-text);font-size:13px;font-weight:800;white-space:nowrap;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.tph-doc-wrap .tph-tag{right:-6px;bottom:-26px;transform:rotate(-6deg)}
.tph-okpill{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:auto;padding:8px 14px 8px 8px;border-radius:12px;background:#E8F7EE;color:var(--tph-green);font-size:13px;font-weight:700}
.tph-okpill i{width:24px;height:24px;border-radius:50%;background:#22B35E;color:#fff;display:flex;align-items:center;justify-content:center}
.tph-label{display:block;margin:0 0 6px;font-size:14px;font-weight:700}
.tph-label small{font-weight:500;color:#8A90A8}
.tph-input{display:block;width:100%;height:50px;margin:0 0 12px;padding:0 16px;border:1.5px solid var(--tph-line);border-radius:14px;background:#fff;font:inherit;font-size:16px;color:var(--tph-text);outline:0}
.tph-input:focus{border-color:var(--tph-blue)}
.tph-input.is-bad{border-color:#F04438}
.tph-ok{display:flex;flex-direction:column;justify-content:center;flex:1 1 auto;padding:10px 0 20px}
.tph-ok__ico{width:56px;height:56px;margin:0 0 18px;border-radius:50%;background:#22B35E;color:#fff;display:flex;align-items:center;justify-content:center}
.tph-ok .tph-sub{margin-bottom:20px}
.tph-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* Демо */
.tph-chat{margin:22px 4px 0;border-radius:18px;background:#fff;overflow:hidden;color:var(--tph-text);box-shadow:0 18px 44px rgba(0,10,80,.28);transform:rotate(-2deg)}
.tph-chat__head{display:flex;align-items:center;gap:10px;padding:12px 14px}
.tph-chat__ava{width:34px;height:34px;border-radius:50%;background:var(--tph-blue);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.tph-chat__head b{display:block;font-size:14px}
.tph-chat__head small{font-size:12px;font-weight:600;color:#22B35E}
.tph-chat__body{padding:12px;background:#EFE8DE}
.tph-chat__msg{max-width:88%;margin:0 0 8px;padding:9px 12px;border-radius:12px;background:#fff;font-size:12.5px;line-height:1.4}
.tph-chat__msg--me{margin-left:auto;background:#DCF8C6}
.tph-chat__msg:last-child{margin-bottom:0}
.tph-l .tph-tag--demo{position:relative;align-self:flex-end;margin-top:auto;transform:rotate(-5deg)}
.tph-nums{margin:0 0 18px;padding:0;list-style:none}
.tph-nums li{display:flex;align-items:center;gap:12px;margin:0 0 10px;font-size:15px}
.tph-nums i{flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:#EEF1FE;color:var(--tph-blue);font-style:normal;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center}

/* Страницы PDF (рисуются вне экрана и снимаются html2canvas) */
.tph-pdf{position:fixed;left:-12000px;top:0;z-index:-1;pointer-events:none}
.tph-pg{width:794px;height:1123px;padding:56px 60px 48px;background:#fff;color:#151D48;font-family:inherit;font-size:14px;line-height:1.45;display:flex;flex-direction:column;overflow:hidden}
.tph-pg h1{margin:28px 0 4px;font-size:30px;font-weight:800;line-height:1.15}
.tph-pg h2{margin:26px 0 10px;font-size:19px;font-weight:800}
.tph-pg p{margin:0 0 8px}
.tph-pg__top{display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;border-bottom:2px solid #0027F3}
.tph-pg__brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:800}
.tph-pg__brand img{width:44px;height:auto}
.tph-pg__brand small{display:block;font-size:11px;font-weight:500;color:#5B6378}
.tph-pg__meta{text-align:right;font-size:12px;color:#5B6378}
.tph-pg__for{font-size:16px;color:#5B6378}
.tph-pg table{width:100%;border-collapse:collapse;font-size:13.5px}
.tph-pg th{padding:9px 10px;background:#F4F6FB;text-align:left;font-size:12px;font-weight:700;color:#5B6378}
.tph-pg td{padding:10px;border-bottom:1px solid #E3E6F5;vertical-align:top}
.tph-pg td.num,.tph-pg th.num{text-align:right;white-space:nowrap}
.tph-pg td:first-child{white-space:nowrap}
.tph-pg tr.is-hl td{background:#EEF2FF;font-weight:700}
.tph-pg__save{display:inline-block;margin:14px 0 0;padding:8px 14px;border-radius:10px;background:#E8F7EE;color:#16893E;font-weight:700}
.tph-pg ul{margin:0;padding:0;list-style:none}
.tph-pg li{position:relative;margin:0 0 7px;padding-left:22px}
.tph-pg li::before{content:"";position:absolute;left:2px;top:5px;width:10px;height:6px;border-left:2px solid #22B35E;border-bottom:2px solid #22B35E;transform:rotate(-45deg)}
.tph-pg__cols{display:grid;grid-template-columns:1fr 1fr;gap:6px 24px}
.tph-pg__box{margin:6px 0 0;padding:14px 16px;border-radius:12px;background:#F4F6FB}
.tph-pg__foot{margin-top:auto;padding-top:14px;border-top:1px solid #E3E6F5;display:flex;justify-content:space-between;font-size:12px;color:#5B6378}

/* ── Телефон ────────────────────────────────────────── */
@media (max-width:767px){
  .tph-w{left:12px;right:12px;bottom:12px;width:auto;max-width:none}
  body:has(.sticky-cta-mobile.is-visible) .tph-w{bottom:84px}
  .tph-w__head{padding:14px 14px 22px}
  .tph-w__hello{margin-top:10px}
  .tph-w__ask{font-size:19px}
  .tph-m{padding:0;align-items:stretch}
  .tph-m__dlg{grid-template-columns:1fr;width:100%;min-height:0;height:100%;max-height:none;border-radius:0}
  .tph-l{display:none}
  .tph-r{padding:20px 16px 24px}
  .tph-x{top:10px;right:10px;width:40px;height:40px}
  .tph-h{font-size:22px;padding-right:44px}
  .tph-q .tph-h{font-size:21px}
  .tph-sub{font-size:14px}
  .tph-opt{padding:10px 12px;gap:10px}
  .tph-opt.is-on{padding:9.5px 11.5px}
  .tph-opt__t{font-size:15px}
  .tph-opt__p b{font-size:17px}
  .tph-seg button{font-size:13px;padding:6px 4px}
  .tph-row-btns{flex-direction:column-reverse}
  .tph-row-btns .tph-btn--ghost{flex:1 1 auto}
  .tph-btn{font-size:15px}
  .tph-qhead{padding-right:48px}
  .tph-progress{margin-right:0}
  .tph-res__match{display:inline-flex;margin-left:6px}
  .tph-res__foot{flex-direction:column;align-items:flex-start}
  .tph-anl{padding:40px 0}
}
@media (prefers-reduced-motion:reduce){.tph-w,.tph-m,.tph-m__dlg,.tph-progress i{transition:none!important}}

/* Запасной путь PDF: библиотеки не загрузились — печатаем те же листы. */
@media print{
  html.tph-printing body>*:not(.tph-pdf){display:none!important}
  html.tph-printing .tph-pdf{position:static;left:auto;z-index:auto}
  html.tph-printing .tph-pg{width:auto;height:auto;min-height:0;padding:0;break-after:page;page-break-after:always}
  html.tph-printing .tph-pg:last-child{break-after:auto;page-break-after:auto}
  @page{size:A4;margin:14mm}
}
