/* MediaLead — итоговая главная · блок 5 «Живой разговор». Пять вариантов на выбор (временно). */
.b5{padding-top:110px;padding-bottom:110px}
.b5v{display:none}
.b5[data-v="1"] .b5v--1,.b5[data-v="2"] .b5v--2,.b5[data-v="3"] .b5v--3,.b5[data-v="4"] .b5v--4,.b5[data-v="5"] .b5v--5{display:block}
.b5 .h2{font-size:var(--h2m)}
.b5 .h2 span{color:var(--ink-3)}
.b5h{margin-bottom:40px}
.b5h .h2{margin:0;max-width:900px}
.b5h--c{text-align:center}
.b5h--c .h2{margin:0 auto}
.b5h--c .label{justify-content:center}

/* Полоса «Нет времени?» */
.b5bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px 18px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--line)}
.b5bar__t{flex:1;min-width:200px;font-size:15.5px;color:var(--ink-2)}
.b5bar small{flex-basis:100%;font-size:12.5px;color:var(--ink-3)}
.b5bar__tel,.b5bar__ic{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 16px;border-radius:14px;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap}
.b5bar__tel{background:var(--paper);color:var(--ink);font-variant-numeric:tabular-nums}
.b5bar__ic{color:#fff}
.b5bar svg{width:18px;height:18px}
.b5bar__ic--tg{background:#2aabee}
.b5bar__ic--max{background:linear-gradient(135deg,#3b6cff,#8b3dff)}
.b5m{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:rgba(255,255,255,.22);font-size:11px;font-weight:800;font-style:normal}

/* ===== 1 · Чат по центру ===== */
.b5c{max-width:780px;margin:0 auto;border-radius:30px;background:#fff;box-shadow:0 0 0 1px var(--line),0 40px 80px -50px rgba(13,13,15,.45);overflow:hidden}
.b5c .tk{height:520px;border-radius:0;box-shadow:none}
.b5c .tk__qr{justify-content:flex-start}
.b5bar--in{border-radius:0;box-shadow:none;border-top:1px solid var(--line);background:var(--paper)}
.b5bar--in .b5bar__tel{background:#fff}
.b5bar--in small{display:none}

/* ===== 2 · Телефон ===== */
.b5p{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:80px;align-items:center}
.b5p__copy .h2{margin:0}
.b5p__pts{display:grid;gap:12px;margin:28px 0 30px;padding:0;list-style:none}
.b5p__pts li{position:relative;padding-left:26px;font-size:16.5px;line-height:1.45;color:var(--ink-2)}
.b5p__pts li::before{content:'';position:absolute;left:0;top:8px;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.b5p__pts b{color:var(--ink);font-weight:500}
.b5rows{display:grid;gap:8px;max-width:520px}
.b5row{display:flex;align-items:center;gap:14px;padding:14px 18px 14px 14px;border-radius:18px;background:#fff;box-shadow:0 0 0 1px var(--line);color:var(--ink);text-decoration:none;transition:box-shadow .2s,transform .2s}
.b5row:hover{box-shadow:0 0 0 1px var(--ink);transform:translateY(-1px)}
.b5row > span:nth-child(2){flex:1;display:flex;flex-direction:column}
.b5row b{font-size:16.5px;font-weight:500}
.b5row small{font-size:13.5px;color:var(--ink-3)}
.b5row em{font-style:normal;font-size:20px;color:var(--ink-3)}
.b5row__i{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;background:var(--paper)}
.b5row__i svg{width:20px;height:20px}
.b5row__i--tg{background:#2aabee;color:#fff}
.b5row__i--max{background:linear-gradient(135deg,#3b6cff,#8b3dff)}
.b5row__i--max .b5m{background:none;color:#fff;font-size:14px}
.b5ph{display:grid;place-items:center}
.b5ph__dev{position:relative;width:370px;height:740px;padding:12px;border-radius:56px;background:#0d0d0f;box-shadow:0 0 0 2px #2a2a2e,0 60px 100px -50px rgba(13,13,15,.6)}
.b5ph__bar{position:absolute;left:12px;right:12px;top:12px;z-index:2;display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 28px;font-size:14px;font-weight:600;color:var(--ink)}
.b5ph__bar i{width:96px;height:28px;margin-right:auto;margin-left:42px;border-radius:999px;background:#0d0d0f}
.tk--tg{height:100%;border-radius:44px;box-shadow:none;background:#e7ebe6;padding-top:40px}
.tk--tg .tk__hd{padding:10px 16px 10px;background:#fff;border-bottom:1px solid rgba(0,0,0,.06)}
.tk--tg .tk__ava{width:40px;height:40px;font-size:15px}
.tk--tg .tk__who b{font-size:15.5px}
.tk--tg .tk__who small{font-size:12px}
.tk--tg .tk__q,.tk--tg .tk__line{display:none}
.tk--tg .tk__log{padding:14px 12px 8px;background:#e7ebe6}
.tk--tg .tk__bub{background:#fff;font-size:14.5px;padding:9px 12px;border-radius:16px}
.tk--tg .tk__msg--me .tk__bub{background:#e1f6cb;color:var(--ink)}
.tk--tg .tk__mava{width:28px;height:28px;font-size:11px}
.tk--tg .tk__dock{padding:6px 10px 18px;background:#e7ebe6}
.tk--tg .tk__qr{justify-content:center;gap:6px}
.tk--tg .tk__qr button{height:38px;padding:0 12px;font-size:13.5px;border:0;border-radius:12px;background:rgba(255,255,255,.85);color:#2a7cc0}
.tk--tg .tk__ch button,.tk--tg .tk__pf input{border-radius:12px}

/* ===== 3 · Лицо менеджера ===== */
.b5f{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px);gap:20px;align-items:stretch}
.b5f__me{display:flex;flex-direction:column;gap:18px;padding:30px;border-radius:30px;background:var(--dark);color:#fff}
.b5f__ph{position:relative;display:grid;place-items:center;width:132px;height:132px;border-radius:50%;background:linear-gradient(140deg,#f3a08f,var(--accent));box-shadow:0 0 0 6px rgba(255,255,255,.06)}
.b5f__ph span{font-size:48px;font-weight:600}
.b5f__ph small{position:absolute;bottom:-22px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;color:var(--dark-ink-2)}
.b5f__me blockquote{margin:14px 0 0;font-size:clamp(22px,2vw,30px);font-weight:500;line-height:1.25;letter-spacing:-.02em}
.b5f__who b{display:block;font-size:17px;font-weight:500}
.b5f__who span{font-size:14.5px;color:var(--dark-ink-2)}
.b5f__acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.b5f__a{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 16px;border-radius:14px;background:var(--dark-3);color:#fff;font-size:15px;font-weight:600;text-decoration:none}
.b5f__a svg{width:18px;height:18px}
.b5f__a--tg{background:#2aabee}
.b5f__a--max{background:linear-gradient(135deg,#3b6cff,#8b3dff)}
.b5f__t{font-size:13px;color:var(--dark-ink-2)}
.b5f .tk{height:auto;min-height:560px}

/* ===== 4 · Квиз-плитки ===== */
.b5q{position:relative;max-width:1000px;margin:0 auto 20px;padding:36px 40px 40px;border-radius:32px;background:#fff;box-shadow:0 0 0 1px var(--line),0 40px 80px -50px rgba(13,13,15,.4)}
.b5q__top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.b5q__n{font-size:14px;font-weight:600;color:var(--ink-3)}
.b5q__line{height:4px;margin-top:18px;border-radius:4px;background:var(--paper);overflow:hidden}
.b5q__line i{display:block;height:100%;width:var(--p,8%);border-radius:4px;background:var(--accent);transition:width .6s var(--ease)}
.b5q__q{margin:34px 0 26px;font-size:clamp(30px,3.2vw,48px);font-weight:500;line-height:1.1;letter-spacing:-.025em;animation:b5in .45s var(--ease) both}
@keyframes b5in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.b5q__opts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.b5q__opts button{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:20px;height:120px;padding:18px 20px;border:0;border-radius:20px;background:var(--paper);font:inherit;font-size:18px;font-weight:500;text-align:left;color:var(--ink);cursor:pointer;animation:b5in .4s var(--ease) both;transition:background .2s,transform .2s,box-shadow .2s}
.b5q__opts button:hover{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ink);transform:translateY(-2px)}
.b5q__opts button i{font-style:normal;font-size:26px;line-height:1}
.b5q__opts--4{grid-template-columns:repeat(4,1fr)}
.b5q__fin{display:grid;gap:12px;max-width:640px}
.b5q__ch{display:flex;gap:8px}
.b5q__ch button{height:44px;padding:0 18px;border:0;border-radius:14px;background:var(--paper);font:inherit;font-size:15px;font-weight:500;cursor:pointer}
.b5q__ch button[aria-pressed="true"]{background:var(--ink);color:#fff}
.b5q__row{display:flex;gap:10px}
.b5q__row input{flex:1;height:60px;padding:0 18px;border:1.5px solid var(--line);border-radius:16px;font:inherit;font-size:18px;font-weight:500;outline:none}
.b5q__row input:focus{border-color:var(--ink)}
.b5q__row input.is-err{border-color:var(--accent)}
.b5q__legal{margin:0;font-size:12.5px;color:var(--ink-3)}
.b5q__ok{display:flex;flex-direction:column;gap:6px;padding:20px;border-radius:20px;background:rgba(31,157,85,.08);color:#17824a}
.b5q__ok b{font-size:22px;font-weight:600}
.b5q__ok span{font-size:16px;color:var(--ink-2)}
.b5q__back{position:absolute;left:40px;bottom:14px;border:0;background:none;font:inherit;font-size:14px;color:var(--ink-3);cursor:pointer}
.b5bar--wide{max-width:1000px;margin:0 auto}

/* ===== 5 · Разговор на странице ===== */
.b5o{max-width:980px;margin:0 auto}
.tk--open{height:auto;min-height:560px;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.tk--open .tk__hd{padding:18px 0 0}
.tk--open .tk__ava{width:64px;height:64px;font-size:24px}
.tk--open .tk__who b{font-size:20px}
.tk--open .tk__q{margin:20px 0 0;background:#fff}
.tk--open .tk__line{margin-top:18px;border-radius:3px}
.tk--open .tk__log{overflow:visible;gap:14px;padding:28px 0 10px}
.tk--open .tk__msg{max-width:84%}
.tk--open .tk__mava{width:44px;height:44px;font-size:16px}
.tk--open .tk__bub{padding:0;background:none;font-size:clamp(22px,2.1vw,32px);font-weight:500;line-height:1.25;letter-spacing:-.02em}
.tk--open .tk__msg--q .tk__bub{color:var(--accent)}
.tk--open .tk__msg--me .tk__bub{padding:12px 20px;border-radius:18px;background:var(--ink);font-size:18px;letter-spacing:0}
.tk--open .tk__typing .tk__bub{padding:12px 0}
.tk--open .tk__dock{padding:14px 0 0}
.tk--open .tk__qr{justify-content:flex-start;gap:10px}
.tk--open .tk__qr button{height:56px;padding:0 24px;border:0;border-radius:999px;background:#fff;font-size:18px;box-shadow:0 0 0 1px var(--line)}
.tk--open .tk__qr button:hover{box-shadow:0 0 0 1.5px var(--ink)}
.tk--open .tk__form{max-width:560px}
.b5bar--line{max-width:980px;margin:40px auto 0;background:transparent;box-shadow:none;border-top:1px solid var(--line);border-radius:0;padding:24px 0 0}
.b5bar--line .b5bar__tel{background:#fff}

@media (max-width:1100px){
  .b5p{grid-template-columns:1fr;gap:40px}
  .b5f{grid-template-columns:1fr}
}
@media (max-width:720px){
  .b5{padding-top:72px;padding-bottom:72px}
  .b5h{margin-bottom:24px}
  .b5c{border-radius:24px}
  .b5c .tk{height:min(560px,76svh)}
  .b5bar{padding:14px}
  .b5bar__tel{flex:1 1 100%;justify-content:center}
  .b5bar__ic{flex:1;justify-content:center}
  .b5ph__dev{width:100%;max-width:340px;height:640px;border-radius:48px}
  .b5f__me{padding:22px;border-radius:24px}
  .b5f__ph{width:96px;height:96px}
  .b5f__ph span{font-size:36px}
  .b5f .tk{min-height:0;height:min(560px,76svh)}
  .b5q{padding:24px 18px 44px;border-radius:24px}
  .b5q__q{margin:24px 0 18px}
  .b5q__opts,.b5q__opts--4{grid-template-columns:1fr 1fr;gap:8px}
  .b5q__opts button{height:96px;padding:14px;font-size:15.5px}
  .b5q__row{flex-direction:column}
  .b5q__row .btn{justify-content:space-between}
  .b5q__back{left:18px}
  .tk--open .tk__msg{max-width:100%}
  .tk--open .tk__bub{font-size:21px}
  .tk--open .tk__qr button{height:48px;padding:0 18px;font-size:16px}
}
.b5q__opts button i{font-size:13px;font-weight:600;letter-spacing:.04em;color:var(--ink-3)}
.b5q [hidden]{display:none !important}

/* ===== 1 · Чат по центру — крупнее ===== */
.b5c{max-width:1040px}
.b5c .tk{height:660px}
.b5c .tk__hd{padding:26px 30px 0}
.b5c .tk__ava{width:64px;height:64px;font-size:24px}
.b5c .tk__who b{font-size:21px}
.b5c .tk__who small{font-size:15px}
.b5c .tk__q{margin:18px 30px 0;font-size:15px}
.b5c .tk__log{padding:24px 30px 12px;gap:10px}
.b5c .tk__bub{padding:15px 20px;font-size:18px;border-radius:22px}
.b5c .tk__mava{width:40px;height:40px;font-size:15px}
.b5c .tk__dock{padding:8px 30px 26px}
.b5c .tk__hint{justify-content:flex-start;font-size:15px}
.b5c .tk__qr button{height:52px;padding:0 22px;font-size:16.5px;border-radius:16px}
.b5bar--in{padding:18px 30px}

/* ===== 3 · Лицо менеджера — чат главнее ===== */
.b5f{grid-template-columns:minmax(0,400px) minmax(0,1fr)}
.b5f .tk{min-height:660px}
.b5f .tk__hd{padding:26px 28px 0}
.b5f .tk__ava{width:60px;height:60px;font-size:22px}
.b5f .tk__who b{font-size:20px}
.b5f .tk__q{margin:18px 28px 0}
.b5f .tk__log{padding:22px 28px 12px;gap:10px}
.b5f .tk__bub{padding:15px 20px;font-size:17.5px;border-radius:22px}
.b5f .tk__mava{width:38px;height:38px}
.b5f .tk__dock{padding:8px 28px 26px}
.b5f .tk__qr button{height:52px;padding:0 20px;font-size:16px;border-radius:16px}
.b5f__me blockquote{font-size:clamp(20px,1.7vw,26px)}

/* ===== 5 · Окно мессенджера ===== */
.b5w{max-width:1160px;margin:0 auto;border-radius:24px;background:#fff;box-shadow:0 0 0 1px var(--line),0 50px 100px -50px rgba(13,13,15,.45);overflow:hidden}
.b5w__top{display:flex;align-items:center;gap:8px;height:44px;padding:0 18px;background:var(--paper);border-bottom:1px solid var(--line)}
.b5w__top i{width:12px;height:12px;border-radius:50%;background:#d9d9dc}
.b5w__top i:first-child{background:#ff5f57}.b5w__top i:nth-child(2){background:#febc2e}.b5w__top i:nth-child(3){background:#28c840}
.b5w__top span{margin-left:12px;font-size:13.5px;font-weight:500;color:var(--ink-3)}
.b5w__body{display:grid;grid-template-columns:320px minmax(0,1fr);height:660px}
.b5w__side{display:flex;flex-direction:column;gap:2px;padding:14px 10px;border-right:1px solid var(--line);background:#fff}
.b5w__search{margin:0 6px 10px;padding:10px 14px;border-radius:12px;background:var(--paper);font-size:14px;color:var(--ink-3)}
.b5w__it{display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px}
.b5w__it.is-on{background:var(--ink);color:#fff}
.b5w__it.is-on small,.b5w__it.is-on em{color:rgba(255,255,255,.7)}
.b5w__av{position:relative;display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:50%;background:linear-gradient(140deg,#f3a08f,var(--accent));color:#fff;font-weight:600;font-size:17px}
.b5w__av i{position:absolute;right:0;bottom:1px;width:12px;height:12px;border-radius:50%;background:var(--good);border:2px solid var(--ink)}
.b5w__av--p{background:var(--ink)}
.b5w__it.is-on .b5w__av--p{background:#fff;color:var(--ink)}
.b5w__av--m{background:var(--paper);color:var(--ink);font-size:14px}
.b5w__tx{flex:1;min-width:0;display:flex;flex-direction:column}
.b5w__tx b{font-size:15px;font-weight:500}
.b5w__tx small{font-size:13px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b5w__it em{align-self:flex-start;margin-top:3px;font-style:normal;font-size:12px;color:var(--ink-3)}
.b5w__sf{display:grid;gap:6px;margin-top:auto;padding:14px 6px 2px;border-top:1px solid var(--line)}
.b5w__sf span{font-size:13px;color:var(--ink-3)}
.b5w__sf a{display:flex;align-items:center;gap:10px;height:42px;padding:0 12px;border-radius:12px;background:var(--paper);font-size:14.5px;font-weight:600;color:var(--ink);text-decoration:none}
.b5w__sf a svg{width:17px;height:17px}
.b5w__sf .b5w__tg{background:#2aabee;color:#fff}
.b5w__sf .b5w__max{background:linear-gradient(135deg,#3b6cff,#8b3dff);color:#fff}
.tk--win{height:100%;border-radius:0;box-shadow:none;background:#eef0ec}
.tk--win .tk__hd{padding:14px 22px;background:#fff;border-bottom:1px solid var(--line)}
.tk--win .tk__ava{width:46px;height:46px;font-size:17px}
.tk--win .tk__who b{font-size:17px}
.tk--win .tk__q{position:absolute;opacity:0;pointer-events:none}
.tk--win .tk__line{margin:0;height:3px;background:#dfe2dc}
.tk--win .tk__line span{background:var(--accent)}
.tk--win .tk__log{padding:22px 26px 12px;gap:10px}
.tk--win .tk__bub{padding:13px 18px;font-size:17px;background:#fff;border-radius:20px;box-shadow:0 1px 1px rgba(13,13,15,.06)}
.tk--win .tk__msg--me .tk__bub{background:#dcf5c6;color:var(--ink)}
.tk--win .tk__mava{width:36px;height:36px}
.tk--win .tk__dock{padding:14px 26px 20px;background:#fff;border-top:1px solid var(--line)}
.tk--win .tk__hint{justify-content:flex-start}
.tk--win .tk__qr{justify-content:flex-start}
.tk--win .tk__qr button{height:50px;padding:0 20px;font-size:16px;border-radius:999px}
.tk--win .tk__send{border-radius:50%}

@media (max-width:1100px){
  .b5f{grid-template-columns:1fr}
  .b5w__body{grid-template-columns:1fr}
  .b5w__side{display:none}
}
@media (max-width:720px){
  .b5c .tk,.b5f .tk{height:min(620px,80svh);min-height:0}
  .b5c .tk__hd,.b5f .tk__hd{padding:18px 16px 0}
  .b5c .tk__ava,.b5f .tk__ava{width:48px;height:48px;font-size:18px}
  .b5c .tk__who b,.b5f .tk__who b{font-size:17px}
  .b5c .tk__q,.b5f .tk__q{margin:14px 16px 0}
  .b5c .tk__log,.b5f .tk__log{padding:16px 14px 8px}
  .b5c .tk__bub,.b5f .tk__bub{font-size:15.5px;padding:12px 15px}
  .b5c .tk__dock,.b5f .tk__dock{padding:6px 14px 16px}
  .b5c .tk__qr button,.b5f .tk__qr button{height:44px;padding:0 15px;font-size:15px}
  .b5bar--in{padding:14px}
  .b5w{border-radius:20px}
  .b5w__top{height:36px}
  .b5w__body{height:min(620px,80svh)}
  .tk--win .tk__log{padding:16px 12px 8px}
  .tk--win .tk__bub{font-size:15.5px}
  .tk--win .tk__dock{padding:12px 12px 16px}
  .tk--win .tk__qr button{height:44px;padding:0 15px;font-size:15px}
}
