/* i3-facts.css — index3.html: «факты с рисунком» (цифры) и чек со стикерами (итоги калькулятора). Рисует js/i3-facts.js.
   Юра 04.10: плашки «поинтереснее», жирный текст — не надо (числа 600, не 800). */

/* ---------- цифры: без коробок — рисунок пером, число цветом, подпись ---------- */
.i3-stats .i3-wrap.i3-facts { gap: 22px 28px; }
.i3-fact { padding: 0; }
.i3-fact canvas.i3-fact-cv { display: block; width: 100%; max-width: 190px; aspect-ratio: 150 / 112; margin: 0 0 10px -10px; }
.i3-stat.i3-fact b { font-weight: 600; letter-spacing: -.02em; }
.i3-fact canvas.i3-under { margin: 6px 0 8px; }

/* ---------- калькулятор: ползунки слева, под ними два стикера; справа чек ---------- */
.i3-calc.i3-calc3 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "in rc" "st rc"; gap: 22px 28px; }
.i3-calc3 > .i3-calc-in { grid-area: in; } .i3-calc3 > .i3-receipt { grid-area: rc; } .i3-calc3 > .i3-stickers { grid-area: st; }
.i3-receipt { position: relative; padding: 46px 34px 40px; isolation: isolate; }
.i3-receipt > canvas.i3-receipt-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.i3-rc-title { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--i3-muted); text-align: center; }
.i3-rc-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 9px 0; font-size: 16px; color: var(--i3-text); }
.i3-rc-row > span { flex: none; max-width: 62%; }
.i3-rc-row > i { flex: 1; min-width: 12px; height: 1px; transform: translateY(-4px);
  background: radial-gradient(circle, #B9C2D3 1px, transparent 1.4px) 0 0 / 7px 2px repeat-x; }
.i3-rc-row > b { flex: none; margin-left: auto; font-weight: 600; font-size: 20px; color: var(--i3-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.i3-rc-row.zero > b { color: var(--i3-green); font-size: 24px; }
.i3-rc-sep { height: 14px; }
.i3-rc-row.total > span { font-weight: 500; color: var(--i3-navy); }
.i3-rc-row.total > b { color: var(--i3-green-d); font-size: 24px; }
/* «печать»: чек выезжает из щели сверху один раз */
.i3-receipt.i3-print > :not(canvas) { opacity: 0; transform: translateY(-14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.i3-receipt.i3-print.on > :not(canvas) { opacity: 1; transform: none; }
.i3-receipt.i3-print.on > :nth-child(2) { transition-delay: .25s; } .i3-receipt.i3-print.on > :nth-child(3) { transition-delay: .4s; }
.i3-receipt.i3-print.on > :nth-child(4) { transition-delay: .55s; } .i3-receipt.i3-print.on > :nth-child(5) { transition-delay: .7s; }
.i3-receipt.i3-print.on > :nth-child(6) { transition-delay: .85s; } .i3-receipt.i3-print.on > :nth-child(7) { transition-delay: 1s; }

.i3-stickers { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 18px; padding: 4px 6px 0; align-items: start; }
.i3-sticker { position: relative; padding: 30px 22px 26px; isolation: isolate; }
.i3-sticker:nth-child(1) { transform: rotate(-2deg); } .i3-sticker:nth-child(2) { transform: rotate(1.6deg); margin-top: 10px; }
.i3-sticker > canvas.i3-sticker-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.i3-sticker span { display: block; font-size: 15px; line-height: 1.35; color: var(--i3-text); margin-bottom: 6px; }
.i3-sticker b { display: block; font-weight: 600; font-size: clamp(19px, 1.7vw, 22px); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.i3-sticker[data-tone="blue"] b { color: var(--i3-acc-d); }
.i3-sticker[data-tone="sun"] b { color: var(--i3-sun-d); }

@media (max-width: 1100px) {
  .i3-calc.i3-calc3 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "in" "rc" "st"; }
}
@media (max-width: 760px) {
  .i3-stickers { gap: 12px; padding: 0; }
  .i3-sticker:nth-child(2) { margin-top: 0; }
  .i3-receipt { padding: 44px 22px 38px; }
  .i3-fact canvas.i3-fact-cv { max-width: 150px; }
}
@media (max-width: 480px) {
  .i3-stats .i3-wrap.i3-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .i3-fact canvas.i3-fact-cv { max-width: 100%; margin-left: -6px; }
  .i3-stat.i3-fact b { font-size: clamp(26px, 8.4vw, 32px); }
  .i3-stat.i3-fact span { font-size: 14px; }
  .i3-rc-row { font-size: 15px; } .i3-rc-row > b { font-size: 17px; }
  .i3-rc-row.zero > b, .i3-rc-row.total > b { font-size: 19px; }
  /* итог на узком: при больших суммах «29 790 000–29 880 000 ₽» упирался в край бумаги — мельче и может перенестись после тире */
  .i3-rc-row.total > b { font-size: 17px; white-space: normal; text-align: right; }
  .i3-rc-row > span { max-width: 58%; }
  .i3-stickers { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .i3-receipt.i3-print > :not(canvas) { opacity: 1; transform: none; transition: none; } }

/* ---------- три шага: рисунок пером, номер в заголовке, пунктирная дорожка под рисунками (без коробок) ---------- */
.i3-route { position: relative; }
.i3-route-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.i3-steps.i3-steps-r { gap: 36px; }
.i3-steps-r li { position: relative; z-index: 1; padding: 0; }
.i3-steps-r .i3-step-cv { display: block; width: 100%; max-width: 230px; aspect-ratio: 150 / 112; margin: 0 0 12px -10px; }
.i3-steps-r h3 { display: flex; align-items: center; gap: 12px; }
.i3-steps-r .i3-num { width: 34px; height: 34px; font-size: 17px; margin: 0; flex: none; }
.i3-steps-r p { max-width: 320px; }
@media (max-width: 1100px) {
  .i3-route > canvas.i3-route-cv { display: none; }               /* шаги столбиком — дорожка не нужна (селектор сильнее общих правил холстов) */
  .i3-steps-r .i3-step-cv { max-width: 200px; }
}

/* ---------- «От витрины до повторной продажи»: восемь возможностей по кругу + текст выбранной (js/i3-facts.js) ---------- */
.i3-orbit { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; align-items: center; }
.i3-orbit-stage { position: relative; aspect-ratio: 1.12 / 1; }
.i3 .i3-orbit-stage > canvas.i3-orbit-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.i3-orbit-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.i3-orbit-mid b { display: block; font: 600 30px/1 var(--i3-f); color: var(--i3-navy); letter-spacing: -.02em; }
.i3-orbit-mid b i { font-style: normal; color: var(--i3-acc); }
.i3-orbit-mid span { display: block; margin-top: 6px; font-size: 14px; color: var(--i3-muted); }
.i3-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 128px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 14px/1.25 var(--i3-f); color: var(--i3-navy); text-align: center; }
.i3-node .i3-ic { margin: 0; transition: transform .25s; }
.i3-node:hover .i3-ic, .i3-node:focus-visible .i3-ic { transform: translateY(-3px); }
.i3-node:focus-visible { outline: 2px solid var(--i3-acc); outline-offset: 4px; border-radius: 12px; }
.i3-node.on .i3-node-l { color: var(--i3-acc-d); }
.i3-node.t-green.on .i3-node-l { color: var(--i3-green-d); } .i3-node.t-coral.on .i3-node-l { color: var(--i3-coral-d); }
.i3-node.t-sun.on .i3-node-l { color: var(--i3-sun-d); } .i3-node.t-lilac.on .i3-node-l { color: var(--i3-lilac-d); }
/* справа — выбранная возможность крупно (остальные статьи спрятаны, но остаются в разметке) */
.i3-orbit .i3-feats { display: block; }
.i3-orbit .i3-feat { display: none; padding: 34px 34px 36px; }
.i3-orbit .i3-feat.on { display: block; animation: i3-feat-in .45s ease both; }
.i3-orbit .i3-feat > .i3-ic { display: none; }                        /* значок уже на круге */
@keyframes i3-feat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.i3-feat-n { margin: 0 0 6px !important; font-size: 13px; letter-spacing: .08em; color: var(--i3-muted); }
.i3-orbit .i3-feat h3 { font-size: 26px; }
.i3-orbit .i3-feat p:last-child { font-size: 17px; line-height: 1.55; }
.i3-feat.t-blue .i3-feat-n { color: var(--i3-acc-d); } .i3-feat.t-green .i3-feat-n { color: var(--i3-green-d); } .i3-feat.t-coral .i3-feat-n { color: var(--i3-coral-d); }
.i3-feat.t-sun .i3-feat-n { color: var(--i3-sun-d); } .i3-feat.t-lilac .i3-feat-n { color: var(--i3-lilac-d); }
/* каналы: значок в мягком кружке и текст — без «таблеток» */
.i3-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
.i3-channels .i3-ch-title { grid-column: 1 / -1; margin: 0 !important; }
.i3-chip { padding: 0; gap: 10px; }
.i3-ic.sm { width: 40px; height: 40px; margin: 0; flex: none; }
.i3-chip .i3-ic.sm > canvas[data-i3icon] { width: 26px; height: 26px; }            /* только значок — холст-подложку кружка не трогать */
@media (max-width: 1100px) {
  .i3-orbit { display: block; }
  .i3-orbit-stage { display: none; }                                 /* узкий экран: круга нет — все возможности списком */
  .i3-orbit .i3-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .i3-orbit .i3-feat { display: block; padding: 22px 22px 24px; animation: none; }
  .i3-orbit .i3-feat > .i3-ic { display: grid; }
  .i3-feat-n { display: none; }
  .i3-orbit .i3-feat h3 { font-size: 19px; }
  .i3-orbit .i3-feat p:last-child { font-size: 15.5px; }
}
@media (max-width: 1100px) { .i3-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .i3-orbit .i3-feats, .i3-channels { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .i3-orbit .i3-feat.on { animation: none; } .i3-node .i3-ic { transition: none; } }

/* ---------- «Клиенту удобно. Команде понятно.»: без коробок — рисунок шага на мягком круге своего цвета ---------- */
.i3-jsoft { gap: 0; }
.i3-jsoft .i3-jcol { padding: 6px 30px 0 0; }
.i3-jsoft .i3-jcol.t-green { padding: 6px 0 0 30px; border-left: 1.5px dashed #BFE3CC; }
.i3-jsoft .i3-jcol h3 { display: flex; align-items: center; gap: 10px; }
.i3-jsoft .i3-jcol h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--i3-acc); }
.i3-jsoft .i3-jcol.t-green h3::before { background: var(--i3-green); }
.i3-jsoft .i3-jsteps li { position: relative; isolation: isolate; }
.i3-jsoft .i3-jsteps li::before { content: ''; position: absolute; left: 50%; top: 10%; width: 84%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: #E2ECFF; }
.i3-jsoft .i3-jcol.t-green .i3-jsteps li::before { background: #FFFFFF; }
@media (max-width: 1100px) {
  .i3-jsoft .i3-jcol, .i3-jsoft .i3-jcol.t-green { padding: 0; border-left: 0; }
  .i3-jsoft .i3-jcol.t-green { margin-top: 34px; padding-top: 30px; border-top: 1.5px dashed #BFE3CC; }
}

/* ---------- «Честно — о главном»: облачка переписки — вопрос покупателя слева, ответ токего справа (без коробки) ---------- */
.i3-faq-list.i3-chat { padding: 0; display: flex; flex-direction: column; gap: 12px; }
.i3-chat details + details { border-top: 0; }
.i3-chat summary { background: #FFFFFF; border-radius: 20px 20px 20px 6px; padding: 17px 56px 17px 22px; font-weight: 500; transition: background .2s; }
.i3-chat summary:hover { background: #FFFDF8; }
.i3-chat summary canvas.pm { right: 16px; top: 50%; margin-top: -14px; }
.i3-chat details[open] summary { background: #FFFDF8; }
.i3-chat details > p { position: relative; margin: 10px 0 6px auto; max-width: 88%; padding: 30px 20px 16px; border-radius: 20px 20px 6px 20px;
  background: #EAF1FF; color: var(--i3-navy); font-size: 16px; line-height: 1.6; animation: i3-chat-in .35s ease both; }
.i3-chat details > p::before { content: 'токего'; position: absolute; left: 20px; top: 10px; font-size: 12.5px; font-weight: 600; color: var(--i3-acc-d); letter-spacing: .02em; }
@keyframes i3-chat-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .i3-chat summary { padding: 15px 50px 15px 18px; font-size: 16.5px; } .i3-chat details > p { max-width: 94%; } }
@media (prefers-reduced-motion: reduce) { .i3-chat details > p { animation: none; } }

/* ---------- тарифы — ценники на нитках: мягкая бирка без обводки, срезанные верхние углы, дырочка, нитка к гвоздику (js/i3-facts.js) ---------- */
.i3-plans { padding-top: 70px; }
.i3-plan.i3-tag { isolation: isolate; padding: 64px 28px 30px; transform-origin: 50% -46px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.i3-plan.i3-tag:hover { transform: rotate(-1.4deg); }
.i3-plan.hot.i3-tag { transform: translateY(-10px); }
.i3-plan.hot.i3-tag:hover { transform: translateY(-10px) rotate(-1.4deg); }
.i3 .i3-plan.i3-tag > canvas.i3-tag-cv { position: absolute; left: -12px; top: -66px; width: calc(100% + 24px); height: calc(100% + 78px); z-index: -1; pointer-events: none; }
.i3-plan.i3-tag .i3-stamp { top: 48px; right: -18px; width: 180px; }   /* ниже дырочки ценника */
@media (max-width: 1100px) { .i3-plans { gap: 64px; } .i3-plan.hot.i3-tag, .i3-plan.hot.i3-tag:hover { transform: none; } }
@media (max-width: 480px) { .i3-plan.i3-tag { padding: 60px 20px 24px; } .i3-plan.i3-tag .i3-stamp { right: -6px; } }
@media (prefers-reduced-motion: reduce) { .i3-plan.i3-tag { transition: none; } .i3-plan.i3-tag:hover { transform: none; } }
